Read the docs
TI-2024-21095 Aliases CVE-2024-31996GHSA-hf43-47q4-fhq5

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

Priority HIGH 82CWE-95Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-95.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.02104 81st percentileScored 2026-11-07
Public exploit Yes 2 exploit referencesTagged by NVD
Fix Fixed xwiki-commons (xwiki): 14.10.19, 15.5.4, 15.9-rc-1org.xwiki.commons:xwiki-commons-velocity (Maven): 14.10.19, 15.5.4, 15.9-rc-1

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
XWikixwiki-commons3.0.1 to before 14.10.19; 15.0-rc-1 to before 15.5.4; 15.6-rc-1 to before 15.9-rc-114.10.19, 15.5.4, 15.9-rc-1Patch availableCNA
—org.xwiki.commons:xwiki-commons-velocity (Maven)3.0.1 to before 14.10.1914.10.19Patch availableGHSA-hf43-47q4-fhq5
—org.xwiki.commons:xwiki-commons-velocity (Maven)15.0-rc-1 to before 15.5.415.5.4Patch availableGHSA-hf43-47q4-fhq5
—org.xwiki.commons:xwiki-commons-velocity (Maven)15.6-rc-1 to before 15.9-rc-115.9-rc-1Patch availableGHSA-hf43-47q4-fhq5
  • xwiki-commons VendorXWiki Affected 3.0.1 to before 14.10.19; 15.0-rc-1 to before 15.5.4; 15.6-rc-1 to before 15.9-rc-1 Fixed in 14.10.19, 15.5.4, 15.9-rc-1 Patch available CNA
  • org.xwiki.commons:xwiki-commons-velocity (Maven) Vendor— Affected 3.0.1 to before 14.10.19 Fixed in 14.10.19 Patch available GHSA-hf43-47q4-fhq5
  • org.xwiki.commons:xwiki-commons-velocity (Maven) Vendor— Affected 15.0-rc-1 to before 15.5.4 Fixed in 15.5.4 Patch available GHSA-hf43-47q4-fhq5
  • org.xwiki.commons:xwiki-commons-velocity (Maven) Vendor— Affected 15.6-rc-1 to before 15.9-rc-1 Fixed in 15.9-rc-1 Patch available GHSA-hf43-47q4-fhq5

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*3.0.1 to before 14.10.19; 15.0 to before 15.5.4; 15.6 to before 15.9VulnerableXWiki
  • cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:* Versions 3.0.1 to before 14.10.19; 15.0 to before 15.5.4; 15.6 to before 15.9 Vulnerable ·XWiki

Remediation

  • Fix · CNA xwiki-commons (xwiki) Fixed in 14.10.19, 15.5.4, 15.9-rc-1
  • Fix · GHSA-hf43-47q4-fhq5 org.xwiki.commons:xwiki-commons-velocity (Maven) Fixed in 14.10.19 Advisory →
  • Fix · GHSA-hf43-47q4-fhq5 org.xwiki.commons:xwiki-commons-velocity (Maven) Fixed in 15.5.4 Advisory →
  • Fix · GHSA-hf43-47q4-fhq5 org.xwiki.commons:xwiki-commons-velocity (Maven) Fixed in 15.9-rc-1 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-31996
  2. 2026-10-03 Alias added: GHSA-hf43-47q4-fhq5

References

  • TI-2025-18595 Remote code execution as guest via SolrSearchMacros request in xwiki KEVCVSS 3.1CRITICAL 9.8
  • TI-2023-25214 Remote code execution through the section parameter in Administration as guest in XWiki Platform CVSS 3.1CRITICAL 10.0
  • TI-2025-23500 XWiki Platform vulnerable to SQL injection through getdeleteddocuments.vm template sort parameter CVSS 4.0CRITICAL 9.3
  • TI-2025-23979 org.xwiki.platform:xwiki-platform-rest-server allows SQL injection in query endpoint of REST API CVSS 4.0CRITICAL 9.3
  • TI-2024-20829 XWiki Platform: Remote code execution from account via SearchSuggestSourceSheet CVSS 3.1CRITICAL 10.0
  • TI-2024-14375 XWiki Remote Code Execution vulnerability via user registration CVSS 3.1CRITICAL 10.0
See all 247 →

Sources