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

- Severity: Critical 9.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.70%, higher than 54% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-04-10T17:14:59.000Z
- Modified: 2026-09-10T03:50:11.640Z
- Also known as: GHSA-r5vh-gc3r-r24w
- Weaknesses: CWE-352
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- xwiki xwiki-platform: >= 13.9-rc-1, < 14.10.19; >= 15.0-rc-1, < 15.5.4; >= 15.6-rc-1, < 15.9
- xwiki xwiki: from 13.9-rc-1 before 14.10.19; from 15.0-rc-1 before 15.5.4; from 5.6-rc-1 before 15.9; from 13.9 before 14.10.19; from 15.0 before 15.5.4; from 15.6 before 15.9
- org.xwiki.platform:xwiki-platform-realtime-ui (Maven): from 13.9-rc-1 before 14.10.19; from 15.0-rc-1 before 15.5.4; from 15.6-rc-1 before 15.9

## Every score

- GitHub_M: CVSS:3.1 9.7 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.6 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

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

## Sources

- CVE List: [CVE-2024-31988](https://www.cve.org/CVERecord?id=CVE-2024-31988), CVE Terms of Use, modified 2025-02-21
- GitHub Advisory Database: [GHSA-r5vh-gc3r-r24w](https://github.com/advisories/GHSA-r5vh-gc3r-r24w), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-31988](https://nvd.nist.gov/vuln/detail/CVE-2024-31988), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-31988 · Whole record: https://cve.day/CVE-2024-31988.json · Rebuilt by cve.day 2026-11-25T22:58:39.079Z
