CVE-2022-41704
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| org.apache.xmlgraphics:batik-rasterizer | Maven Central | 1.16 |
| org.apache.xmlgraphics:batik-bridge | Maven Central | 1.16 |
| org.apache.xmlgraphics:batik-dom | Maven Central | 1.16 |
| org.apache.xmlgraphics:batik-svgbrowser | Maven Central | 1.16 |
| org.apache.xmlgraphics:batik | Maven Central | 1.16 |
| batik-javadoc | Amazon Linux | 1.8-0.12.svn1230816.amzn2.0.1 |
| batik-ttf2svg | Amazon Linux | 1.8-0.12.svn1230816.amzn2.0.1 |
| batik-demo | Amazon Linux | 1.8-0.12.svn1230816.amzn2.0.1 |
| batik-squiggle | Amazon Linux | 1.8-0.12.svn1230816.amzn2.0.1 |
| batik-slideshow | Amazon Linux | 1.8-0.12.svn1230816.amzn2.0.1 |
| batik | Amazon Linux | 1.8-0.12.svn1230816.amzn2.0.1 |
| batik-svgpp | Amazon Linux | 1.8-0.12.svn1230816.amzn2.0.1 |
3 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Apache Software Foundation | Apache XML Graphics | Batik |
| amazon:2 | batik-javadoc | 0 |
| Maven | org.apache.xmlgraphics:batik-rasterizer | 1.0 |
| Maven | org.apache.xmlgraphics:batik-bridge | 0 |
| Maven | org.apache.xmlgraphics:batik-svgbrowser | 1.0 |
| amazon:2 | batik-ttf2svg | 0 |
| amazon:2 | batik-demo | 0 |
| amazon:2 | batik-squiggle | 0 |
| Maven | org.apache.xmlgraphics:batik-dom | 1.0 |
| amazon:2 | batik-slideshow | 0 |
| amazon:2 | batik | 0 |
| amazon:2 | batik-svgpp | 0 |
| amazon:2 | batik-rasterizer | 0 |
| Maven | org.apache.xmlgraphics:batik | 0 |
| Apache Software Foundation | Apache 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
References
- [oss-security] 20221025 [CVE-2022-41704] Apache Batik information disclosure vulnerability mailing-list
- [debian-lts-announce] 20221029 [SECURITY] [DLA 3169-1] batik security update mailing-list
- DSA-5264 vendor-advisory
- GLSA-202401-11 vendor-advisory
- https://nvd.nist.gov/vuln/detail/CVE-2022-41704 advisory
- https://github.com/apache/xmlgraphics-batik/commit/905f368b50c2567cf2c4869a0ab596a7b1b5125c patch
- https://issues.apache.org/jira/browse/BATIK-1338 url
- https://xmlgraphics.apache.org/security.html url
- https://github.com/advisories/GHSA-r29w-r9ph-vm76 advisory