{"id":"CVE-2022-24898","aliases":["CVE-2022-24898","GHSA-m2r5-4w96-qxg5"],"related":[],"kind":"vulnerability","state":"published","title":"Arbitrary file access through XML parsing in org.xwiki.commons:xwiki-commons-xml","summary":"org.xwiki.commons:xwiki-commons-xml is a common module used by other XWiki top level projects. Starting in version 2.7 and prior to versions 12.10.10, 13.4.4, and 13.8-rc-1, it is possible for a script to access any file accessing to the user running XWiki application server with XML External Entity Injection through the XML script service. The problem has been patched in versions 12.10.10, 13.4.4, and 13.8-rc-1. There is no easy workaround for fixing this vulnerability other than upgrading and being careful when giving Script rights.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"org.xwiki.commons:xwiki-commons-xml is a common module used by other XWiki top level projects. Starting in version 2.7 and prior to versions 12.10.10, 13.4.4, and 13.8-rc-1, it is possible for a script to access any file accessing to the user running XWiki application server with XML External Entity Injection through the XML script service. The problem has been patched in versions 12.10.10, 13.4.4, and 13.8-rc-1. There is no easy workaround for fixing this vulnerability other than upgrading and being careful when giving Script rights.","source":"cvelist"},{"lang":"en","text":"### 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)","format":"markdown","source":"ghsa"},{"lang":"es","text":"org.xwiki.commons:xwiki-commons-xml es un módulo común usado por otros proyectos de primer nivel de XWiki. A partir de la versión 2.7 y versiones anteriores a 12.10.10, 13.4.4 y 13.8-rc-1, es posible que un script acceda a cualquier archivo que acceda al usuario que ejecuta el servidor de aplicaciones XWiki con XML External Entity Injection mediante el servicio de script XML. El problema ha sido parcheado en versiones 12.10.10, 13.4.4 y 13.8-rc-1. No se presenta una medida de mitigación fácil para arreglar esta vulnerabilidad, aparte de actualizar y tener cuidado cuando son dados derechos de Script","source":"nvd"}],"published":"2022-04-28T19:31:55.000Z","modified":"2026-06-17T04:32:45.500Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","score":4.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","score":4.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","score":4.9,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","score":4.9,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:P/I:N/A:N","score":4,"rating":"MEDIUM"}],"cwes":["CWE-611"],"affected":[{"ranges":[{"version":">= 2.7, < 12.10.10","status":"affected"},{"version":">= 13.0, < 13.4.4","status":"affected"},{"version":">= 13.5-rc-1, <= 13.7","status":"affected"}],"vendor":"xwiki","product":"xwiki-commons","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.7","status":"affected","fixed":"12.10.10"}],"ecosystem":"Maven","package":"org.xwiki.commons:xwiki-commons-xml","purl":"pkg:maven/org.xwiki.commons/xwiki-commons-xml","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"13.0.0","status":"affected","fixed":"13.4.4"}],"ecosystem":"Maven","package":"org.xwiki.commons:xwiki-commons-xml","purl":"pkg:maven/org.xwiki.commons/xwiki-commons-xml","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"13.5-rc-1","status":"affected","fixed":"13.8-rc-1"}],"ecosystem":"Maven","package":"org.xwiki.commons:xwiki-commons-xml","purl":"pkg:maven/org.xwiki.commons/xwiki-commons-xml","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"2.7","fixed":"12.10.10"},{"status":"affected","introduced":"13.0","fixed":"13.4.4"},{"status":"affected","introduced":"13.5","fixed":"13.8"}],"vendor":"xwiki","product":"commons","cpe":"cpe:2.3:a:xwiki:commons:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/xwiki/xwiki-commons/security/advisories/GHSA-m2r5-4w96-qxg5","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/xwiki/xwiki-commons/commit/947e8921ebd95462d5a7928f397dd1b64f77c7d5","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://jira.xwiki.org/browse/XWIKI-18946","tags":["exploit","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24898","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/xwiki/xwiki-commons","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-04-22T15:48:15.064Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-24898","url":"https://www.cve.org/CVERecord?id=CVE-2022-24898","licence":"CVE Terms of Use","modified":"2025-04-22T18:02:24.536Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-m2r5-4w96-qxg5","url":"https://github.com/advisories/GHSA-m2r5-4w96-qxg5","licence":"CC-BY-4.0","modified":"2023-11-08T04:08:39.783Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-24898","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24898","licence":"Public domain","modified":"2026-06-17T04:32:45.500Z"}],"updatedAt":"2026-11-25T22:58:11.297Z","epss":{"score":0.01485,"percentile":0.74764,"date":"2026-12-01T12:00:22.000Z"}}