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

High 8.3 Published Updated

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.

PackageAffectedFixed in
org.xwiki.platform:xwiki-platform-index-tree-macro MavenFrom 15.0-rc-115.2-rc-1
org.xwiki.platform:xwiki-platform-index-tree-macro MavenFrom 15.0-rc-115.2-rc-1
org.xwiki.platform:xwiki-platform-index-tree-macro MavenFrom 8.3-rc-114.10.7
org.xwiki.platform:xwiki-platform-index-tree-macro MavenFrom 8.3-rc-114.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.

All Xwiki Xwiki vulnerabilities

Sources

Also known as GHSA-p5f8-qf24-24cj.

Is CVE-2023-50732 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free