WaratekVRT Sign in

CVE-2024-31996 XWiki

Affected softwareXWiki
Severity10.0 Critical CVSS 3.1 2 scores
Fixed in14.10.19, 15.5.4, 15.9-rc-1
WeaknessCode injection (CWE-94)
Published10 Apr 2024
Updated17 Jun 2026

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.

CWE-95

Exploitation status

Proof of concept only

A proof of concept exists, but no reviewed exploit catalogue lists this CVE.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment exploitation: poc CISA recorded that an exploit has been demonstrated. Automatable: yes, technical impact: total.
  • Indexed PoC none indexed
  • EPSS 2.1% chance in 30 days

Waratek protection

No exploit published

Within Waratek scope. In the sources we check, nobody has published exploit code for this CVE or reported it being exploited.

A public code fix exists: xwiki/xwiki-commons b080516.

  • Protection none
  • Action unverified
  • Review automated Upstream data
  • Record active
Decided by Exploit code for this candidate, published in a reviewed catalogue or a GitHub repository with 5 or more stars, or in use per CISA or VulnCheck; not only a CISA verdict, a forecast, or nothing at all
Finding This CVE is not listed in CISA KEV or VulnCheck KEV, CISA Vulnrichment records no active exploitation, no reviewed exploit catalogue carries an entry for it, and no GitHub PoC repository for it has 5 or more stars. Nobody has published exploit code worth tracing, so it is not a candidate for a rule ahead of the ones where somebody has; an upstream fix path does exist, so the remediation half of the candidacy still holds. This is a statement about what has been published, not about whether the defect is reachable or serious.
Candidate fix https://github.com/xwiki/xwiki-commons/commit/b0805160ec7b01ee12417e79cb384e60ae4817aa : a commit: the change itself

CVSS

10.0 CRITICAL v3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H 2 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
CVSS 3.1 10.0 CRITICAL CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H security-advisories@github.com Secondary published
CVSS 3.1 9.8 CRITICAL CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H NVD Primary

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.xwiki.commons:xwiki-commons-velocity 3.0.1 14.10.19 unbounded
org.xwiki.commons:xwiki-commons-velocity 15.0-rc-1 15.5.4 unbounded
org.xwiki.commons:xwiki-commons-velocity 15.6-rc-1 15.9-rc-1 unbounded

Products and versions

2 products, 6 version entries
SourceVendorProductSchemeAffected versions
osv org.xwiki.commons xwiki-commons-velocity generic ≥ 3.0.1 and < 14.10.19 · ≥ 15.0 and < 15.5.4 · ≥ 15.6 and < 15.9
nvd xwiki xwiki generic ≥ 3.0.1 and < 14.10.19 · ≥ 15.0 and < 15.5.4 · ≥ 15.6 and < 15.9

References

URLTags
https://github.com/xwiki/xwiki-commons/commit/b0805160ec7b01ee12417e79cb384e60ae4817aa commit
https://github.com/xwiki/xwiki-commons/security/advisories/GHSA-hf43-47q4-fhq5 WEB
https://github.com/xwiki/xwiki-commons/commit/b94142e2a66ec32e89eacab67c3da8d91f5ef93a WEB
https://github.com/xwiki/xwiki-commons/commit/ed7ff515a2436a1c6dcbd0c6ca0c41e434d58915 WEB
https://github.com/xwiki/xwiki-commons PACKAGE
https://jira.xwiki.org/browse/XCOMMONS-2828 WEB
https://jira.xwiki.org/browse/XWIKI-21438 WEB

Timeline

Published2024-04-10By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.