Security Resilience

CVE-2024-31986

RCE in Xwiki 3.1.1 – 14.10.19

Public PoCRCECSRF
Published
10 April 2024
Modified
21 January 2025
Patch / advisory
CVSS Score v3.1 9.0
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
EPSS Score 0.0055 47th percentile
Risk Priority 72 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2024-31986 is a critical-severity Eval Injection (CWE-95) vulnerability in Xwiki. Its CVSS base score is 9.0 (Critical).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked at the 47th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SI-10 (Information Input Validation) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

XWiki Platform contains a remote code execution vulnerability affecting versions from 3.1 up to but not including 14.10.19, 15.5.4, and 15.10-rc-1. The flaw stems from insufficient validation of document references combined with XWiki.SchedulerJobClass objects, allowing crafted content to trigger arbitrary server-side code execution when the scheduler page is loaded or referenced.

An attacker with the ability to create documents in the wiki can exploit the issue. When an administrator subsequently visits the scheduler page or the malicious reference is rendered (for example through an embedded image in a comment), the attacker’s code runs with the privileges of the XWiki process, achieving full compromise of the server. The attack combines elements of improper neutralization of directives (CWE-95) and cross-site request forgery (CWE-352) and carries a CVSS 3.1 score of 9.0.

Public advisories and patches indicate the issue was resolved in XWiki 14.10.19, 15.5.5, and 15.9. The recommended workaround is to apply the provided patch directly to the Scheduler.WebHome page; the fixes are documented in the associated GitHub commits and the XWiki Jira ticket XWIKI-21416.

EPSS scores have remained low, reaching a peak of 0.1081 before receding to the current value of 0.0790, with no reported real-world exploitation.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

XWiki Platform is a generic wiki platform. Starting in version 3.1 and prior to versions 4.10.19, 15.5.4, and 15.10-rc-1, by creating a document with a special crafted documented reference and an `XWiki.SchedulerJobClass` XObject, it is possible to execute arbitrary code…

more

on the server whenever an admin visits the scheduler page or the scheduler page is referenced, e.g., via an image in a comment on a page in the wiki. The vulnerability has been fixed in XWiki 14.10.19, 15.5.5, and 15.9. As a workaround, apply the patch manually by modifying the `Scheduler.WebHome` page.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1136 Create Account Persistence
Adversaries may create an account to maintain access to victim systems.
T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1203 Exploitation for Client Execution Execution
Adversaries may exploit software vulnerabilities in client applications to execute code.
T1210 Exploitation of Remote Services Lateral Movement
Adversaries may exploit remote services to gain unauthorized access to internal systems once inside of a network.
T1529 System Shutdown/Reboot Impact
Adversaries may shutdown/reboot systems to interrupt access to, or aid in the destruction of, those systems.
T1565 Data Manipulation Impact
Adversaries may insert, delete, or manipulate data in order to influence external outcomes or hide activity, thus threatening the integrity of the data.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2024-31988Same product: Xwiki Xwiki
CVE-2023-40572Same product: Xwiki Xwiki
CVE-2024-31985Same product: Xwiki Xwiki
CVE-2023-37277Same product: Xwiki Xwiki
CVE-2023-48293Same product: Xwiki Xwiki
CVE-2023-46242Same product: Xwiki Xwiki
CVE-2023-29511Same product: Xwiki Xwiki
CVE-2023-29213Same product: Xwiki Xwiki
CVE-2023-37462Same product: Xwiki Xwiki
CVE-2023-50723Same product: Xwiki Xwiki

Affected Assets

xwiki
xwiki
3.1.1 — 14.10.19 · 15.0 — 15.5.4 · 15.6 — 15.9

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

—

Detect
Catch it (NIST detect / respond)

—

Harden
Shrink the surface (DISA STIG)

—

Validate
Prove the fix (OWASP ASVS)
  • V3.3.2
  • V3.5.1
  • V10.2.1
  • V1.3.2

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Developer testing and code analysis can discover eval-injection flaws but does not stop their introduction.

Input validation explicitly requires neutralizing untrusted data before it reaches dynamic evaluation constructs such as eval.

Access enforcement requires verifying that state-changing requests originate from the authenticated user rather than a forged cross-site source.

Secure-development standards and tools can mandate safe coding patterns that avoid unsafe dynamic evaluation.

Protecting session authenticity prevents attackers from replaying or forging authenticated requests via the victim's browser.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.PS-06 mostly match
blocks

Secure SDLC practices directly require input neutralization and avoidance of unsafe dynamic evaluation.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing in development can detect eval injection vulnerabilities before deployment.

prevents

Training teaches developers the dangers of eval() with untrusted input and safer alternatives (e.g., ast.literal_eval), so a minority of instances are avoided, but the practice is fallible and the weakness is introduced at code-writing time where many other factors compete, matching the A.8.28 -> CWE-79 / CWE-502 partial rung.

prevents

Secure coding explicitly requires neutralization of input before dynamic evaluation, directly mitigating eval injection.

prevents

A.8.30 carries its effect through the secure-development practices its contract requires of the supplier (8.25 to 8.29), so it reduces ordinary software weaknesses in delivered code the way those practices do; CSRF is such a weakness, addressed when the supplier implements CSRF tokens and other protections under contracted secure coding/testing, but the effect is fallible and depends on the supplier's implementation, matching the A.8.30 -> CWE-134 anchor at the clause's declared ceiling of `partial`.

finds

A.8.8's reach is published advisories and component inventory; eval injection does surface as CVEs (so not `none`), but the bulk of CWE-95 instances live in first-party code that nobody published an advisory about, which A.8.8's neighbour A.8.29 reaches and A.8.8 does not.

References