WaratekVRT Sign in

CVE-2024-31982 XWiki

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

Description

XWiki Platform is a generic wiki platform. Starting in version 2.4-milestone-1 and prior to versions 4.10.20, 15.5.4, and 15.10-rc-1, XWiki's database search allows remote code execution through the search text. This allows remote code execution for any visitor of a public wiki or user of a closed wiki as the database search is by default accessible for all users. This impacts the confidentiality, integrity and availability of the whole XWiki installation. This vulnerability has been patched in XWiki 14.10.20, 15.5.4 and 15.10RC1. As a workaround, one may manually apply the patch to the page Main.DatabaseSearch. Alternatively, unless database search is explicitly used by users, this page can be deleted as this is not the default search interface of XWiki.

CWE-95

Exploitation status

Exploited

Real-world exploitation reported by VulnCheck KEV. CISA has not confirmed it.

  • CISA KEV not listed
  • VulnCheck KEV listed Exploitation reported in the wild. 1 citation · honeypot sightings · 4 exploits · earliest 2024-06-26.
  • CISA Vulnrichment exploitation: poc CISA recorded that an exploit has been demonstrated. Automatable: yes, technical impact: total.
  • Indexed PoC 5 indexed Published artifacts you can open, in GitHub PoC, Nuclei; first seen 2024-06-22.
  • EPSS 35% chance in 30 days A model's forecast, not a report of exploitation. Higher than 98% of all scored CVEs.

VulnCheck KEV

Exploitation evidence from VulnCheck Known Exploited Vulnerabilities (VulnCheck KEV), used under VulnCheck's community terms. View CVE-2024-31982 in VulnCheck (free account).

EvidenceSourceDetailDate
Honeypot sighting SANS DShield sensors Exploitation attempts seen on 1 day 2024-06-26
Honeypot sighting Shadowserver honeypots Exploitation attempts seen on 16 days 2026-09-10 to 2026-11-01
Honeypot sighting VulnCheck canaries Exploitation attempts seen on 76 days 2025-10-17 to 2026-11-13
Reported exploitation isc.sans.edu /diary/XWiki+Search+Vulnerability+exploit+attempts+CVE20243721/31800 2025-03-25
Exploit reference VulnCheck XDB 032bed7a111b Exploit type: initial-access 2024-06-22
Exploit reference VulnCheck XDB e93339b71785 Exploit type: initial-access 2024-06-22
Exploit reference VulnCheck XDB 07acc1d2aca9 Exploit type: initial-access 2024-10-23
Exploit reference VulnCheck XDB ad97958b10c4 Exploit type: remote-with-credentials 2025-11-13

3 of these are GitHub repositories with fewer than 5 stars. They are listed for reference and don't count toward the exploitation status above.

IndexArtifactStarsFirst seen
GitHub PoC POC for CVE-2024-31982: XWiki Platform Remote Code Execution > 14.10.20 10 2024-06-22
GitHub PoC NanoWraith/CVE-2024-31982 1 2024-06-22
GitHub PoC Vulnerability for Xwiki 2025-11-11
GitHub PoC A tool for vulnerability detection and exploitation tool for CVE-2024-31982 2024-06-22
Nuclei XWiki < 4.10.20 - Remote code execution

Waratek protection

Mitigation candidate

A kind of vulnerability Waratek's rules address, with exploit code published or exploitation reported. No rule exists and none is planned yet. The decision below says what we found to build a rule from.

  • Protection none
  • Action unverified
  • Review automated Inferred
  • Record active
Decided by A reference pointing at the upstream fix: a commit, a PR, a Red Hat bug
Finding A reference points at an upstream fix (commit tier): https://github.com/xwiki/xwiki-platform/commit/3c9e4bb04286de94ad24854026a09fa967538e31. That makes this CVE a candidate for an ARMR patch rule — it is the kind of defect ARMR can address, and there is a fix to work from. No rule exists and none is scheduled: writing one means reading the linked change and finding a hook point ARMR can express it at, which may turn out not to exist.
Candidate fix https://github.com/xwiki/xwiki-platform/commit/3c9e4bb04286de94ad24854026a09fa967538e31 : 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.platform:xwiki-platform-search-ui 2.4-milestone-1 14.10.20 unbounded
org.xwiki.platform:xwiki-platform-search-ui 15.0-rc-1 15.5.4 unbounded
org.xwiki.platform:xwiki-platform-search-ui 15.6-rc-1 15.10-rc-1 unbounded

Products and versions

2 products, 6 version entries
SourceVendorProductSchemeAffected versions
osv org.xwiki.platform xwiki-platform-search-ui generic ≥ 2.4 and < 14.10.20 · ≥ 15.0 and < 15.5.4 · ≥ 15.6 and < 15.10
nvd xwiki xwiki generic ≥ 2.4 and < 14.10.20 · ≥ 15.0 and < 15.5.4 · ≥ 15.6 and < 15.10

References

URLTags
https://github.com/xwiki/xwiki-platform/commit/3c9e4bb04286de94ad24854026a09fa967538e31 commit
https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-2858-8cfx-69m9 WEB
https://github.com/xwiki/xwiki-platform/commit/459e968be8740c8abc2a168196ce21e5ba93cfb8 WEB
https://github.com/xwiki/xwiki-platform/commit/95bdd6cc6298acdf7f8f21298d40eeb8390a8565 WEB
https://github.com/xwiki/xwiki-platform PACKAGE
https://jira.xwiki.org/browse/XWIKI-21472 WEB
https://www.vicarius.io/vsociety/posts/cve-2024-31982-detect-xwiki-vulnerability WEB
https://www.vicarius.io/vsociety/posts/cve-2024-31982-xwiki-mitigation-vulnerability WEB
https://www.vicarius.io/vsociety/posts/xwiki-rce-cve-2024-31982 WEB

Timeline

Published2024-04-10By the CVE Program.
VulnCheck KEV: earliest evidence2024-06-26Date of the oldest evidence of exploitation in VulnCheck KEV's record. VulnCheck does not publish the date it listed the CVE.
NVD record modified2026-06-17NVD's own last-modified date for this record.
VulnCheck KEV: latest evidence2026-11-13Date of the newest report, exploit reference or honeypot sighting in VulnCheck KEV's record.