CVE-2022-41704: Apache XML Graphics Batik vulnerable to code execution via SVG.
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.40118%
CWE
Published
10/25/2022
Updated
1/8/2024
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.apache.xmlgraphics:batik | maven | < 1.16 | 1.16 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from Batik's handling of <script> elements with type 'application/java-archive'. The commit 905f368 shows the fix added a script type check (SVG_SCRIPT_TYPE_JAVA) to DefaultScriptSecurity's constructor. This indicates the vulnerable code path was in the script loading validation logic that previously didn't properly restrict Java archive execution. The CWE-918 classification aligns with the SSRF vector through improper URI validation, but the primary impact was code execution via Java class loading from untrusted sources.