CVE-2023-46244: Privilege escalation in Xwiki platform

Published Nov 7, 2023
·
Updated

Impact

In XWiki Platform, it's possible for a user to write a script in which any velocity content is executed with the right of any other document content author.

To reproduce:

As a user with script but not programming right, create a document with the following content:

{{velocity}} #set($main = $xwiki.getDocument('AppWithinMinutes.DynamicMessageTool')) $main.setTitle('$doc.getDocument().getContentAuthor()') $main.getPlainTitle() {{/velocity}}

Since this API require programming right and the user does not have it, the expected result is $doc.document.authors.contentAuthor (not executed script), unfortunately with the security vulnerability we get XWiki.superadmin which shows that the title was executed with the right of the unmodified document.

Patches

This has been patched in XWiki 14.10.7 and 15.2-RC-1.

Workarounds

There are no known workarounds for it.

References

https://jira.xwiki.org/browse/XWIKI-20624 https://github.com/xwiki/xwiki-platform/commit/11a9170dfe63e59f4066db67f84dbfce4ed619c6 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. In affected versions it's possible for a user to write a script in which any velocity content is executed with the right of any other document content author. Since this API require programming right and the user does not have it, the expected result is $doc.document.authors.contentAuthor (not executed script), unfortunately with the security vulnerability it is possible for the attacker to get XWiki.superadmin which shows that the title was executed with the right of the unmodified document. This has been patched in XWiki versions 14.10.7 and 15.2RC1. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Affected Software

5 affected componentsFixes available
maven/org.xwiki.platform:xwiki-platform-display-api>=15.0<15.2-rc-1
15.2-rc-1
maven/org.xwiki.platform:xwiki-platform-display-api>=3.2-milestone-3<14.10.7
14.10.7
XWiki xwiki>=3.3<14.10.7
XWiki xwiki>=15.0<15.2
XWiki xwiki=3.2-milestone3

Event History

Nov 7, 2023
CVE Published
via MITRE·07:04 PM
Data Sourced
via MITRE·07:04 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Advisory Published
11:03 PM

Frequently Asked Questions

1

What is the impact of CVE-2023-46244?

An attacker can execute velocity content with the privileges of any other document content author.

2

How can I reproduce CVE-2023-46244?

Create a document with a velocity script as a user with script but not programming rights.

3

What is the severity of CVE-2023-46244?

The severity of CVE-2023-46244 is critical with a CVSS score of 9.1.

4

Which versions of XWiki Platform are affected by CVE-2023-46244?

Versions 15.0 to 15.2-rc-1 and versions 3.2-milestone-3 to 14.10.7 of XWiki Platform are affected.

5

How can I fix CVE-2023-46244?

Upgrade to version 15.2-rc-1 or apply the remedy for versions 15.2-rc-1 and version 14.10.7 as specified in the references.

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