{"answers":{"affected":"6 open source packages ship an affected version, including org.xwiki.commons:xwiki-commons-xml. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-24898 exists.","fix":"Upgrade org.xwiki.commons:xwiki-commons-xml to a fixed version for your release line: 13.4.4, 13.8-rc-1 or 12.10.10.","what":"CVE-2022-24898 is a medium-severity vulnerability in xwiki-commons, published on 28 Apr 2022. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-24898 and fix it if it is affected.\n\nWhat it is: CVE-2022-24898 is a medium-severity vulnerability in xwiki-commons, published on 28 Apr 2022. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-24898 exists.\n\nAffected packages and fixed versions:\n- org.xwiki.commons:xwiki-commons-xml (Maven): affected from 13.0.0; fixed in 13.4.4\n- org.xwiki.commons:xwiki-commons-xml (Maven): affected from 13.0.0; fixed in 13.4.4\n- org.xwiki.commons:xwiki-commons-xml (Maven): affected from 13.5-rc-1; fixed in 13.8-rc-1\n- org.xwiki.commons:xwiki-commons-xml (Maven): affected from 13.5-rc-1; fixed in 13.8-rc-1\n- org.xwiki.commons:xwiki-commons-xml (Maven): affected from 2.7; fixed in 12.10.10\n- org.xwiki.commons:xwiki-commons-xml (Maven): affected from 2.7; fixed in 12.10.10\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-24898/ (Markdown: https://insights.sbomify.com/CVE-2022-24898/index.md)","id":"CVE-2022-24898","markdown":"https://insights.sbomify.com/CVE-2022-24898/index.md","name":"CVE-2022-24898","record":{"aliases":["GHSA-m2r5-4w96-qxg5"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"XWiki commons module","requires_auth":"high_privilege","summary":"Attackers can read arbitrary files on the server via XML External Entity injection in the XWiki commons XML script service.","user_interaction":"not_required","vuln_class":"xxe"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"commons","vendor":"xwiki"}],"cvss":{"score":4.9,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-611","name":"Improper Restriction of XML External Entity Reference"}],"description":"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.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Arbitrary file access through XML parsing in org.xwiki.commons:xwiki-commons-xml","id":"CVE-2022-24898","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"xxe","year":"2022"},"n_packages":6,"n_references":3,"next":{"headline":"Cross site scripting via canonical tag","id":"CVE-2022-24899"},"packages":[{"ecosystem":"Maven","fixed":["13.4.4"],"introduced":["13.0.0"],"last_affected":[],"package":"org.xwiki.commons:xwiki-commons-xml","purl":null,"source":"GHSA-m2r5-4w96-qxg5"},{"ecosystem":"Maven","fixed":["13.4.4"],"introduced":["13.0.0"],"last_affected":[],"package":"org.xwiki.commons:xwiki-commons-xml","purl":"pkg:maven/org.xwiki.commons/xwiki-commons-xml","source":"GHSA-m2r5-4w96-qxg5"},{"ecosystem":"Maven","fixed":["13.8-rc-1"],"introduced":["13.5-rc-1"],"last_affected":[],"package":"org.xwiki.commons:xwiki-commons-xml","purl":null,"source":"GHSA-m2r5-4w96-qxg5"},{"ecosystem":"Maven","fixed":["13.8-rc-1"],"introduced":["13.5-rc-1"],"last_affected":[],"package":"org.xwiki.commons:xwiki-commons-xml","purl":"pkg:maven/org.xwiki.commons/xwiki-commons-xml","source":"GHSA-m2r5-4w96-qxg5"},{"ecosystem":"Maven","fixed":["12.10.10"],"introduced":["2.7"],"last_affected":[],"package":"org.xwiki.commons:xwiki-commons-xml","purl":null,"source":"GHSA-m2r5-4w96-qxg5"},{"ecosystem":"Maven","fixed":["12.10.10"],"introduced":["2.7"],"last_affected":[],"package":"org.xwiki.commons:xwiki-commons-xml","purl":"pkg:maven/org.xwiki.commons/xwiki-commons-xml","source":"GHSA-m2r5-4w96-qxg5"}],"prev":{"headline":"Arbitrary filesystem write access from Velocity","id":"CVE-2022-24897"},"products":["xwiki-commons"],"published":"2022-04-28","related":[{"cvss_score":10,"headline":"XWiki Commons may allow privilege escalation to programming rights via user's first name","id":"CVE-2023-26055","kev_date_added":null,"published":"2023-03-02"},{"cvss_score":9.1,"headline":"HTML sanitizer allows form elements in restricted in org.xwiki.commons:xwiki-commons-xml","id":"CVE-2023-36471","kev_date_added":null,"published":"2023-06-29"},{"cvss_score":9.1,"headline":"Cross-site Scripting in org.xwiki.commons:xwiki-commons-xml","id":"CVE-2023-29528","kev_date_added":null,"published":"2023-04-20"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-22","vendors":["xwiki"]},"summary":"Attackers can read arbitrary files on the server via XML External Entity injection in the XWiki commons XML script service.","url":"https://insights.sbomify.com/CVE-2022-24898/"}