Skip to main content
Public proof of conceptFix available

CVE-2024-31996

A public proof of concept exists; no exploitation attested.

  • Published2024-04-10
  • Fixed in15.9 · 15.9-rc-1 · 15.5.4 · 14.10.19
  • WeaknessCWE-94 · CWE-95

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2024-04-1021:15CVE publishedNVD

Versions per branch

NVD · OSV · CISA-ADP
Xwiki
BranchAffectedFixed in
15.x≥ 15.6, < 15.915.9
15.x≥ 15.6-rc-1, < 15.9-rc-115.9-rc-1
15.x≥ 15.0, < 15.5.415.5.4
15.x≥ 15.0-rc-1, < 15.5.415.5.4
14.10≥ 3.0.1, < 14.10.1914.10.19
Xwiki commons
BranchAffectedFixed in
15.x≥ 15.6-rc-1, < 15.9-rc-115.9-rc-1
15.x≥ 15.0-rc-1, < 15.5.415.5.4
14.10≥ 3.0.1, < 14.10.1914.10.19

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • xwiki-commons
    Affected
    • = >= 3.0.1, < 14.10.19no fix stated
    • = >= 15.0-rc-1, < 15.5.4no fix stated
    • = >= 15.6-rc-1, < 15.9-rc-1no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2024-04-10

Fix

  1. Update Xwiki to 15.9 · 15.9-rc-1 · 15.5.4 · 14.10.19

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionpoc2024-06-03
  • CNACVSS 3.110known since 2026-10-23
  • NVDCVSS 3.19.8read 2026-10-23
  • CNAweakness (CWE)CWE-95known since 2026-10-23
  • NVDweakness (CWE)CWE-94read 2026-10-23
  • FIRST EPSSEPSS score2.1 %2026-11-19
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryCritical2024-04-10

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
2024-04-10
Last Modified
2026-06-17
NVD status
Analyzed
GitHub Advisory
GHSA-hf43-47q4-fhq5

Frequently asked questions

What is CVE-2024-31996?

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.

Is CVE-2024-31996 actively exploited?

A proof-of-concept exploit exists for CVE-2024-31996, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2024-31996?

CVE-2024-31996 has a CVSS v3 base score of 9.8 (Critical severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Hear about the next vulnerability in your software

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record