CVE-2024-31996
published critical CVSS 3.1 · 10.0XWiki Commons missing escaping of `{` in Velocity escapetool allows remote code execution
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| xwiki | — | xwiki-commons>= 3.0.1, < 14.10.19 · >= 15.0-rc-1, < 15.5.4 · >= 15.6-rc-1, < 15.9-rc-1 | Affected | Not stated | GitHub_M |
| xwiki | — | commons3.0.1 to < 14.10.19 · 15.0-rc-1 to < 15.5.4 · 15.6-rc-1 to < 15.9-rc-1 · Other versions: unknown | Affected | Not stated | CISA-ADP |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 10.0 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| xwiki | xwiki-commons | >= 3.0.1, < 14.10.19 (affected)>= 15.0-rc-1, < 15.5.4 (affected)>= 15.6-rc-1, < 15.9-rc-1 (affected) | GitHub_M · cna |
| xwiki | commons | 3.0.1 to < 14.10.19 (affected · custom)15.0-rc-1 to < 15.5.4 (affected · custom)15.6-rc-1 to < 15.9-rc-1 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-95 CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')
References
6- https://github.com/xwiki/xwiki-commons/commit/b0805160ec7b01ee12417e79cb384e60ae4817aa
- https://github.com/xwiki/xwiki-commons/commit/b94142e2a66ec32e89eacab67c3da8d91f5ef93a
- https://github.com/xwiki/xwiki-commons/commit/ed7ff515a2436a1c6dcbd0c6ca0c41e434d58915
- https://github.com/xwiki/xwiki-commons/security/advisories/GHSA-hf43-47q4-fhq5
- https://jira.xwiki.org/browse/XCOMMONS-2828
- https://jira.xwiki.org/browse/XWIKI-21438
Provider assertions
3GitHub_M · cna
XWiki Commons missing escaping of `{` in Velocity escapetool allows remote code execution
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 847ba017912ee9b44903ac6158e6e4fe9e872aa9c54c08165881a40e67cddab8
- Ingested
- 23 Sep 2026, 08:22:40 UTC
- Source record
- Official CVE record