CVE-2023-52313
FPE in paddle.argmin
and paddle.argmax
when input x.numel()
is 0. The PoC is as follows:
import paddle
data = paddle.to_tensor([], dtype="int32")
paddle.argmax(data, axis=0)
We have patched the issue in commit 41eda9080b12e6f1b3a49cdc8439a1b9f1ed6794. 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 Peng Zhou (zpbrent) from Shanghai University.