# CVE-2024-31988: XWiki Platform CSRF remote code execution through the realtime HTML Converter API

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.7
- **CVSS:** 9.7 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.57% (percentile 76, 2026-11-28)
- **CWE:** CWE-352
- **Aliases:** GHSA-r5vh-gc3r-r24w
- **Published:** 2024-04-10T17:14:59.000Z
- **Modified:** 2026-09-10T03:50:11.640Z

## Who should check

- Projects that depend on Maven package org.xwiki.platform:xwiki-platform-realtime-ui (\>= 13.9-rc-1, \< 14.10.19)
- Anyone running xwiki-platform \>= 13.9-rc-1, \< 14.10.19; \>= 15.0-rc-1, \< 15.5.4; \>= 15.6-rc-1, \< 15.9

## Description

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 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.

## Affected and fixed versions

- Maven `org.xwiki.platform:xwiki-platform-realtime-ui`: affected \>= 13.9-rc-1, \< 14.10.19; fixed 14.10.19, 15.5.4, 15.9 (osv)
- xwiki-platform: \>= 13.9-rc-1, \< 14.10.19; \>= 15.0-rc-1, \< 15.5.4; \>= 15.6-rc-1, \< 15.9 (cvelist)

## Mitigation

- Upgrade org.xwiki.platform:xwiki-platform-realtime-ui to one of 14.10.19, 15.5.4, 15.9 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-31988. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-31988.md
Affected: org.xwiki.platform:xwiki-platform-realtime-ui >= 13.9-rc-1, < 14.10.19
Fixed in: 14.10.19, 15.5.4, 15.9

Steps:
1. Search this machine and project for org.xwiki.platform:xwiki-platform-realtime-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.
```

## FAQ

### Is CVE-2024-31988 being exploited?

There is no confirmed exploitation: CVE-2024-31988 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 1.57% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2024-31988?

Critical: CVSS 9.7 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2024-31988?

org.xwiki.platform:xwiki-platform-realtime-ui \>= 13.9-rc-1, \< 14.10.19.

### Is there a fix for CVE-2024-31988?

Yes. Fixed in 14.10.19, 15.5.4, 15.9. Upgrade org.xwiki.platform:xwiki-platform-realtime-ui to one of 14.10.19, 15.5.4, 15.9 (or later in the same release line).

### How do I check if I'm affected by CVE-2024-31988?

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.

## References

- vendor: <https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-r5vh-gc3r-r24w>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-31988>
- patch: <https://github.com/xwiki/xwiki-platform/commit/4896712ee6483da623f131be2e618f1f2b79cb8d>
- patch: <https://github.com/xwiki/xwiki-platform/commit/9f8cc88497418750b09ce9fde5d67d840f038fbf>
- patch: <https://github.com/xwiki/xwiki-platform/commit/d88da4572fb7d4f95e1f54bb0cce33fce3df08d9>
- patch: <https://github.com/xwiki/xwiki-platform/commit/d9f5043da289ff106f08e23576746fd8baf98794>
- exploit: <https://jira.xwiki.org/browse/XWIKI-21424>
- other: <https://github.com/xwiki/xwiki-platform>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-31988>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-r5vh-gc3r-r24w> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-31988> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-31988>
