CVE-2022-45908 PaddlePaddle vulnerable to code injection via winstr
Attackers can execute arbitrary code via the get_window function in PaddlePaddle's audio module due to unsafe eval usage.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-45908?
CVE-2022-45908 is a critical code injection vulnerability in n/a, published on 26 Nov 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
In PaddlePaddle before 2.4, paddle.audio.functional.get_window is vulnerable to code injection because it calls eval on a user-supplied winstr. This may lead to arbitrary code execution.
Weakness: CWE-94
Which versions are affected by CVE-2022-45908?
3 open source packages ship an affected version, including paddlepaddle. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
paddlepaddle PyPI | All versions | 2.4 |
paddlepaddle PyPI | All versions | 2.4 |
paddlepaddle PyPI | All versions | 2.4 |
Products include Paddlepaddle Paddlepaddle.
How do I fix CVE-2022-45908?
Upgrade paddlepaddle to 2.4 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2022-45908 being exploited?
There is no known exploitation of CVE-2022-45908 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-83g7-8fch-p37m, PYSEC-2026-443.