Security Resilience

CVE-2024-31988

CSRF in Xwiki 13.9 – 14.10.19

Public PoCCSRF
Published
10 April 2024
Modified
09 January 2025
Patch / advisory
CVSS Score v3.1 9.6
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
EPSS Score 0.0070 54th percentile
Risk Priority 77 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-31988 is a critical-severity CSRF (CWE-352) vulnerability in Xwiki. Its CVSS base score is 9.6 (Critical).

Operationally, exploitation aligns with the MITRE ATT&CK technique Create Account (T1136); ranked in the top 46% of CVEs by exploit likelihood; 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 AC-3 (Access Enforcement) and SC-23 (Session Authenticity) — 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 versions from 13.9-rc-1 through 14.10.18, 15.5.3, and 15.9 contain a vulnerability in the realtime editor component that permits arbitrary remote code execution. The flaw stems from insufficient protection of the RTFrontend.ConvertHTML endpoint, allowing crafted XWiki syntax containing Groovy or Python macros to be executed when processed by an administrator account that possesses programming rights. The issue is tracked as CWE-352 and carries a CVSS 3.1 score of 9.6.

An unauthenticated attacker can exploit the weakness by inducing an administrator to visit a maliciously constructed URL or to load an image whose source attribute points to that URL, for example by embedding it in a comment or wiki page. Successful interaction causes the server to interpret and run attacker-supplied scripting macros, resulting in full compromise of the confidentiality, integrity, and availability of the XWiki installation.

Official patches released in XWiki 14.10.19, 15.5.4, and 15.9 address the endpoint; the project advisory also notes a manual workaround that updates RTFrontend.ConvertHTML at the cost of breaking certain realtime synchronization features. The associated EPSS score rose from a low baseline to a peak of 0.1084 on 2025-12-11 before receding to its current value of 0.0690, indicating a measurable increase in exploitation interest after disclosure.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

XWiki Platform is a generic wiki platform. Starting in version 13.9-rc-1 and prior to versions 4.10.19, 15.5.4, and 15.10-rc-1, when the realtime editor is installed in XWiki, it allows arbitrary remote code execution with the interaction of an admin user…

more

with programming right. More precisely, by getting an admin user to either visit a crafted URL or to view an image with this URL that could be in a comment, the attacker can get the admin to execute arbitrary XWiki syntax including scripting macros with Groovy or Python code. This compromises the confidentiality, integrity and availability of the whole XWiki installation. This vulnerability has been patched in XWiki 14.10.19, 15.5.4 and 15.9. As a workaround, one may update `RTFrontend.ConvertHTML` manually with the patch. This will, however, break some synchronization processes in the realtime editor, so upgrading should be the preferred way on installations where this editor is used.

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.
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.
T1586.001 Social Media Accounts Resource Development
Adversaries may compromise social media accounts that can be used during targeting.
T1098 Account Manipulation Persistence
Adversaries may manipulate accounts to maintain and/or elevate access to victim systems.
T1136.001 Local Account Persistence
Adversaries may create a local account to maintain access to victim systems.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

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-29213Same product: Xwiki Xwiki
CVE-2024-31986Same product: Xwiki Xwiki
CVE-2023-46242Same product: Xwiki Xwiki
CVE-2023-50722Same product: Xwiki Xwiki
CVE-2023-48292Same vendor: Xwiki
CVE-2023-22457Same vendor: Xwiki

Affected Assets

xwiki
xwiki
13.9 — 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

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

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

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 anti-CSRF controls such as tokens or SameSite attributes.

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

A.8.29's combined programme of code review, SAST, and penetration testing reaches CSRF through both source and runtime channels: missing tokens and unprotected state-changing endpoints are standard SAST and pen-test findings. The remainder is bounded and nameable — subtle flaws in token validation logic, referer-checking bypasses, and CSRF in less common frameworks or non-HTML endpoints that automated tools flag inconsistently.

prevents

Training developers about CSRF and the need for tokens/SameSite cookies reduces instances where the weakness arises from ignorance, but CSRF is a specific implementation defect requiring correct technical countermeasures, and trained developers still introduce it through flawed token validation or missing protections — a minority effect, matching the A.6.3 -> CWE-598 anchor at the same rung.

prevents

A.8.28 mandates secure design, threat modelling, secure coding standards and SAST, which a well-implemented programme would extend to CSRF countermeasures (tokens, SameSite, Origin checks), but as a practice-mandating clause the actual coverage depends on implementation rigour, leaving a nameable remainder of instances where CSRF defences are not adopted.

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; CSRF is overwhelmingly a first-party application design flaw, so A.8.8 only discovers it where it has already been published as a CVE in a third-party component (e.g., a web framework or CMS), which is a minority of latent CSRF instances — the same disclosure-bounded logic that graded A.8.8 -> CWE-89 at `partial`.

References