Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 1.06 KB

pdsa-2023-012.md

File metadata and controls

35 lines (23 loc) · 1.06 KB

PDSA-2023-012: Segfault in paddle.put_along_axis

CVE Number

CVE-2023-52303

Impact

Segfault in paddle.put_along_axis when tensor dims are invalid . The PoC is as follows:

import paddle
import numpy as np

paddle.put_along_axis(
    arr=paddle.to_tensor(np.random.uniform(-2147483648, 2147483647, [1]).astype(np.int32)),
    indices=paddle.to_tensor(np.random.uniform(-9223372036854775808, 9223372036854775807, [1]).astype(np.int64)),
    values=paddle.to_tensor(np.random.uniform(-2147483648, 2147483647, []).astype(np.int32)),
    axis=0,
    reduce="assign"
)

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.