CVE-2023-50732
JSON

8.3high

Velocity execution without script right through tree macro

Severity
8.3high CVSS:3.1 by GitHub_M
Exploit likelihood
0.49% (higher than 43% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-p5f8-qf24-24cj

Description

XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. It's possible to execute a Velocity script without script right through the document tree. This has been patched in XWiki 14.10.7 and 15.2RC1.

Affected

Product or packageVersionsReported by
xwiki xwiki-platform>= 8.3-rc-1, < 14.10.7, >= 15.0-rc-1, < 15.2-rc-1CVE List
org.xwiki.platform:xwiki-platform-index-tree-macro (Maven)from 8.3-rc-1 before 14.10.7, from 15.0-rc-1 before 15.2-rc-1GitHub Advisory Database
xwiki xwikifrom 8.3 before 14.10.7, from 15.0 before 15.2NVD

All scores

GitHub_M8.3high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
GitHub8.3high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
NVD6.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L

Classification

What each source says

CVE List

XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. It's possible to execute a Velocity script without script right through the document tree. This has been patched in XWiki 14.10.7 and 15.2RC1.

GitHub Advisory Database
Impact

It's possible to execute a Velocity script without script right through the document tree.

To reproduce:

  • As a user without script right, create a document, e.g., named Nasty Title
  • Set the document's title to $request.requestURI
  • Click "Save & View"
  • Reload the page in the browser

The navigation panel displays a document named with the current URL, showing that the Velocity code has been executed even though the user doesn't have script right.

Patches

This has been patched in XWiki 14.10.7 and 15.2RC1.

Workarounds

A possible workaround is to:

  • modify the page XWiki.DocumentTreeMacros
  • search for the code #set ($discard = $translatedDocument.setTitle($translatedDocument.title))
  • modify it into #set ($discard = $translatedDocument.setcomment(''))
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 de ejecución para aplicaciones creadas sobre ella. Es posible ejecutar un script de Velocity sin script directamente a través del árbol de documentos. Esto ha sido parcheado en XWiki 14.10.7 y 15.2RC1.

References

Sources

SourceRecordLicence
CVE ListCVE-2023-50732 changed 2024-08-02CVE Terms of Use
GitHub Advisory DatabaseGHSA-p5f8-qf24-24cj changed 2026-09-10CC-BY-4.0
NVDCVE-2023-50732 changed 2026-06-17Public domain