Back
CVE-2022-42890
Apache Batik prior to 1.16 allows RCE via scripting
High7.5EPSS 3.4%
- Published
- Updated
- Reserved
- Assigned by
- apache
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
- EPSS (exploitation in 30 days)
- 3.4% · top 11% of all CVEs (6 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
Weakness
- Remote code execution via batik scripting
- CWE-918 (opens in a new tab)All about CWE-918 and its CVEs
Affected products
Apache Software Foundation · Apache XML Graphics
- affected Batik – ≤ 1.15
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Mavenorg.apache.xmlgraphics:batikGHSA-rwqr-m72q-v6cm (opens in a new tab)
- Mavenorg.apache.xmlgraphics:batik-bridgeGHSA-rwqr-m72q-v6cm (opens in a new tab)
References (5)
- https://lists.apache.org/thread/pkvhy0nsj1h1mlon008wtzhosbtxjwly (opens in a new tab)x_transferred
- [oss-security] 20221025 [CVE-2022-42890] Apache Batik information disclosure vulnerability (opens in a new tab)mailing-listx_transferred
- [debian-lts-announce] 20221029 [SECURITY] [DLA 3169-1] batik security update (opens in a new tab)mailing-listx_transferred
- DSA-5264 (opens in a new tab)vendor-advisoryx_transferred
- GLSA-202401-11 (opens in a new tab)vendor-advisoryx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-rwqr-m72q-v6cm (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2022-42890)Record last updated .