9.9critical
Privilege escalation (PR)/RCE from account through Invitation subject/message
- Severity
- 9.9critical CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.86% (higher than 79% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-7954-6m9q-gpvf
Description
XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Any user who can view `Invitation.WebHome` can execute arbitrary script macros including Groovy and Python macros that allow remote code execution including unrestricted read and write access to all wiki contents. This vulnerability has been patched on XWiki 14.4.8, 15.2-rc-1, and 14.10.6. Users are advised to upgrade. Users unable to upgrade may manually apply the patch on `Invitation.InvitationCommon` and `Invitation.InvitationConfig`, but there are otherwise no known workarounds for this vulnerability.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| xwiki xwiki-platform | >= 2.5-m1, < 14.4.8, >= 14.5.0, < 14.10.6, >= 15.0, < 15.2-rc-1, from 2.5m1 before 14.4.8, from 14.5.0 before 14.10.6, from 15.0 before 15.2-tc-1 | CVE List |
| org.xwiki.platform:xwiki-platform-invitation-ui (Maven) | from 2.5-m-1 before 14.4.8, from 14.5 before 14.10.6, from 15.0-rc-1 before 15.2-rc-1 | GitHub Advisory Database |
| xwiki xwiki | from 2.5 before 14.4.8, from 14.5.0 before 14.10.6, from 15.0 before 15.2 | NVD |
All scores
| GitHub_M | 9.9critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L |
| GitHub | 9.9critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L |
| 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 offering runtime services for applications built on top of it. Any user who can view `Invitation.WebHome` can execute arbitrary script macros including Groovy and Python macros that allow remote code execution including unrestricted read and write access to all wiki contents. This vulnerability has been patched on XWiki 14.4.8, 15.2-rc-1, and 14.10.6. Users are advised to upgrade. Users unable to upgrade may manually apply the patch on `Invitation.InvitationCommon` and `Invitation.InvitationConfig`, but there are otherwise no known workarounds for this vulnerability.
GitHub Advisory Database
Impact
Any user who can view Invitation.WebHome can execute arbitrary script macros including Groovy and Python macros that allow remote code execution including unrestricted read and write access to all wiki contents. This can be reproduced with the following steps:
- Open the invitation application (Invitation.WebHome).
- Set the subject to
{{cache}}{{groovy}}new File("/tmp/exploit.txt").withWriter { out -> out.println("Attacked from invitation!"); }{{/groovy}}{{/cache}} - Click "Preview"
Patches
The vulnerability has been patched on XWiki 14.4.8, 15.2-rc-1, and 14.10.6.
Workarounds
The vulnerability can be patched manually by applying the patch on Invitation.InvitationCommon and Invitation.InvitationConfig.
References
- https://jira.xwiki.org/browse/XWIKI-20421
- https://github.com/xwiki/xwiki-platform/commit/ff1d8a1790c6ee534c6a4478360a06efeb2d3591
For more information
If you have any questions or comments about this advisory:
- Open an issue in Jira XWiki.org
- Email us at Security Mailing List
NVD (es)
XWiki Platform es una plataforma wiki genérica que ofrece servicios en tiempo de ejecución para aplicaciones construidas sobre ella. Cualquier usuario que pueda ver `Invitation.WebHome` puede ejecutar macros de script arbitrarias incluyendo macros Groovy y Python que permiten la ejecución remota de código incluyendo acceso de lectura y escritura sin restricciones a todos los contenidos del wiki. Esta vulnerabilidad ha sido parcheada en XWiki 14.4.8, 15.2-rc-1, y 14.10.6. Se recomienda a los usuarios que actualicen. Los usuarios que no puedan actualizar pueden aplicar manualmente el parche en `Invitation.InvitationCommon` e `Invitation.InvitationConfig`, pero por lo demás no hay soluciones conocidas para esta vulnerabilidad.
References
| https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-7954-6m9q-gpvf | exploit, third-party-advisory, web | |
| https://github.com/xwiki/xwiki-platform/commit/ff1d8a1790c6ee534c6a4478360a06efeb2d3591 | patch, web | |
| https://jira.xwiki.org/browse/XWIKI-20421 | exploit, issue-tracking, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2023-37914 | advisory | |
| https://github.com/xwiki/xwiki-platform | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-37914 changed 2024-10-08 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-7954-6m9q-gpvf changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2023-37914 changed 2026-06-17 | Public domain |