GHSA-m2r5-4w96-qxg5

    Dashboard / Vulnerabilities / GHSA-m2r5-4w96-qxg5

    GHSA-m2r5-4w96-qxg5

    Published: 28 Apr 2022Last Modified: 8 Nov 2023

    Summary: Arbitrary file access through XML parsing in org.xwiki.commons:xwiki-commons-xml

    Details: ### 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:[email protected])

    Affected packages

    Package

    Name: org.xwiki.commons:xwiki-commons-xml

    Purl: pkg:maven/org.xwiki.commons/xwiki-commons-xml

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 2.7
    Fixed -12.10.10

    Affected versions

    10.0

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-m2r5-4w96-qxg5 | CVE-DB