CVE-2023-52311 Command injection in _wget_download
Attackers can execute arbitrary OS commands via the _wget_download function in PaddlePaddle, requiring an upgrade to mitigate.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2023-52311?
CVE-2023-52311 is a critical command injection vulnerability in PaddlePaddle, published on 3 Jan 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
PaddlePaddle before 2.6.0 has a command injection in _wget_download. This resulted in the ability to execute arbitrary commands on the operating system.
Weakness: CWE-78
Which versions are affected by CVE-2023-52311?
3 open source packages ship an affected version, including paddlepaddle and PaddlePaddle. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
paddlepaddle PyPI | All versions | 2.6.0 |
paddlepaddle PyPI | All versions | 2.6.0 |
PaddlePaddle PyPI | All versions | 2.6.0 |
Products include Paddlepaddle Paddlepaddle.
How do I fix CVE-2023-52311?
Upgrade paddlepaddle to 2.6.0 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2023-52311 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-52311 exists.
Other vulnerabilities in PaddlePaddle
Sources
Also known as GHSA-rf7p-79xq-8xwm, PYSEC-2024-143.