Critical

XWiki allows remote code execution from account through macro descriptions and XWiki.XWikiSyntaxMacrosList

  • Disclosed: 12.12.2024
  • Updated: 11.10.2026 12:21

Impact

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.

To reproduce on a instance, as a connected user without script nor programming rights, go to your user profile and add an object of type XWiki.WikiMacroClass. Set "Macro Id", "Macro Name" and "Macro Code" to any value, "Macro Visibility" to Current User and "Macro Description" to {{async}}{{groovy}}println("Hello from User macro!"){{/groovy}}{{/async}}. Save the page, then go to <host>/xwiki/bin/view/XWiki/XWikiSyntaxMacrosList. If the description of your new macro reads "Hello from User macro!", then your instance is vulnerable.

Patches

This vulnerability has been fixed in XWiki 15.10.11, 16.4.1 and 16.5.0.

Workarounds

It is possible to manually apply this patch to the page XWiki.XWikiSyntaxMacrosList.

References

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.xwiki.platform:xwiki-platform-help-ui >= 9.7-rc-1, < 15.10.11, >= 16.0.0-rc-1, < 16.4.1, >= 16.5.0-rc-1, < 16.5.0 15.10.11, 16.4.1, 16.5.0

References

CVSS score 9.9/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Weakness (CWE)
CWE-94, CWE-96
Platform
Java / Kotlin (Maven)
Package
org.xwiki.platform:xwiki-platform-help-ui
Disclosed
12.12.2024
Updated
11.10.2026 12:21

Sources and licenses

OSV / GitHub Advisory Database - GHSA-2r87-74cx-2p7c - CC BY 4.0

Vulnerability history: org.xwiki.platform:xwiki-platform-help-ui

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
2
First → latest
06.2023 12.2024
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Critical 1
  • High 1

Disclosures per year

  1. 2023: 1
  2. 2024: 1
  3. 2025: 0
  4. 2026: 0
  1. XWiki allows remote code execution from account through macro descriptions and XWiki.XWikiSyntaxMacrosList this entry
    Critical · 9.9 CVE-2024-55877 >= 9.7-rc-1, < 15.10.11, >= 16.0.0-rc-1, < 16.4.1, >= 16.5.0-rc-1, < 16.5.0 15.10.11, 16.4.1, 16.5.0
  2. High · 8.8 CVE-2023-35166 >= 8.1-milestone-1, < 14.10.5, >= 15.0-rc-1, < 15.1-rc-1 14.10.5, 15.1-rc-1

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.