Back
CVE-2022-41704
Apache Batik prior to 1.16 allows RCE when loading untrusted SVG input
High7.5EPSS 3.1%
- Published
- Updated
- Reserved
- Assigned by
- apache
Description
A vulnerability in Batik of Apache XML Graphics allows an attacker to run untrusted Java code from an SVG. This issue affects Apache XML Graphics prior to 1.16. It is recommended to update to version 1.16.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| CISA-ADPADP (enrichment) | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| 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.1% · top 12% of all CVEs (6 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: yes · Technical impact: partial
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
- A jar file can be loaded from svg script element
- CWE-918 Server-Side Request Forgery (SSRF) (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-r29w-r9ph-vm76 (opens in a new tab)
References (5)
- https://lists.apache.org/thread/hplhx0o74jb7blj39fm4kw3otcnjd6xf (opens in a new tab)x_transferred
- [oss-security] 20221025 [CVE-2022-41704] 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-r29w-r9ph-vm76 (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-41704)Record last updated .