CVE-2024-31996
April 10, 2024
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.
Affected Packages
org.xwiki.commons:xwiki-commons-velocity (JAVA):
Affected version(s) >=3.0.1 <14.10.19Fix Suggestion:
Update to version 14.10.19org.xwiki.commons:xwiki-commons-velocity (JAVA):
Affected version(s) Fix Suggestion:
Update to version 15.5.4org.xwiki.commons:xwiki-commons-velocity (JAVA):
Affected version(s) Fix Suggestion:
Update to version 15.9-rc-1Related Resources (8)
Do you need more information?
Contact UsCVSS v4
Base Score:
10
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
HIGH
Subsequent System Integrity
HIGH
Subsequent System Availability
HIGH
CVSS v3
Base Score:
10
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
CHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
EPSS
Base Score:
18.38