CVE-2023-50732 Velocity execution without script right through tree macro
Attackers can execute arbitrary Velocity scripts without script rights via the document tree, leading to code execution.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-50732?
CVE-2023-50732 is a high-severity code injection vulnerability in Xwiki Xwiki, published on 21 Dec 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-863
Which versions are affected by CVE-2023-50732?
4 open source packages ship an affected version, including org.xwiki.platform:xwiki-platform-index-tree-macro. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.xwiki.platform:xwiki-platform-index-tree-macro Maven | From 15.0-rc-1 | 15.2-rc-1 |
org.xwiki.platform:xwiki-platform-index-tree-macro Maven | From 15.0-rc-1 | 15.2-rc-1 |
org.xwiki.platform:xwiki-platform-index-tree-macro Maven | From 8.3-rc-1 | 14.10.7 |
org.xwiki.platform:xwiki-platform-index-tree-macro Maven | From 8.3-rc-1 | 14.10.7 |
Products include Xwiki Xwiki.
How do I fix CVE-2023-50732?
Upgrade org.xwiki.platform:xwiki-platform-index-tree-macro to a fixed version for your release line: 15.2-rc-1 or 14.10.7.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2023-50732 being exploited?
There is no known exploitation of CVE-2023-50732 in the wild and no public exploit code.
Other vulnerabilities in Xwiki Xwiki
- CVE-2025-24893 XWiki Platform Eval Injection
- CVE-2025-53836 XWiki Rendering is vulnerable to RCE attacks when processing nested macros
- CVE-2024-55662 XWiki allows remote code execution through the extension sheet
- CVE-2024-55877 XWiki allows remote code execution from account through macro descriptions and XWiki.XWikiSyntaxMacrosList
- CVE-2024-37901 XWiki Platform vulnerable to remote code execution from account via SearchSuggestConfigSheet
Sources
Also known as GHSA-p5f8-qf24-24cj.