CVE-2024-31982
XWiki Platform: Remote code execution as guest via DatabaseSearch
Also known as GHSA-2858-8cfx-69m9
Mitigation
- Upgrade org.xwiki.platform:xwiki-platform-search-ui to one of 14.10.20, 15.5.4, 15.10-rc-1 (or later in the same release line).
Who should check
- Projects that depend on Maven package org.xwiki.platform:xwiki-platform-search-ui (>= 2.4-milestone-1, < 14.10.20)
- Anyone running xwiki-platform >= 2.4-milestone-1, < 14.10.20; >= 15.0-rc-1, < 15.5.4; >= 15.6-rc-1, < 15.10-rc-1
Vulnerability facts
- Affected
- org.xwiki.platform:xwiki-platform-search-ui >= 2.4-milestone-1, < 14.10.20
- Fixed in
- 14.10.20, 15.5.4, 15.10-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
- 38.27% chance of exploitation in 30 days (percentile 99, 2026-11-26)
- CWE
- CWE-95
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Maven org.xwiki.platform:xwiki-platform-search-ui | >= 2.4-milestone-1, < 14.10.20 | 14.10.20, 15.5.4, 15.10-rc-1 | osv |
| xwiki-platform | >= 2.4-milestone-1, < 14.10.20; >= 15.0-rc-1, < 15.5.4; >= 15.6-rc-1, < 15.10-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-31982. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-31982.md Affected: org.xwiki.platform:xwiki-platform-search-ui >= 2.4-milestone-1, < 14.10.20 Fixed in: 14.10.20, 15.5.4, 15.10-rc-1 Steps: 1. Search this machine and project for org.xwiki.platform:xwiki-platform-search-ui (Maven), xwiki-platform: 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
Vendor advisories
Patches
Exploits and PoCs
FAQ
Is CVE-2024-31982 being exploited?
There is no confirmed exploitation: CVE-2024-31982 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 38.27% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-31982?
Critical: CVSS 10.0 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2024-31982?
org.xwiki.platform:xwiki-platform-search-ui >= 2.4-milestone-1, < 14.10.20.
Is there a fix for CVE-2024-31982?
Yes. Fixed in 14.10.20, 15.5.4, 15.10-rc-1. Upgrade org.xwiki.platform:xwiki-platform-search-ui to one of 14.10.20, 15.5.4, 15.10-rc-1 (or later in the same release line).
How do I check if I'm affected by CVE-2024-31982?
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.