CVE-2022-41704
Apache Batik prior to 1.16 allows RCE when loading untrusted SVG input
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.
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
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.
- Record
CVE-2022-41704- 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
7.5
Apache Batik prior to 1.16 allows RCE when loading untrusted SVG input
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.
- Record
CVE-2022-41704- 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
EUVDEUVD-2022-7156
7.5
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.
- Record
EUVD-2022-7156- 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
GitHub AdvisoriesGHSA-r29w-r9ph-vm76
7.5
Apache XML Graphics Batik vulnerable to code execution via SVG.
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.
- Record
GHSA-r29w-r9ph-vm76- 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
OSV
7.5
Apache Batik prior to 1.16 allows RCE when loading untrusted SVG input
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.
- Record
CVE-2022-41704- 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
OSVGHSA-r29w-r9ph-vm76
7.5
Apache XML Graphics Batik vulnerable to code execution via SVG.
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.
- Record
GHSA-r29w-r9ph-vm76- 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 12 moreShow less
OSVOESA-2023-1050
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):
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.(CVE-2022-41704)
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.(CVE-2022-42890)
- Record
OESA-2023-1050- 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
OSVOESA-2023-1051
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):
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.(CVE-2022-41704)
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.(CVE-2022-42890)
- Record
OESA-2023-1051- 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
OSVOESA-2023-1057
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):
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.(CVE-2022-41704)
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.(CVE-2022-42890)
- Record
OESA-2023-1057- 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
OSVOESA-2023-1060
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):
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.(CVE-2022-41704)
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.(CVE-2022-42890)
- Record
OESA-2023-1060- 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-41704
7.5
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.
- Record
UBUNTU-CVE-2022-41704- 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
OSVDEBIAN-CVE-2022-41704 No score
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.
- Record
DEBIAN-CVE-2022-41704- Updated
- 2026-11-03
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:13743-1 No score
xmlgraphics-batik-1.17-1.1 on GA media
These are all security issues fixed in the xmlgraphics-batik-1.17-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:13743-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
OSVSUSE-SU-2024:0808-1 No score
Security update for xmlgraphics-batik
This update for xmlgraphics-batik fixes the following issues:
- 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-44730: Fixed Server-Side Request Forgery.
- CVE-2022-44729: Fixed Server-Side Request Forgery.
Upgrade to version 1.17.
- Record
SUSE-SU-2024:0808-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 |
before 1.16 | 1.16 |
org.apache.xmlgraphics:batik-animTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-awt-utilTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-bridgeTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-codecTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-cssTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-domTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-extTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-extensionTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-extensionsTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
Show 41 moreShow less
| Package | Affected | Fixed |
|---|---|---|
org.apache.xmlgraphics:batik-gui-utilTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-gvtTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-jsTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-parserTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-rasterizerTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-rasterizer-extTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-scriptTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-slideshowTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-squiggleTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-squiggle-extTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-svg-domTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-svggenTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-svgppTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-swingTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-transcoderTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-ttf2svgTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-utilTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-xmlTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
batikDebian:12 |
before 1.16+dfsg-1 | 1.16+dfsg-1 |
batikDebian:13 |
before 1.16+dfsg-1 | 1.16+dfsg-1 |
batikDebian:14 |
before 1.16+dfsg-1 | 1.16+dfsg-1 |
batikDebian:10 |
before 1.10-2+deb10u2, plus listed versions 1.10-21.10-2+deb10u1 |
1.10-2+deb10u2 |
batikDebian:11 |
before 1.12-4+deb11u1, plus listed versions 1.12-4 |
1.12-4+deb11u1 |
org.apache.xmlgraphics:batikMaven |
before 1.16, plus listed versions 1.101.111.121.131.141.151.9.1 |
1.16 |
batikMageia:9 |
before 1.14-4.1.mga9 | 1.14-4.1.mga9 |
batikopenEuler:22.03-LTS-SP1 |
before 1.10-7.oe2203sp1 | 1.10-7.oe2203sp1 |
batikopenEuler:22.03-LTS |
before 1.10-7.oe2203 | 1.10-7.oe2203 |
batikopenEuler:20.03-LTS-SP3 |
before 1.10-7.oe1 | 1.10-7.oe1 |
batikopenEuler:20.03-LTS-SP1 |
before 1.10-7.oe1 | 1.10-7.oe1 |
xmlgraphics-batikSUSE:Linux Enterprise Software Development Kit 12 SP5 |
before 1.17-2.7.1 | 1.17-2.7.1 |
xmlgraphics-batikSUSE:Linux Enterprise Module for Development Tools 15 SP5 |
before 1.17-150200.4.7.1 | 1.17-150200.4.7.1 |
xmlgraphics-batikopenSUSE:Leap 15.5 |
before 1.17-150200.4.7.1 | 1.17-150200.4.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 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-41704 is a high vulnerability (CVSS 7.5) in Apache Batik, published October 25, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 3.10%, the 87th percentile. Fixed in org.apache.xmlgraphics:batik 1.16.
References
lists.apache.org/thread/hplhx0o74jb7blj39fm4kw3otcnjd6xf
openwall.com/lists/oss-security/2022/10/25/2
lists.debian.org/debian-lts-announce/2022/10/msg00038.html
debian.org/security/2022/dsa-5264
security.gentoo.org/glsa/202401-11
nvd.nist.gov/vuln/detail/CVE-2022-41704
Show 48 moreShow less
github.com/apache/xmlgraphics-batik/commit/905f368b50c2567cf2c4869a0ab596a7b1b5125c
issues.apache.org/jira/browse/BATIK-1338
xmlgraphics.apache.org/security.html
github.com/advisories/GHSA-r29w-r9ph-vm76
github.com/CVEProject/cvelistV5/tree/main/cves/2022/41xxx/CVE-2022-41704.json
security-tracker.debian.org/tracker/CVE-2022-41704
svn.apache.org/repos/asf/xmlgraphics/batik/trunk
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/3
ubuntu.com/security/notices/USN-6117-1
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2023-1050
nvd.nist.gov/vuln/detail/CVE-2022-42890
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2023-1051
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2023-1057
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2023-1060
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
suse.com/support/update/announcement/2024/suse-su-20240808-1
ubuntu.com/security/CVE-2022-41704
svn.apache.org/viewvc?view=revision&revision=1904320
cve.org/CVERecord?id=CVE-2022-41704
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-40146
ubuntu.com/security/CVE-2022-42890