XWiki Platform Vulnerability Affects Remote Code Execution
CVE-2024-31996
Key facts
CVE-2024-31996 is a critical severity (CVSS 9.8) vulnerability in xwiki-commons. No exploitation in the wild or public proof-of-concept has been recorded so far. Its EPSS score is 4.5%, the estimated probability of exploitation in the next 30 days. Fixed in xwiki-commons 3.0.1, 14.10.19, 15.0-rc-1, 15.5.4, 15.6-rc-1, 15.9-rc-1.
How risky is it?
- Yes: Works over the network, no login needed
- No: No public exploit code yet
- No: No attacks seen yet
- No: Not on CISA's exploited list
Our verdict
Patch this week
Exploitation is likely. Prioritise the fix.
What to do
1Update to a fixed version
Upgrade to one of these versions or later:
2Can't patch yet? Reduce exposure
It can be reached over the network, so limit who can reach xwiki-commons. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.
3Why it's rated "Patch this week"
- It can be exploited remotely without credentials.
- Its CVSS severity is critical (9.8).
What is CVE-2024-31996?
The XWiki Platform contains a vulnerability in its HTML escaping tool, which fails to appropriately escape the { character. This oversight potentially allows for XWiki syntax injection, resulting in remote code execution by an attacker. The issue exists in XWiki versions 3.0.1 and prior to 4.10.19, 15.5.4, and 15.10-rc-1. To remediate the vulnerability, users are advised to upgrade to the patched versions. Alternatively, a temporary fix involves replacing $escapetool.html with $escapetool.xml within specific XWiki documents. Notably, the panel document Panels.PanelLayoutUpdate has been identified as one that exposes this vulnerability, but other extensions may also be susceptible and could require attention.
Affected Version(s)
xwiki-commons >= 3.0.1, < 14.10.19 < 3.0.1, 14.10.19
xwiki-commons >= 15.0-rc-1, < 15.5.4 < 15.0-rc-1, 15.5.4
xwiki-commons >= 15.6-rc-1, < 15.9-rc-1 < 15.6-rc-1, 15.9-rc-1