VDB
CVE-2022-40146
CVE-2022-40146
PUBLISHED
CVSS 7.5 HIGH
Jar url should be blocked by DefaultScriptSecurity
Reported by apache · Published September 22, 2022
batik is fixed in 1.15 (Maven Central)
Server-Side Request Forgery (SSRF) vulnerability in Batik of Apache XML Graphics allows an attacker to access files using a Jar url. This issue affects Apache XML Graphics Batik 1.14.
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 | Maven Central | 1.15 |
| org.apache.xmlgraphics:batik-bridge | Maven Central | 1.15 |
| batik-svgpp | Amazon Linux | 1.8-0.12.svn1230816.amzn2.0.1 |
| batik | Amazon Linux | 1.8-0.12.svn1230816.amzn2.0.1 |
| batik-squiggle | Amazon Linux | 1.8-0.12.svn1230816.amzn2.0.1 |
| batik-rasterizer | Amazon Linux | 1.8-0.12.svn1230816.amzn2.0.1 |
| batik-javadoc | Amazon Linux | 1.8-0.12.svn1230816.amzn2.0.1 |
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
| Vendor | Product | Versions |
|---|---|---|
| Apache Software Foundation | Apache XML Graphics | Batik 1.14 |
| amazon:2 | batik-svgpp | 0 |
| amazon:2 | batik | 0 |
| amazon:2 | batik-squiggle | 0 |
| amazon:2 | batik-rasterizer | 0 |
| Maven | org.apache.xmlgraphics:batik-rasterizer | 1.14 |
| amazon:2 | batik-javadoc | 0 |
| Maven | org.apache.xmlgraphics:batik-bridge | 1.0 |
| Apache Software Foundation | Apache XML Graphics | 1.14 |
| Maven | org.apache.xmlgraphics:batik-dom | 1.14 |
| amazon:2 | batik-ttf2svg | 0 |
| amazon:2 | batik-slideshow | 0 |
| Maven | org.apache.xmlgraphics:batik-svgbrowser | 1.14 |
| Maven | org.apache.xmlgraphics:batik | 1.0 |
| amazon:2 | batik-demo | 0 |
Timeline
- Sep 22, 2022 CVE Published
- Sep 23, 2022 EPSS Score (30 in total, the first dated here)
- Mar 17, 2026 Security Advisory (27 in total, the first dated here)
- Jun 17, 2026 Coalition ESS Score
- Nov 22, 2026 Distribution Patch (25 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-40146
vulnetix vdb fixes CVE-2022-40146
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-40146/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- [debian-lts-announce] 20231014 [SECURITY] [DLA 3619-1] batik security update mailing-list
- GLSA-202401-11 vendor-advisory
- https://nvd.nist.gov/vuln/detail/CVE-2022-40146 advisory
- https://github.com/advisories/GHSA-h4qg-p7r2-cpg3 advisory
- https://github.com/apache/xmlgraphics-batik url
- https://issues.apache.org/jira/browse/BATIK-1335 url
- https://lists.debian.org/debian-lts-announce/2025/07/msg00006.html url