CVE-2024-31996

Public Exploit
XWiki Commons missing escaping of `{` in Velocity escapetool allows remote code execution

Description

XWiki Platform is a generic wiki platform. Starting in version 3.0.1 and prior to versions 4.10.19, 15.5.4, and 15.10-rc-1, the HTML escaping of escaping tool that is used in XWiki doesn't escape `{`, which, when used in certain places, allows XWiki syntax injection and thereby remote code execution. The vulnerability has been fixed in XWiki 14.10.19, 15.5.5, and 15.9 RC1. Apart from upgrading, there is no generic workaround. However, replacing `$escapetool.html` by `$escapetool.xml` in XWiki documents fixes the vulnerability. In a standard XWiki installation, the maintainers are only aware of the document `Panels.PanelLayoutUpdate` that exposes this vulnerability, patching this document is thus a workaround. Any extension could expose this vulnerability and might thus require patching, too.

Categories

10.0
CVSS
Severity: Critical
CVSS 3.1 •
EPSS 6.38% Top 10%
Vendor Advisory github.com Vendor Advisory xwiki.org Vendor Advisory xwiki.org
Affected: xwiki xwiki-commons
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2024-31996?
CVE-2024-31996 has been scored as a critical severity vulnerability.
How to fix CVE-2024-31996?
To fix CVE-2024-31996, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2024-31996 being actively exploited in the wild?
It is possible that CVE-2024-31996 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~6% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2024-31996?
CVE-2024-31996 affects xwiki xwiki-commons.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.