{"id":"CVE-2022-24898","summary":"Arbitrary file access through XML parsing in org.xwiki.commons:xwiki-commons-xml","details":"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.","aliases":["GHSA-m2r5-4w96-qxg5"],"modified":"2026-10-28T10:25:47.634363120Z","published":"2022-04-28T19:35:10Z","database_specific":{"cwe_ids":["CWE-611"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/24xxx/CVE-2022-24898.json","cna_assigner":"GitHub_M"},"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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/xwiki/xwiki-commons","events":[{"introduced":"0"},{"fixed":"146d8e8a267bfc18f9b3a285af47d313c7cca81d"},{"introduced":"271203deeb757a7c21e3c0623b79e7b3050c2a05"},{"fixed":"48e84afcd78dddb228a53067132edcaace7c65d2"},{"introduced":"7c923a6f41c24d1c9bc654edffca1051dad4dd21"},{"fixed":"24e8145d870c6b71abcbd018da45102792b7c03a"},{"fixed":"947e8921ebd95462d5a7928f397dd1b64f77c7d5"}],"database_specific":{"extracted_events":[{"cpe":"cpe:2.3:a:xwiki:commons:*:*:*:*:*:*:*:*","range":[{"introduced":"2.7"},{"fixed":"12.10.10"}],"source":"CPE_RANGE"},{"source":"CPE_RANGE","cpe":"cpe:2.3:a:xwiki:commons:*:*:*:*:*:*:*:*","range":[{"introduced":"13.0"},{"fixed":"13.4.4"}]},{"cpe":"cpe:2.3:a:xwiki:commons:*:*:*:*:*:*:*:*","range":[{"introduced":"13.5"},{"fixed":"13.8"}],"source":"CPE_RANGE"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"947e8921ebd95462d5a7928f397dd1b64f77c7d5"}]}]}}],"versions":["xwiki-commons-13.4.3","xwiki-commons-13.4.2","xwiki-commons-13.4.1","xwiki-commons-12.10.8","xwiki-commons-13.4","xwiki-commons-13.4-rc-1","xwiki-commons-12.10.7","xwiki-commons-12.10.6","xwiki-commons-12.10.5","xwiki-commons-12.10.4","xwiki-commons-12.10.3","xwiki-commons-12.10.2","xwiki-commons-12.10.1","xwiki-commons-12.10","xwiki-commons-8.3-milestone-2","xwiki-commons-8.3-milestone-1","xwiki-commons-8.2-milestone-2","xwiki-commons-8.2-milestone-1","xwiki-commons-8.1-milestone-2","xwiki-commons-8.1-milestone-1","xwiki-commons-8.0-milestone-2","xwiki-commons-8.0-milestone-1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-24898.json","vanir_signatures":[{"target":{"file":"xwiki-commons-core/xwiki-commons-xml/src/test/java/org/xwiki/xml/XMLUtilsTest.java"},"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["119585886253961776697996441891479172520","254760765399742009580318938996946746318","11257051106917739406734829751315033819","239637914971388004551203388563478137344","124390104624995444819103458009169248049","78550298447799082468631974302292586158","46491954011824424537381273932753419517"]},"id":"CVE-2022-24898-504bc938","signature_type":"Line","signature_version":"v1","source":"https://github.com/xwiki/xwiki-commons/commit/947e8921ebd95462d5a7928f397dd1b64f77c7d5"},{"id":"CVE-2022-24898-7391707e","signature_type":"Line","signature_version":"v1","source":"https://github.com/xwiki/xwiki-commons/commit/947e8921ebd95462d5a7928f397dd1b64f77c7d5","target":{"file":"xwiki-commons-core/xwiki-commons-xml/src/main/java/org/xwiki/xml/XMLUtils.java"},"deprecated":false,"digest":{"line_hashes":["276855144949236663883717883600473562444","126518838596576775809712711016703063988","206940447078374160110026740825494143080","187668521919857620323973747087959535132","285129615161837697855782705661677929887","79452261262923670115156577277244589067","131125088278103029972510522595779622246"],"threshold":0.9}},{"digest":{"function_hash":"223255192002254816762480955711835222745","length":466},"id":"CVE-2022-24898-74734c7c","signature_type":"Function","signature_version":"v1","source":"https://github.com/xwiki/xwiki-commons/commit/947e8921ebd95462d5a7928f397dd1b64f77c7d5","target":{"file":"xwiki-commons-core/xwiki-commons-xml/src/main/java/org/xwiki/xml/XMLUtils.java","function":"parse"},"deprecated":false}],"vanir_signatures_modified":"2026-10-28T10:25:47Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N"}]}