CVE-2022-24278 Directory Traversal

High 7.5 Published Updated

Attackers can read arbitrary files via a crafted SVG file due to improper sanitization in the convert-svg-core library.

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

CVE-2022-24278 is a high-severity path traversal 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.4 are vulnerable to Directory Traversal due to improper sanitization of SVG tags. Exploiting this vulnerability is possible by using a specially crafted SVG file.

Weakness: CWE-22

Which versions are affected by CVE-2022-24278?

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

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

Products include Convert-Svg Project Convert-Svg.

How do I fix CVE-2022-24278?

Upgrade convert-svg-core to 0.6.4 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2022-24278 being exploited?

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

Sources

Also known as GHSA-5f47-rcg5-9m24, SNYK-JS-CONVERTSVGCORE-2859830.

Is CVE-2022-24278 in your software?

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

Check your SBOMs for free