CVE-2024-31996 — XWiki Commons missing escaping of `{` in...
XWiki Commons missing escaping of `{` in Velocity escapetool allows remote code execution
Summary
Advisory Timeline
- First published April 10, 2024 (915 days ago).
- Last revised September 10, 2026 — 882 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 14.10.19 for org.xwiki.commons:xwiki-commons-velocity -->
<!-- Update pom.xml dependency version to 15.5.4 for org.xwiki.commons:xwiki-commons-velocity -->
<!-- Update pom.xml dependency version to 15.9-rc-1 for org.xwiki.commons:xwiki-commons-velocity -->
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (3)
Affects 1 ecosystem: maven (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| org.xwiki.commons:xwiki-commons-velocity | maven | 10.0, 10.1, 10.1-rc-1, 10.10 (+416 more) | 14.10.19 |
| org.xwiki.commons:xwiki-commons-velocity | maven | 15.0, 15.0-rc-1, 15.1, 15.1-rc-1 (+11 more) | 15.5.4 |
| org.xwiki.commons:xwiki-commons-velocity | maven | 15.6, 15.6-rc-1, 15.7, 15.7-rc-1 (+2 more) | 15.9-rc-1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-94Code InjectionMITRE
- CWE-95
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 10.0 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
References
- https://github.com/xwiki/xwiki-commons/security/advisories/GHSA-hf43-47q4-fhq5WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-31996ADVISORY
- https://github.com/xwiki/xwiki-commons/commit/b0805160ec7b01ee12417e79cb384e60ae4817aaWEB
- https://github.com/xwiki/xwiki-commons/commit/b94142e2a66ec32e89eacab67c3da8d91f5ef93aWEB
- https://github.com/xwiki/xwiki-commons/commit/ed7ff515a2436a1c6dcbd0c6ca0c41e434d58915WEB
- https://github.com/xwiki/xwiki-commonsPACKAGE
- https://jira.xwiki.org/browse/XCOMMONS-2828WEB
- https://jira.xwiki.org/browse/XWIKI-21438WEB
Frequently Asked Questions
- What is CVE-2024-31996?
- XWiki Commons missing escaping of `{` in Velocity escapetool allows remote code execution This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 10.0/10).
- How do I check if my project is affected by CVE-2024-31996?
- CVE-2024-31996 affects org.xwiki.commons:xwiki-commons-velocity. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-31996 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation is straightforward and causes maximum impact. Patch immediately.
Also Known As
Related CVEs
- CVE-2026-107726CRITICAL
Hazelcast allows arbitrary member memory access by low-privileged client
- CVE-2023-26055CRITICAL
XWiki Platform may allow privilege escalation to programming rights via user's first name
- CVE-2026-107282CRITICAL
AsyncHttpClient: Replay to a different host sends the original host request and credentials to the new host
- CVE-2026-23734CRITICAL
XWiki Platform has path traversal via resources parameter in ssx and jsx endpoints when using leading slash
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies