Live threats

All CVEs / Xwiki

CVE-2024-31996Xwiki

Critical 9.8 No auth needed

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
Weakness (CWE)
CWE-95, CWE-94
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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Xwiki.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
xwikixwiki≥ 3.0.1 < 14.10.19
xwikixwiki≥ 15.0 < 15.5.4
xwikixwiki≥ 15.6 < 15.9

Official sources

References

Links published by the sources. Open them with care.