Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-31996

CRITICAL 10.0PoCEPSS 92%

XWiki Commons missing escaping of `{` in Velocity escapetool allows remote code execution

Also known as GHSA-hf43-47q4-fhq5

Mitigation

  • Upgrade org.xwiki.commons:xwiki-commons-velocity to one of 14.10.19, 15.5.4, 15.9-rc-1 (or later in the same release line).

Who should check

  • Projects that depend on Maven package org.xwiki.commons:xwiki-commons-velocity (>= 3.0.1, < 14.10.19)
  • Anyone running xwiki-commons >= 3.0.1, < 14.10.19; >= 15.0-rc-1, < 15.5.4; >= 15.6-rc-1, < 15.9-rc-1

Vulnerability facts

Affected
org.xwiki.commons:xwiki-commons-velocity >= 3.0.1, < 14.10.19
Fixed in
14.10.19, 15.5.4, 15.9-rc-1
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
Yes: see the exploit references below
Remote exploitation
Remote, no login needed
CVSS
10.0 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: None
  • Scope: Changed (impact reaches other components)
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
4.60% chance of exploitation in 30 days (percentile 92, 2026-11-26)
CWE
CWE-95
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
Maven org.xwiki.commons:xwiki-commons-velocity>= 3.0.1, < 14.10.1914.10.19, 15.5.4, 15.9-rc-1osv
xwiki-commons>= 3.0.1, < 14.10.19; >= 15.0-rc-1, < 15.5.4; >= 15.6-rc-1, < 15.9-rc-1—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2024-31996. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-31996.md
Affected: org.xwiki.commons:xwiki-commons-velocity >= 3.0.1, < 14.10.19
Fixed in: 14.10.19, 15.5.4, 15.9-rc-1

Steps:
1. Search this machine and project for org.xwiki.commons:xwiki-commons-velocity (Maven), xwiki-commons: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2024-31996 being exploited?

There is no confirmed exploitation: CVE-2024-31996 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 4.60% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2024-31996?

Critical: CVSS 10.0 (v3.1, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2024-31996?

org.xwiki.commons:xwiki-commons-velocity >= 3.0.1, < 14.10.19.

Is there a fix for CVE-2024-31996?

Yes. Fixed in 14.10.19, 15.5.4, 15.9-rc-1. Upgrade org.xwiki.commons:xwiki-commons-velocity to one of 14.10.19, 15.5.4, 15.9-rc-1 (or later in the same release line).

How do I check if I'm affected by CVE-2024-31996?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors