CVE-2022-24429 Arbitrary Code Injection
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.
| Package | Affected | Fixed in |
|---|---|---|
convert-svg-core npm | All versions | 0.6.3 |
convert-svg-core npm | All versions | 0.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.
Other vulnerabilities in convert-svg-core
Sources
Also known as GHSA-54px-mhwv-5v8x, SNYK-JS-CONVERTSVGCORE-2859212.