CVE-2022-40146
Jar url should be blocked by DefaultScriptSecurity
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
NVD Score used
7.5
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.
- Record
CVE-2022-40146- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-918
- Updated
- 2026-11-02
CVE List No score
Jar url should be blocked by DefaultScriptSecurity
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.
- Record
CVE-2022-40146- Weakness
- CWE-918
- Updated
- 2026-11-02
EUVDEUVD-2022-6834 No score
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.
- Record
EUVD-2022-6834- Updated
- 2026-11-02
GitHub AdvisoriesGHSA-h4qg-p7r2-cpg3
7.5
Apache Batik vulnerable to Server-Side Request Forgery
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.
- Record
GHSA-h4qg-p7r2-cpg3- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-918
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2022-40146
7.5
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.
- Record
DEBIAN-CVE-2022-40146- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-03
OSVGHSA-h4qg-p7r2-cpg3
7.5
Apache Batik vulnerable to Server-Side Request Forgery
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.
- Record
GHSA-h4qg-p7r2-cpg3- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-918
- Updated
- 2026-11-02
Show 8 moreShow less
OSVOESA-2023-1651
7.5
batik security update
Batik is an inline templating engine for CoffeeScript, inspired by CoffeeKup, that lets you write your template directly as a CoffeeScript function.
Security Fix(es):
Server-Side Request Forgery (SSRF) vulnerability in Batik of Apache XML Graphics allows an attacker to load a url thru the jar protocol. This issue affects Apache XML Graphics Batik 1.14.(CVE-2022-38398)
Server-Side Request Forgery (SSRF) vulnerability in Batik of Apache XML Graphics allows an attacker to fetch external resources. This issue affects Apache XML Graphics Batik 1.14.(CVE-2022-38648)
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.(CVE-2022-40146)
Server-Side Request Forgery (SSRF) vulnerability in Apache Software Foundation Apache XML Graphics Batik.This issue affects Apache XML Graphics Batik: 1.16.
On version 1.16, a malicious SVG could trigger loading external resources by default, causing resource consumption or in some cases even information disclosure. Users are recommended to upgrade to version 1.17 or later.
(CVE-2022-44729)
Server-Side Request Forgery (SSRF) vulnerability in Apache Software Foundation Apache XML Graphics Batik.This issue affects Apache XML Graphics Batik: 1.16.
A malicious SVG can probe user profile / data and send it directly as parameter to a URL.
(CVE-2022-44730)
- Record
OESA-2023-1651- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVUBUNTU-CVE-2022-40146
7.5
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.
- Record
UBUNTU-CVE-2022-40146- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVCLSA-2026-1778633124 No score
TuxCare security update for org.apache.xmlgraphics (10 CVEs)
TuxCare rebuilt 27 org.apache.xmlgraphics packages to address 10 CVEs. Fixed in 1.7-tuxcare.1.
- Record
CLSA-2026-1778633124- Updated
- 2026-11-02
OSV No score
Jar url should be blocked by DefaultScriptSecurity
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.
- Record
CVE-2022-40146- Weakness
- CWE-918
- Updated
- 2026-11-02
OSVMGASA-2024-0068 No score
Updated batik packages fix security vulnerabilities
The updated packages fix security vulnerabilities: Server-Side Request Forgery (SSRF) vulnerability in Batik of Apache XML Graphics allows an attacker to load a url thru the jar protocol. (CVE-2022-38398) Server-Side Request Forgery (SSRF) vulnerability in Batik of Apache XML Graphics allows an attacker to fetch external resources. (CVE-2022-38648) Server-Side Request Forgery (SSRF) vulnerability in Batik of Apache XML Graphics allows an attacker to access files using a Jar url. (CVE-2022-40146) A vulnerability in Batik of Apache XML Graphics allows an attacker to run untrusted Java code from an SVG. (CVE-2022-41704) A vulnerability in Batik of Apache XML Graphics allows an attacker to run Java code from untrusted SVG via JavaScript. (CVE-2022-42890)
- Record
MGASA-2024-0068- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:12363-1 No score
xmlgraphics-batik-1.15-1.1 on GA media
These are all security issues fixed in the xmlgraphics-batik-1.15-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:12363-1- Updated
- 2026-11-02
OSVSUSE-SU-2024:0777-1 No score
Security update for xmlgraphics-batik
This update for xmlgraphics-batik fixes the following issues:
- CVE-2017-5662: Fixed Apache Batik information disclosure vulnerability (bsc#1034675).
- CVE-2019-17566: Fixed SSRF vulnerability (bsc#1172961).
- CVE-2020-11987: Fixed Apache XML Graphics Batik SSRF vulnerability (bsc#1182748).
- CVE-2022-38398: Fixed information disclosure vulnerability (bsc#1203674).
- CVE-2022-38648: Fixed information disclosure vulnerability (bsc#1203673).
- CVE-2022-40146: Fixed information disclosure vulnerability (bsc#1203672).
- CVE-2022-41704: Fixed information disclosure vulnerability in Apache Batik (bsc#1204704).
- CVE-2022-42890: Fixed information disclosure vulnerability in Apache Batik (bsc#1204709).
- CVE-2022-44729: Fixed Server-Side Request Forgery.
- CVE-2022-44730: Fixed Server-Side Request Forgery.
Upgrade to version 1.17.
- Record
SUSE-SU-2024:0777-1- Updated
- 2026-11-02
OSVUSN-6117-1 No score
batik vulnerabilities
It was discovered that Apache Batik incorrectly handled certain inputs. An attacker could possibly use this to perform a cross site request forgery attack. (CVE-2019-17566, CVE-2020-11987, CVE-2022-38398, CVE-2022-38648)
It was discovered that Apache Batik incorrectly handled Jar URLs in some situations. A remote attacker could use this issue to access files on the server. (CVE-2022-40146)
It was discovered that Apache Batik allowed running untrusted Java code from an SVG. An attacker could use this issue to cause a denial of service, or possibly execute arbitrary code. (CVE-2022-41704, CVE-2022-42890)
- Record
USN-6117-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
org.apache.xmlgraphics:batikMaven |
1.0 up to 1.15 | 1.15 |
org.apache.xmlgraphics:batik-animTuxCare:Maven From an advisory covering 10 CVEs |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-awt-utilTuxCare:Maven From an advisory covering 10 CVEs |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-bridgeTuxCare:Maven From an advisory covering 10 CVEs |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-codecTuxCare:Maven From an advisory covering 10 CVEs |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-cssTuxCare:Maven From an advisory covering 10 CVEs |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-domTuxCare:Maven From an advisory covering 10 CVEs |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-extTuxCare:Maven From an advisory covering 10 CVEs |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-extensionTuxCare:Maven From an advisory covering 10 CVEs |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-extensionsTuxCare:Maven From an advisory covering 10 CVEs |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
Show 45 moreShow less
| Package | Affected | Fixed |
|---|---|---|
org.apache.xmlgraphics:batik-gui-utilTuxCare:Maven From an advisory covering 10 CVEs |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-gvtTuxCare:Maven From an advisory covering 10 CVEs |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-jsTuxCare:Maven From an advisory covering 10 CVEs |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-parserTuxCare:Maven From an advisory covering 10 CVEs |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-rasterizerTuxCare:Maven From an advisory covering 10 CVEs |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-rasterizer-extTuxCare:Maven From an advisory covering 10 CVEs |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-scriptTuxCare:Maven From an advisory covering 10 CVEs |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-slideshowTuxCare:Maven From an advisory covering 10 CVEs |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-squiggleTuxCare:Maven From an advisory covering 10 CVEs |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-squiggle-extTuxCare:Maven From an advisory covering 10 CVEs |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-svg-domTuxCare:Maven From an advisory covering 10 CVEs |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-svggenTuxCare:Maven From an advisory covering 10 CVEs |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-svgppTuxCare:Maven From an advisory covering 10 CVEs |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-swingTuxCare:Maven From an advisory covering 10 CVEs |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-transcoderTuxCare:Maven From an advisory covering 10 CVEs |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-ttf2svgTuxCare:Maven From an advisory covering 10 CVEs |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-utilTuxCare:Maven From an advisory covering 10 CVEs |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-xmlTuxCare:Maven From an advisory covering 10 CVEs |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
batikDebian:12 |
before 1.15+dfsg-1 | 1.15+dfsg-1 |
batikDebian:13 |
before 1.15+dfsg-1 | 1.15+dfsg-1 |
batikDebian:14 |
before 1.15+dfsg-1 | 1.15+dfsg-1 |
batikDebian:10 From an advisory covering 6 CVEs |
before 1.10-2+deb10u3, plus listed versions 1.10-21.10-2+deb10u11.10-2+deb10u2 |
1.10-2+deb10u3 |
batikDebian:11 From an advisory covering 4 CVEs |
before 1.12-4+deb11u3, plus listed versions 1.12-41.12-4+deb11u11.12-4+deb11u2 |
1.12-4+deb11u3 |
org.apache.xmlgraphics:batikMaven |
1.0 up to 1.15, plus listed versions 1.101.111.121.131.141.9.1 |
1.15 |
batikMageia:9 From an advisory covering 5 CVEs |
before 1.14-4.1.mga9 | 1.14-4.1.mga9 |
batikopenEuler:20.03-LTS-SP1 From an advisory covering 5 CVEs |
before 1.17-1.oe1 | 1.17-1.oe1 |
batikopenEuler:20.03-LTS-SP3 From an advisory covering 5 CVEs |
before 1.17-1.oe1 | 1.17-1.oe1 |
batikopenEuler:22.03-LTS From an advisory covering 5 CVEs |
before 1.17-1.oe2203sp2 | 1.17-1.oe2203sp2 |
batikopenEuler:22.03-LTS-SP1 From an advisory covering 5 CVEs |
before 1.17-1.oe2203sp1 | 1.17-1.oe2203sp1 |
batikopenEuler:22.03-LTS-SP2 From an advisory covering 5 CVEs |
before 1.17-1.oe2203sp2 | 1.17-1.oe2203sp2 |
xmlgraphics-batikSUSE:Linux Enterprise Software Development Kit 12 SP5 From an advisory covering 10 CVEs |
before 1.17-2.7.1 | 1.17-2.7.1 |
batikUbuntu:Pro:14.04:LTS |
before 1.7.ubuntu-8ubuntu2.14.04.3+esm1, plus listed versions 1.7.ubuntu-8ubuntu21.7.ubuntu-8ubuntu2.14.04.11.7.ubuntu-8ubuntu2.14.04.21.7.ubuntu-8ubuntu2.14.04.3 |
1.7.ubuntu-8ubuntu2.14.04.3+esm1 |
batikUbuntu:Pro:16.04:LTS |
before 1.8-3ubuntu1+esm1, plus listed versions 1.7.ubuntu-8ubuntu31.8-31.8-3ubuntu1 |
1.8-3ubuntu1+esm1 |
batikUbuntu:18.04:LTS |
before 1.10-2~18.04.1, plus listed versions 1.9-31.10-2~18.04 |
1.10-2~18.04.1 |
batikUbuntu:20.04:LTS |
before 1.12-1ubuntu0.1, plus listed versions 1.10-21.12-1 |
1.12-1ubuntu0.1 |
batikUbuntu:22.04:LTS |
before 1.14-1ubuntu0.2, plus listed versions 1.12-41.14-1 |
1.14-1ubuntu0.2 |
batikUbuntu:24.04:LTS |
All versions, plus listed versions 1.16+dfsg-11.17+dfsg-1 |
None known |
batikUbuntu:25.10 |
All versions, plus listed versions 1.18+dfsg-2 |
None known |
batikUbuntu:26.10 |
All versions, plus listed versions 1.18+dfsg-2build11.19-2 |
None known |
batikUbuntu:26.04:LTS |
All versions, plus listed versions 1.18+dfsg-21.18+dfsg-2build1 |
None known |
batikUbuntu:Pro:14.04:LTS From an advisory covering 7 CVEs |
before 1.7.ubuntu-8ubuntu2.14.04.3+esm1, plus listed versions 1.7.ubuntu-8ubuntu21.7.ubuntu-8ubuntu2.14.04.11.7.ubuntu-8ubuntu2.14.04.21.7.ubuntu-8ubuntu2.14.04.3 |
1.7.ubuntu-8ubuntu2.14.04.3+esm1 |
batikUbuntu:Pro:16.04:LTS From an advisory covering 7 CVEs |
before 1.8-3ubuntu1+esm1, plus listed versions 1.7.ubuntu-8ubuntu31.8-31.8-3ubuntu1 |
1.8-3ubuntu1+esm1 |
batikUbuntu:18.04:LTS From an advisory covering 7 CVEs |
before 1.10-2~18.04.1, plus listed versions 1.9-31.10-2~18.04 |
1.10-2~18.04.1 |
batikUbuntu:20.04:LTS From an advisory covering 7 CVEs |
before 1.12-1ubuntu0.1, plus listed versions 1.10-21.12-1 |
1.12-1ubuntu0.1 |
batikUbuntu:22.04:LTS From an advisory covering 7 CVEs |
before 1.14-1ubuntu0.2, plus listed versions 1.12-41.14-1 |
1.14-1ubuntu0.2 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| PoC in GitHub | cckuailong/CVE-2022-40146_Exploit_Jar | 2022-11-01 |
| PoC in GitHub | soulfoodisgood/CVE-2022-40146 | 2024-07-30 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | OSV | |
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV, PoC in GitHub |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-40146 is a high vulnerability (CVSS 7.5) in Apache Batik, published September 22, 2022. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 7.43%, the 94th percentile. Fixed in org.apache.xmlgraphics:batik 1.15.
References
lists.apache.org/thread/hxtddqjty2sbs12y97c8g7xfh17jzxsx
lists.debian.org/debian-lts-announce/2023/10/msg00021.html
security.gentoo.org/glsa/202401-11
lists.debian.org/debian-lts-announce/2025/07/msg00006.html
nvd.nist.gov/vuln/detail/CVE-2022-40146
issues.apache.org/jira/browse/BATIK-1335
Show 45 moreShow less
github.com/advisories/GHSA-h4qg-p7r2-cpg3
github.com/CVEProject/cvelistV5/tree/main/cves/2022/40xxx/CVE-2022-40146.json
security-tracker.debian.org/tracker/CVE-2022-40146
github.com/apache/xmlgraphics-batik
advisories.mageia.org/MGASA-2024-0068.html
bugs.mageia.org/show_bug.cgi?id=30882
openwall.com/lists/oss-security/2022/09/22/2
openwall.com/lists/oss-security/2022/09/22/3
openwall.com/lists/oss-security/2022/09/22/4
openwall.com/lists/oss-security/2022/10/25/2
openwall.com/lists/oss-security/2022/10/25/3
debian.org/security/2022/dsa-5264
ubuntu.com/security/notices/USN-6117-1
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2023-1651
nvd.nist.gov/vuln/detail/CVE-2022-38398
nvd.nist.gov/vuln/detail/CVE-2022-38648
nvd.nist.gov/vuln/detail/CVE-2022-44729
nvd.nist.gov/vuln/detail/CVE-2022-44730
suse.com/support/update/announcement/2024/suse-su-20240777-1
bugzilla.suse.com/1034675
bugzilla.suse.com/1172961
bugzilla.suse.com/1182748
bugzilla.suse.com/1203672
bugzilla.suse.com/1203673
bugzilla.suse.com/1203674
bugzilla.suse.com/1204704
bugzilla.suse.com/1204709
suse.com/security/cve/CVE-2017-5662
suse.com/security/cve/CVE-2019-17566
suse.com/security/cve/CVE-2020-11987
suse.com/security/cve/CVE-2022-38398
suse.com/security/cve/CVE-2022-38648
suse.com/security/cve/CVE-2022-40146
suse.com/security/cve/CVE-2022-41704
suse.com/security/cve/CVE-2022-42890
suse.com/security/cve/CVE-2022-44729
suse.com/security/cve/CVE-2022-44730
ubuntu.com/security/CVE-2022-40146
cve.org/CVERecord?id=CVE-2022-40146
ubuntu.com/security/CVE-2019-17566
ubuntu.com/security/CVE-2020-11987
ubuntu.com/security/CVE-2022-38398
ubuntu.com/security/CVE-2022-38648
ubuntu.com/security/CVE-2022-41704
ubuntu.com/security/CVE-2022-42890