CVE-2022-42890 Apache Batik prior to 1.16 allows RCE via scripting

High 7.5 Published Updated

Attackers can execute arbitrary Java code by processing malicious SVG files containing JavaScript in Apache Batik.

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

CVE-2022-42890 is a high-severity code injection vulnerability in Debian Debian Linux, published on 25 Oct 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A vulnerability in Batik of Apache XML Graphics allows an attacker to run Java code from untrusted SVG via JavaScript. This issue affects Apache XML Graphics prior to 1.16. Users are recommended to upgrade to version 1.16.

Weakness: CWE-918

Which versions are affected by CVE-2022-42890?

4 open source packages ship an affected version, including org.apache.xmlgraphics:batik and org.apache.xmlgraphics:batik-bridge. It affects 2 products.

PackageAffectedFixed in
org.apache.xmlgraphics:batik MavenAll versions1.16
org.apache.xmlgraphics:batik MavenAll versions1.16
org.apache.xmlgraphics:batik-bridge MavenAll versions1.16
org.apache.xmlgraphics:batik-bridge MavenAll versions1.16

Products include Apache Batik, Debian Debian Linux.

How do I fix CVE-2022-42890?

Upgrade org.apache.xmlgraphics:batik to 1.16 or later.

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

Is CVE-2022-42890 being exploited?

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

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-42890, GHSA-rwqr-m72q-v6cm, UBUNTU-CVE-2022-42890.

Is CVE-2022-42890 in your software?

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

Check your SBOMs for free