Patchfirst
CVE-2024-31997 Critical · 10.0 EPSS 73.9%

XWiki Platform remote code execution from account through UIExtension parameters

xwiki · xwiki-platform

Summary

XWiki Platform's UI extension parameters are always interpreted as Velocity code and executed with programming rights, so any user with edit rights on a document, such as their own profile, can create UI extensions that run arbitrary code. An attacker with a low-privileged account and edit access to any document can achieve remote code execution over the network, without user interaction, affecting the confidentiality, integrity and availability of the entire XWiki installation.

Official description · CVE.org

XWiki Platform is a generic wiki platform. Prior to versions 4.10.19, 15.5.4, and 15.10-rc-1, parameters of UI extensions are always interpreted as Velocity code and executed with programming rights. Any user with edit right on any document like the user's own profile can create UI extensions. This allows remote code execution and thereby impacts the confidentiality, integrity and availability of the whole XWiki installation. This vulnerability has been patched in XWiki 14.10.19, 15.5.4 and 15.9-RC1. No known workarounds are available.

Breakdown
26.9 / 100
Exploited
Not confirmed
Reports
0
Tactics
0/15

Disclosed on 10 Apr 2024. No public exploit code or confirmed exploitation is recorded.

techniques

No techniques linked

No ATT&CK techniques are linked to this CVE yet. MITRE CTID has not mapped it, and no report passage in the corpus ties it to a technique.

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: org.xwiki.platform:xwiki-platform-uiextension-api.

Mavenorg.xwiki.platform:xwiki-platform-uiextension-apiGHSA-c2gg-4gq4-jv5j

Upgrade to 15.5.4

Also affected, despite being newer: 15.6-rc-1 up to 15.9-rc-1.

Set the version to 15.5.4 or later in your pom.xml or build.gradle.

The first fix for CVE-2024-31997. No other CVE tracked by Patchfirst affects this package.

Affected versions, by release line

If you runUpgrade to
15.6-rc-1 up to 15.9-rc-115.9-rc-1
15.0-rc-1 up to 15.5.415.5.4
All versions before 14.10.1914.10.19

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

References

5 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close