VDB

CVE-2022-41704

CVE-2022-41704 PUBLISHED CVSS 7.5 HIGH

Apache Batik prior to 1.16 allows RCE when loading untrusted SVG input

Reported by apache · Published October 25, 2022

batik-rasterizer is fixed in 1.16 (Maven Central)

A vulnerability in Batik of Apache XML Graphics allows an attacker to run untrusted Java code from an SVG. This issue affects Apache XML Graphics prior to 1.16. It is recommended to update to version 1.16.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
org.apache.xmlgraphics:batik-rasterizerMaven Central1.16
org.apache.xmlgraphics:batik-bridgeMaven Central1.16
org.apache.xmlgraphics:batik-domMaven Central1.16
org.apache.xmlgraphics:batik-svgbrowserMaven Central1.16
org.apache.xmlgraphics:batikMaven Central1.16
batik-javadocAmazon Linux1.8-0.12.svn1230816.amzn2.0.1
batik-ttf2svgAmazon Linux1.8-0.12.svn1230816.amzn2.0.1
batik-demoAmazon Linux1.8-0.12.svn1230816.amzn2.0.1
batik-squiggleAmazon Linux1.8-0.12.svn1230816.amzn2.0.1
batik-slideshowAmazon Linux1.8-0.12.svn1230816.amzn2.0.1
batikAmazon Linux1.8-0.12.svn1230816.amzn2.0.1
batik-svgppAmazon Linux1.8-0.12.svn1230816.amzn2.0.1

3 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected products

VendorProductVersions
Apache Software FoundationApache XML GraphicsBatik
amazon:2batik-javadoc0
Mavenorg.apache.xmlgraphics:batik-rasterizer1.0
Mavenorg.apache.xmlgraphics:batik-bridge0
Mavenorg.apache.xmlgraphics:batik-svgbrowser1.0
amazon:2batik-ttf2svg0
amazon:2batik-demo0
amazon:2batik-squiggle0
Mavenorg.apache.xmlgraphics:batik-dom1.0
amazon:2batik-slideshow0
amazon:2batik0
amazon:2batik-svgpp0
amazon:2batik-rasterizer0
Mavenorg.apache.xmlgraphics:batik0
Apache Software FoundationApache XML Graphics*

Timeline

  • Oct 25, 2022 CVE Published
  • Oct 26, 2022 EPSS Score (30 in total, the first dated here)
  • Mar 17, 2026 Security Advisory (28 in total, the first dated here)
  • Jun 15, 2026 Coalition ESS Score
  • Nov 21, 2026 Distribution Patch (26 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2022-41704
vulnetix vdb fixes CVE-2022-41704

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-41704/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›