CVE-2022-24429 Arbitrary Code Injection

High 7.5 Published Updated

Attackers can inject arbitrary code via crafted SVG files to execute code and read sensitive files from the system.

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-24429?

CVE-2022-24429 is a high-severity code injection vulnerability in convert-svg-core, published on 10 Jun 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The package convert-svg-core before 0.6.3 are vulnerable to Arbitrary Code Injection when using a specially crafted SVG file. An attacker can read arbitrary files from the file system and then show the file content as a converted PNG file.

Weakness: CWE-94

Which versions are affected by CVE-2022-24429?

2 open source packages ship an affected version, including convert-svg-core. It affects 1 product.

PackageAffectedFixed in
convert-svg-core npmAll versions0.6.3
convert-svg-core npmAll versions0.6.3

Products include Convert-Svg-Core Project Convert-Svg-Core.

How do I fix CVE-2022-24429?

Upgrade convert-svg-core to 0.6.3 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2022-24429 being exploited?

There is no known exploitation of CVE-2022-24429 in the wild and no public exploit code.

Sources

Also known as GHSA-54px-mhwv-5v8x, SNYK-JS-CONVERTSVGCORE-2859212.

Is CVE-2022-24429 in your software?

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

Check your SBOMs for free