Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.xwiki.platform/xwiki-platform-help-ui
  4. ›
  5. CVE-2024-55877

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

December 12, 2024

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.

References

  • github.com/advisories/GHSA-2r87-74cx-2p7c
  • github.com/xwiki/xwiki-platform
  • github.com/xwiki/xwiki-platform/commit/40e1afe001d61eafdf13f3621b4b597a0e58a3e3
  • github.com/xwiki/xwiki-platform/security/advisories/GHSA-2r87-74cx-2p7c
  • jira.xwiki.org/browse/XWIKI-22030
  • nvd.nist.gov/vuln/detail/CVE-2024-55877

Code Behaviors & Features

Detect and mitigate CVE-2024-55877 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 9.7-rc-1 before 15.10.11, all versions starting from 16.0.0-rc-1 before 16.4.1, all versions starting from 16.5.0-rc-1 before 16.5.0

Fixed versions

  • 15.10.11
  • 16.4.1
  • 16.5.0

Solution

Upgrade to versions 15.10.11, 16.4.1, 16.5.0 or above.

Impact 9.9 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-96: Improper Neutralization of Directives in Statically Saved Code ('Static Code Injection')

Source file

maven/org.xwiki.platform/xwiki-platform-help-ui/CVE-2024-55877.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:15 +0000.