Loading...
Skip to main content

CVE-2024-31988 — Vulnerability in...

CRITICAL

XWiki Platform CSRF remote code execution through the realtime HTML Converter API

Published April 10, 2024Updated September 10, 2026Source: osv

Summary

### Impact 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. To reproduce on an XWiki installation, as an admin, click on `<xwiki-host>/xwiki/bin/get/RTFrontend/ConvertHTML?wiki=xwiki&space=Main&page=WebHome&text=%7B%7Bvelocity%7D%7D%24logtool.error%28%22Hello%20from%20Velocity%20%21%22%29%7B%7B%2Fvelocity%7D%7D`. If the error "Hello from Velocity!" gets logged then the installation is vulnerable. ### Patches This vulnerability has been patched in XWiki 14.10.19, 15.5.4 and 15.9. ### Workarounds Update `RTFrontend.ConvertHTML` following this [patch](https://github.com/xwiki/xwiki-platform/commit/4896712ee6483da623f131be2e618f1f2b79cb8d#diff-32a2a63950724b24e63587570cd95a41cf689111b8ba61c48dabee9effec6d61). 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. ### References * https://jira.xwiki.org/browse/XWIKI-21424 * https://github.com/xwiki/xwiki-platform/commit/4896712ee6483da623f131be2e618f1f2b79cb8d

Advisory Timeline

  • First published April 10, 2024 (915 days ago).
  • Last revised September 10, 2026 — 882 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update org.xwiki.platform:xwiki-platform-realtime-ui to 15.5.4 or later
<!-- Update pom.xml dependency version to 15.5.4 for org.xwiki.platform:xwiki-platform-realtime-ui -->
Maven
Update org.xwiki.platform:xwiki-platform-realtime-ui to 14.10.19 or later
<!-- Update pom.xml dependency version to 14.10.19 for org.xwiki.platform:xwiki-platform-realtime-ui -->
Maven
Update org.xwiki.platform:xwiki-platform-realtime-ui to 15.9 or later
<!-- Update pom.xml dependency version to 15.9 for org.xwiki.platform:xwiki-platform-realtime-ui -->

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (3)

Affects 1 ecosystem: maven (1).

PackageEcosystemAffectedFixed In
org.xwiki.platform:xwiki-platform-realtime-ui
maven
All versions15.5.4
org.xwiki.platform:xwiki-platform-realtime-ui
maven
All versions14.10.19
org.xwiki.platform:xwiki-platform-realtime-ui
maven
All versions15.9

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-352
    Cross-Site Request Forgery (CSRF)MITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.6 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2024-31988?
XWiki Platform CSRF remote code execution through the realtime HTML Converter API This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.6/10).
How do I check if my project is affected by CVE-2024-31988?
CVE-2024-31988 affects org.xwiki.platform:xwiki-platform-realtime-ui. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-31988 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.6

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-r5vh-gc3r-r24w

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies