CVE-2023-37914
JSON

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 packageVersionsReported 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-1CVE 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-1GitHub Advisory Database
xwiki xwikifrom 2.5 before 14.4.8, from 14.5.0 before 14.10.6, from 15.0 before 15.2NVD

All scores

GitHub_M9.9critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L
GitHub9.9critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L
NVD8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-94CWE-95

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

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:

  1. Open the invitation application (Invitation.WebHome).
  2. Set the subject to {{cache}}{{groovy}}new File("/tmp/exploit.txt").withWriter { out -> out.println("Attacked from invitation!"); }{{/groovy}}{{/cache}}
  3. 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
For more information

If you have any questions or comments about this advisory:

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

Sources

SourceRecordLicence
CVE ListCVE-2023-37914 changed 2024-10-08CVE Terms of Use
GitHub Advisory DatabaseGHSA-7954-6m9q-gpvf changed 2026-09-10CC-BY-4.0
NVDCVE-2023-37914 changed 2026-06-17Public domain