CVE-2023-50732: Velocity execution without script right through tree macro

Published Dec 19, 2023
·
Updated

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

https://jira.xwiki.org/browse/XWIKI-20625 https://github.com/xwiki/xwiki-platform/commit/41d7dca2d30084966ca6a7ee537f39ee8354a7e3

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

Other sources

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 Software

4 affected componentsFixes available
maven/org.xwiki.platform:xwiki-platform-index-tree-macro>=15.0-rc-1<15.2-rc-1
15.2-rc-1
maven/org.xwiki.platform:xwiki-platform-index-tree-macro>=8.3-rc-1<14.10.7
14.10.7
XWiki xwiki>=8.3<14.10.7
XWiki xwiki>=15.0<15.2

Event History

Dec 19, 2023
Advisory Published
09:39 PM
Dec 21, 2023
CVE Published
via MITRE·07:42 PM
Data Sourced
via MITRE·07:42 PM
DescriptionSeverityWeakness
Data Sourced
08:15 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2023-50732?

CVE-2023-50732 has a moderate severity rating due to the possibility of executing scripts without proper permissions.

2

How do I fix CVE-2023-50732?

To fix CVE-2023-50732, upgrade to XWiki versions 15.2-rc-1 or 14.10.7 or later.

3

What software is affected by CVE-2023-50732?

CVE-2023-50732 affects XWiki versions between 8.3 and 15.2, including specific versions of the xwiki-platform-index-tree-macro package.

4

Can an attacker exploit CVE-2023-50732 without permissions?

Yes, an attacker can exploit CVE-2023-50732 by creating a document and manipulating its title without requiring script permissions.

5

Is there a known workaround for CVE-2023-50732?

Currently, the primary resolution for CVE-2023-50732 is to apply the recommended software upgrades as there are no known effective workarounds.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203