cve.bz

CVE-2024-31982 xwiki xwiki: Code Injection

9.8 criticalExploit referenceEPSS 35%Fix available

Critical (9.8) in xwiki xwiki. EPSS 35% estimated probability of exploitation activity in the next 30 days. Fixed in org.xwiki.platform:xwiki-platform-search-ui 14.10.20, 15.10-rc-1, 15.5.4.

On this page
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.

Severity

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
EPSS
35% (unchanged from 35% a week ago; 35% 30 days ago) estimated probability of exploitation activity in the next 30 days; 98th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: total, assessed 2024-08-20. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-94 Improper Control of Generation of Code (Code Injection)
CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code (Eval Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-31982 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-31982?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-31982?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-31982 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
xwiki:xwikifrom 2.4 before 14.10.20
xwiki:xwikifrom 15.0 before 15.5.4
xwiki:xwikifrom 15.6 before 15.10

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-2858-8cfx-69m9Mavenorg.xwiki.platform:xwiki-platform-search-ui>=2.4-milestone-1 <14.10.2014.10.20
GHSA-2858-8cfx-69m9Mavenorg.xwiki.platform:xwiki-platform-search-ui>=15.0-rc-1 <15.5.415.5.4
GHSA-2858-8cfx-69m9Mavenorg.xwiki.platform:xwiki-platform-search-ui>=15.6-rc-1 <15.10-rc-115.10-rc-1

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

  • Nuclei template XWiki < 4.10.20 - Remote code execution
  • Emerging Threats Open ET WEB_SPECIFIC_APPS XWiki Groovy Script Command Injection Attempt M2 (CVE-2024-31982) sid 2071270
  • Emerging Threats Open ET WEB_SPECIFIC_APPS XWiki Groovy Script Command Injection Attempt (CVE-2024-31982) sid 2061104

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON