CVE-2022-24898: Arbitrary file access through XML parsing in org.xwiki.commons:xwiki-commons-xml
4.9
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.3314%
CWE
Published
4/28/2022
Updated
1/30/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.xwiki.commons:xwiki-commons-xml | maven | >= 2.7, < 12.10.10 | 12.10.10 |
org.xwiki.commons:xwiki-commons-xml | maven | >= 13.0.0, < 13.4.4 | 13.4.4 |
org.xwiki.commons:xwiki-commons-xml | maven | >= 13.5-rc-1, <= 13.7 | 13.8-rc-1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from insufficient security settings in the XML parser. The patch explicitly adds three security parameters (DISABLE_EXTERNAL_DOCTYPE_DECLARATION, DISABLE_EXTERNAL_PARAMETER_ENTITIES, DISABLE_EXTERNAL_GENERAL_ENTITIES) to the DOM parser configuration in the parse() method. The presence of these parameters in the patch indicates the vulnerable code path was in the XML parsing logic handled by this function. The example exploit demonstrates direct usage of this function via $xml.parse(), confirming its role in the vulnerability.