GitHub Advisoryadvisory · Maven

GHSA-m2r5-4w96-qxg5 Arbitrary file access through XML parsing in org.xwiki.commons:xwiki-commons-xml

MEDIUM Published 2022-04-28 Modified 2022-04-28 Official page ↗
Aliases
CVE-2022-24898
Ecosystem
Maven
Packages
org.xwiki.commons:xwiki-commons-xml
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
Weaknesses
CWE-611
Reviewed
2022-04-28

Affected packages

• Maven org.xwiki.commons:xwiki-commons-xml: >= 2.7, < 12.10.10 → fixed in 12.10.10 • Maven org.xwiki.commons:xwiki-commons-xml: >= 13.0.0, < 13.4.4 → fixed in 13.4.4 • Maven org.xwiki.commons:xwiki-commons-xml: >= 13.5-rc-1, < 13.8-rc-1 → fixed in 13.8-rc-1

Description

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 = "]>&xxe;") 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 • Email us at XWiki Security mailing-list

Related

Alias · CVE (1)

  • CVE-2022-24898 org.xwiki.commons:xwiki-commons-xml is a common module used by other XWiki top level projects. vulnerability

Weakness · CWE (1)

  • CWE-611 Improper Restriction of XML External Entity Reference weakness

References