CVE-2022-42890
HIGH 7.5CVSS 3.1Untrusted 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.
- Published
- 25 Oct 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security@apache.org
- NVD status
- Modified
- Weakness
- CWE-918
- Also known as
- GHSA-rwqr-m72q-v6cm
- Sources
- NVDJSONOSV GHSA-rwqr-m72q-v6cmJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | apache | batikcpe:2.3:a:apache:batik:*:*:*:*:*:*:*:* |
>= 1.0, < 1.16 | 1.16 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* |
= 11.0 | |
| OSV | Maven | org.apache.xmlgraphics:batik | < 1.16 | 1.16 |
| OSV | Maven | org.apache.xmlgraphics:batik-bridge | < 1.16 | 1.16 |
References
- http://www.openwall.com/lists/oss-security/2022/10/25/3 · Mailing List, Third Party Advisory, WEB
- https://lists.apache.org/thread/pkvhy0nsj1h1mlon008wtzhosbtxjwly · Vendor Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2022/10/msg00038.html · Mailing List, Third Party Advisory, WEB
- https://security.gentoo.org/glsa/202401-11 · WEB
- https://www.debian.org/security/2022/dsa-5264 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-42890 · ADVISORY
- https://github.com/apache/xmlgraphics-batik/commit/401aa8595f52d085d40ff5b6b4ac0dd372423082 · WEB
- https://github.com/apache/xmlgraphics-batik/commit/52f7a1ad6e3110ec295a35ffc94410eef085707a · WEB
- https://github.com/apache/xmlgraphics-batik/commit/eada57c716a2757579d53017f8b2aeadaad20edd · WEB
- https://issues.apache.org/jira/browse/BATIK-1345 · WEB
- https://xmlgraphics.apache.org/security.html · WEB
- http://svn.apache.org/repos/asf/xmlgraphics/batik/trunk · WEB
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 25 Oct 2022)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 25 Oct 2022)