CVE-2022-42890 json
Apache Batik prior to 1.16 allows RCE via scripting
published 4y ago modified 4mo 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
Is CVE-2022-42890 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor 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 batikaffected: no fix planned “Out of support scope”
-
Red Hat Integration Camel K 1 batik Red Hat Integration Camel Quarkus 2 batikaffected: no fix planned “Will not fix”
-
Red Hat JBoss Data Grid 7 batik Red Hat Process Automation 7 batikaffected: no fix planned “Out of support scope”
-
Red Hat Fuse 7.12fixed: vendor fix RHSA-2023:3954
-
Red Hat RHINT Camel-Springboot 3.20.1fixed: 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-09).
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
-
github.com
/apache/xmlgraphics-batik/commit/401aa8595f52d085d40ff5b6b4ac0dd372423082
web
-
github.com
/apache/xmlgraphics-batik/commit/52f7a1ad6e3110ec295a35ffc94410eef085707a
web
-
github.com
/apache/xmlgraphics-batik/commit/eada57c716a2757579d53017f8b2aeadaad20edd
web
-
debian.org
/security/2022/dsa-5264
vendor-advisory, web, third-party-advisory
-
security.gentoo.org
/glsa/202401-11
vendor-advisory, web
-
lists.apache.org
/thread/pkvhy0nsj1h1mlon008wtzhosbtxjwly
web, vendor-advisory
-
openwall.com
/lists/oss-security/2022/10/25/3
mailing-list, web, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2022/10/msg00038.html
mailing-list, web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-42890
advisory
-
issues.apache.org
/jira/browse/BATIK-1345
web
-
xmlgraphics.apache.org
/security.html
web
-
svn.apache.org
/repos/asf/xmlgraphics/batik/trunk
web
Sources
- CVE List CVE-2022-42890
- GitHub Advisory GHSA-rwqr-m72q-v6cm
- NVD CVE-2022-42890
Fencer Intel 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.