CVE-2023-38673 Command injection in fs.py

Critical 9.6 Published Updated

Attackers can execute arbitrary OS commands via command injection in PaddlePaddle's fs.py module, 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-38673?

CVE-2023-38673 is a critical command injection vulnerability in PaddlePaddle, published on 26 Jul 2023. 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.5.0 has a command injection in fs.py. This resulted in the ability to execute arbitrary commands on the operating system.

Weakness: CWE-78

Which versions are affected by CVE-2023-38673?

3 open source packages ship an affected version, including paddlepaddle. It affects 1 product.

PackageAffectedFixed in
paddlepaddle PyPIAll versions2.5.0
paddlepaddle PyPIAll versions2.5.0
paddlepaddle PyPIAll versions2.5.0

Products include Paddlepaddle Paddlepaddle.

How do I fix CVE-2023-38673?

Upgrade paddlepaddle to 2.5.0 or later.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2023-38673 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-38673 exists.

Sources

Also known as GHSA-9q9v-qgwx-84mr, PYSEC-2023-126.

Is CVE-2023-38673 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free