10.0critical
XWiki allows remote code execution from account through macro descriptions and XWiki.XWikiSyntaxMacrosList
- Severity
- 10.0critical CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.60% (higher than 76% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-2r87-74cx-2p7c
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| xwiki xwiki-platform | >= 9.7-rc-1, < 15.10.11, >= 16.0.0-rc-1, < 16.4.1, >= 16.5.0-rc-1, < 16.5.0 | CVE List |
| org.xwiki.platform:xwiki-platform-help-ui (Maven) | from 9.7-rc-1 before 15.10.11, from 16.0.0-rc-1 before 16.4.1, from 16.5.0-rc-1 before 16.5.0 | GitHub Advisory Database |
| xwiki xwiki | from 9.7 before 15.10.11, from 16.0.0 before 16.4.1, 16.5.0 | NVD |
All scores
| GitHub_M | 10.0critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| GitHub | 9.9critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
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
NVD (es)
XWiki Platform es una plataforma wiki genérica. A partir de la versión 9.7-rc-1 y antes de las versiones 15.10.11, 16.4.1 y 16.5.0, cualquier usuario con una cuenta puede ejecutar código remoto arbitrario añadiendo instancias de `XWiki.WikiMacroClass` a cualquier página. Esto compromete la confidencialidad, integridad y disponibilidad de toda la instalación de XWiki. Esta vulnerabilidad ha sido corregida en XWiki 15.10.11, 16.4.1 y 16.5.0. Es posible aplicar manualmente el parche a la página `XWiki.XWikiSyntaxMacrosList` como workaround.
References
| https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-2r87-74cx-2p7c | vendor-advisory, web | |
| https://github.com/xwiki/xwiki-platform/commit/40e1afe001d61eafdf13f3621b4b597a0e58a3e3 | patch, web | |
| https://jira.xwiki.org/browse/XWIKI-22030 | exploit, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2024-55877 | advisory | |
| https://github.com/xwiki/xwiki-platform | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-55877 changed 2024-12-13 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-2r87-74cx-2p7c changed 2024-12-12 | CC-BY-4.0 |
| NVD | CVE-2024-55877 changed 2026-06-17 | Public domain |