10.0critical
XWiki Rendering's footnote macro vulnerable to privilege escalation via the footnote macro
- Severity
- 10.0critical CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.45% (higher than 74% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-35j5-m29r-xfq5
Description
XWiki Rendering is a generic Rendering system that converts textual input in a given syntax into another syntax. Prior to version 14.10.6 of `org.xwiki.platform:xwiki-core-rendering-macro-footnotes` and `org.xwiki.platform:xwiki-rendering-macro-footnotes` and prior to version 15.1-rc-1 of `org.xwiki.platform:xwiki-rendering-macro-footnotes`, the footnote macro executed its content in a potentially different context than the one in which it was defined. In particular in combination with the include macro, this allows privilege escalation from a simple user account in XWiki to programming rights and thus remote code execution, impacting the confidentiality, integrity and availability of the whole XWiki installation. This vulnerability has been patched in XWiki 14.10.6 and 15.1-rc-1. There is no workaround apart from upgrading to a fixed version of the footnote macro.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| xwiki xwiki-rendering | < 14.10.6, >= 15.0-rc-1, < 15.1-rc-1, before 14.10.6, 15.0 | CVE List, NVD |
| org.xwiki.rendering:xwiki-rendering-macro-footnotes (Maven) | before 14.10.6, from 15.0-rc-1 before 15.1-rc-1 | GitHub Advisory Database |
| org.xwiki.platform:xwiki-core-rendering-macro-footnotes (Maven) | before 14.10.6 | GitHub Advisory Database |
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 | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/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
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
What each source says
CVE List
XWiki Rendering is a generic Rendering system that converts textual input in a given syntax into another syntax. Prior to version 14.10.6 of `org.xwiki.platform:xwiki-core-rendering-macro-footnotes` and `org.xwiki.platform:xwiki-rendering-macro-footnotes` and prior to version 15.1-rc-1 of `org.xwiki.platform:xwiki-rendering-macro-footnotes`, the footnote macro executed its content in a potentially different context than the one in which it was defined. In particular in combination with the include macro, this allows privilege escalation from a simple user account in XWiki to programming rights and thus remote code execution, impacting the confidentiality, integrity and availability of the whole XWiki installation. This vulnerability has been patched in XWiki 14.10.6 and 15.1-rc-1. There is no workaround apart from upgrading to a fixed version of the footnote macro.
GitHub Advisory Database
Impact
The footnote macro executed its content in a potentially different context than the one in which it was defined. In particular in combination with the include macro, this allows privilege escalation from a simple user account in XWiki to programming rights and thus remote code execution, impacting the confidentiality, integrity and availability of the whole XWiki installation.
To reproduce, perform the following steps:
- Edit your user profile with the object editor and add an object of type DocumentSheetBinding with value XWiki.ClassSheet
- Edit your user profile with the wiki editor and add the syntax
{{footnote}}{{groovy}}println("Hello " + "from groovy!"){{/groovy}}{{/footnote}}
When the text "Hello from groovy!" is displayed at the bottom of the document, the installation is vulnerable. Instead, an error should be displayed.
Patches
This vulnerability has been patched in XWiki 14.10.6 and 15.1-rc-1.
Workarounds
There is no workaround apart from upgrading to a fixed version of the footnote macro.
References
NVD (es)
XWiki Rendering es un sistema de renderizado genérico que convierte la entrada de texto en una sintaxis determinada en otra sintaxis. Antes de la versión 14.10.6 de `org.xwiki.platform:xwiki-core-rendering-macro-footnotes` y `org.xwiki.platform:xwiki-rendering-macro-footnotes` y antes de la versión 15.1-rc-1 de `org.xwiki.platform:xwiki-rendering-macro-footnotes`, la macro de nota al pie ejecutó su contenido en un contexto potencialmente diferente a aquel en el que se definió. En particular, en combinación con la macro de inclusión, esto permite escalar privilegios desde una simple cuenta de usuario en XWiki hasta derechos de programación y, por lo tanto, ejecución remota de código, lo que afecta la confidencialidad, integridad y disponibilidad de toda la instalación de XWiki. Esta vulnerabilidad ha sido parcheada en XWiki 14.10.6 y 15.1-rc-1. No existe otro workaround aparte de actualizar a una versión fija de la macro de notas al pie.
References
| https://github.com/xwiki/xwiki-rendering/security/advisories/GHSA-35j5-m29r-xfq5 | patch, vendor-advisory, web | |
| https://github.com/xwiki/xwiki-rendering/commit/5f558b8fac8b716d19999225f38cb8ed0814116e | patch, web | |
| https://jira.xwiki.org/browse/XRENDERING-688 | exploit, issue-tracking, patch, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2023-37912 | advisory | |
| https://github.com/xwiki/xwiki-rendering | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-37912 changed 2024-09-12 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-35j5-m29r-xfq5 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2023-37912 changed 2026-06-17 | Public domain |