Untrusted code execution in Apache XML Graphics Batik
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Java / Kotlin (Maven) | org.apache.xmlgraphics:batik | < 1.16 | 1.16 |
| Java / Kotlin (Maven) | org.apache.xmlgraphics:batik-bridge | < 1.16 | 1.16 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-42890
- https://github.com/apache/xmlgraphics-batik/commit/401aa8595f52d085d40ff5b6b4ac0dd372423082
- https://github.com/apache/xmlgraphics-batik/commit/52f7a1ad6e3110ec295a35ffc94410eef085707a
- https://github.com/apache/xmlgraphics-batik/commit/eada57c716a2757579d53017f8b2aeadaad20edd
- https://issues.apache.org/jira/browse/BATIK-1345
- https://lists.apache.org/thread/pkvhy0nsj1h1mlon008wtzhosbtxjwly
- https://lists.debian.org/debian-lts-announce/2022/10/msg00038.html
- https://security.gentoo.org/glsa/202401-11
- https://www.debian.org/security/2022/dsa-5264
- https://xmlgraphics.apache.org/security.html
- http://svn.apache.org/repos/asf/xmlgraphics/batik/trunk
- http://www.openwall.com/lists/oss-security/2022/10/25/3
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N- Weakness (CWE)
CWE-918- Platform
- Java / Kotlin (Maven)
- Package
org.apache.xmlgraphics:batik, org.apache.xmlgraphics:batik-bridge- Disclosed
- 25.10.2022
- Updated
- 11.10.2026 12:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-rwqr-m72q-v6cm - CC BY 4.0
Vulnerability history: org.apache.xmlgraphics:batik
All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 9
- First → latest
- 02.2022 10.2022
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- Critical 1
- High 5
- Medium 3
Disclosures per year
- 2022: 9
- 2023: 0
- 2024: 0
- 2025: 0
- 2026: 0
-
Untrusted code execution in Apache XML Graphics Batik this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.