CVE-2022-45908 PaddlePaddle vulnerable to code injection via winstr

Critical 9.8 Published Updated

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.

PackageAffectedFixed in
paddlepaddle PyPIAll versions2.4
paddlepaddle PyPIAll versions2.4
paddlepaddle PyPIAll versions2.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.

Sources

Also known as GHSA-83g7-8fch-p37m, PYSEC-2026-443.

Is CVE-2022-45908 in your software?

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

Check your SBOMs for free