# CVE-2022-42890: libbatik-java: A vulnerability in Batik of Apache XML Graphics allows an attacker to run Java code from untrusted SVG via JavaScript

CVE-2022-42890 is fixed in 2 products on 1 platform, first by libbatik-java 1.10-2~18.04.1, released October 25, 2022. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2022-42890
- Priority: High
- CVSS: 7.5 (Medium)
- EPSS: 0.0336
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Oct 25, 2022

## Description

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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | batik Debian 12.15 (bookworm) | 1.16+dfsg-1 | [DEBIAN-CVE-2022-42890](https://patchblox.com/security/data/fix/linux/debian-cve-2022-42890.md) | Oct 25, 2022 |
| Linux | batik Debian 13.5 (trixie) | 1.16+dfsg-1 | [DEBIAN-CVE-2022-42890](https://patchblox.com/security/data/fix/linux/debian-cve-2022-42890.md) | Oct 25, 2022 |
| Linux | batik Debian 14 | 1.16+dfsg-1 | [DEBIAN-CVE-2022-42890](https://patchblox.com/security/data/fix/linux/debian-cve-2022-42890.md) | Oct 25, 2022 |
| Linux | libbatik-java Ubuntu 18.04.6 LTS (bionic) | 1.10-2~18.04.1 | [libbatik-java 1.10-2~18.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libbatik-java-1.10-2-18.04.1.md) | Oct 25, 2022 |
| Linux | libbatik-java Ubuntu 20.04 LTS (focal) | 1.12-1ubuntu0.1 | [libbatik-java 1.12-1ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libbatik-java-1.12-1ubuntu0.1.md) | Oct 25, 2022 |
| Linux | libbatik-java Ubuntu 22.04.1 LTS (jammy) | 1.14-1ubuntu0.2 | [libbatik-java 1.14-1ubuntu0.2](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libbatik-java-1.14-1ubuntu0.2.md) | Oct 25, 2022 |

---

Data as of 2026-11-08T06:59:42Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
