Skip to content
Fencer Vulns
high 7.5

CVE-2022-42890 json

Apache Batik prior to 1.16 allows RCE via scripting

published 2022-10-25 4 y ago modified 2026-06-17 4 mo ago also GHSA-rwqr-m72q-v6cm , EUVD-2022-7161

cvss
7.5
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
3.4%
EPSS 3.4% chance of exploitation in 30 days, percentile 88%
public exploits
0
none known

Summary

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.

Patch / fix

  • maven org.apache.xmlgraphics:batik 1.16
  • maven org.apache.xmlgraphics:batik-bridge 1.16
  • apache batik 1.16
  • batik Debian 14, Debian 13, Debian 12 1.16+dfsg-1

debian advisories DEBIAN-CVE-2022-42890

  • batik Ubuntu 18.04 LTS 1.10-2~18.04.1
  • batik Ubuntu 20.04 LTS 1.12-1ubuntu0.1
  • batik Ubuntu 22.04 LTS 1.14-1ubuntu0.2
  • batik Ubuntu Pro 14.04 LTS 1.7.ubuntu-8ubuntu2.14.04.3+esm1
  • batik Ubuntu Pro 16.04 LTS 1.8-3ubuntu1+esm1

ubuntu advisories UBUNTU-CVE-2022-42890

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • xmlgraphics-batik SLE Module for Development Tools 15 SP5, openSUSE Leap 15.5 1.17-150200.4.7.1
  • xmlgraphics-batik SLE Software Development Kit 12 SP5 1.17-2.7.1

suse advisories SUSE-SU-2024:0808-1SUSE-SU-2024:0777-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-42890 updated cvss 7.5

batik: Untrusted code execution in Apache XML Graphics Batik

  • Red Hat Decision Manager 7 batik
    affected: no fix planned “Out of support scope”
  • Red Hat Integration Camel K 1 batik Red Hat Integration Camel Quarkus 2 batik
    affected: no fix planned “Will not fix”
  • Red Hat JBoss Data Grid 7 batik Red Hat Process Automation 7 batik
    affected: no fix planned “Out of support scope”
  • Red Hat Fuse 7.12
    fixed: vendor fix RHSA-2023:3954
  • Red Hat RHINT Camel-Springboot 3.20.1
    fixed: vendor fix RHSA-2023:2100

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

3.36% chance of exploitation in the next 30 days, higher than 88% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
GitHub 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected packages

ecosystem package affected fixed in
maven org.apache.xmlgraphics:batik
<1.16
1.16
maven org.apache.xmlgraphics:batik-bridge
<1.16
1.16

Affected products

  • Apache Software Foundation Apache XML Graphics

Classification

Weakness
  • CWE-918 Server-Side Request Forgery

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.