CVE-2024-31996Xwiki
Critical 9.8 No auth needed
Follow: this CVE · Xwiki · Xwiki We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 4.6% probability of exploitation in 30 days · percentile 92
- Auth required
- No
- Published
- Apr 10, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Xwiki.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Maven | org.xwiki.commons:xwiki-commons-velocity |
≥ 3.0.1 < 14.10.19 |
14.10.19 |
— |
| Maven | org.xwiki.commons:xwiki-commons-velocity |
≥ 15.0-rc-1 < 15.5.4 |
15.5.4 |
— |
| Maven | org.xwiki.commons:xwiki-commons-velocity |
≥ 15.6-rc-1 < 15.9-rc-1 |
15.9-rc-1 |
— |
Per OSV / GitHub Advisories (GHSA-hf43-47q4-fhq5). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| xwiki | xwiki | ≥ 3.0.1 < 14.10.19 |
| xwiki | xwiki | ≥ 15.0 < 15.5.4 |
| xwiki | xwiki | ≥ 15.6 < 15.9 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Patch
- github.com Patch
- github.com Vendor Advisory
- jira.xwiki.org Exploit Vendor Advisory
- jira.xwiki.org Exploit Vendor Advisory