{"id":"CVE-2024-31988","published":"2024-04-10T20:40:36Z","modified":"2025-02-21T17:03:40Z","title":"XWiki Platform CSRF remote code execution through the realtime HTML Converter API","vendor":"xwiki","product":"xwiki-platform","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.7,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01565,"percentile":0.75601,"provenance":"source"},"cwes":[{"id":"CWE-352","name":"Cross-Site Request Forgery"}],"references":[{"url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-r5vh-gc3r-r24w","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/4896712ee6483da623f131be2e618f1f2b79cb8d","tags":["x_refsource_MISC"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/9f8cc88497418750b09ce9fde5d67d840f038fbf","tags":["x_refsource_MISC"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/d88da4572fb7d4f95e1f54bb0cce33fce3df08d9","tags":["x_refsource_MISC"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/d9f5043da289ff106f08e23576746fd8baf98794","tags":["x_refsource_MISC"]},{"url":"https://jira.xwiki.org/browse/XWIKI-21424","tags":["x_refsource_MISC"]}],"priority":{"score":21.9,"factors":[{"name":"EPSS percentile","points":15.12},{"name":"CVSS severity","points":6.79}]},"vendorSlug":"xwiki","affectedVersions":[{"vendor":"xwiki","product":"xwiki-platform","versions":[">= 13.9-rc-1, < 14.10.19",">= 15.0-rc-1, < 15.5.4",">= 15.6-rc-1, < 15.9"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2024-04-17T15:02:51.899838Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-realtime-ui","vulnerableRanges":[">=13.9-rc-1, <14.10.19",">=15.0-rc-1, <15.5.4",">=15.6-rc-1, <15.9"],"patched":["14.10.19","15.5.4","15.9"],"from":["GHSA-r5vh-gc3r-r24w"],"provenance":"source"}],"summary":{"text":"The XWiki Platform (xwiki-platform) has a cross-site request forgery flaw in the realtime HTML Converter API, provided by the realtime editor component when it is installed. An attacker who can get an admin user with programming rights to visit a crafted URL or view an image containing that URL, such as one placed in a comment, can cause arbitrary XWiki syntax to be executed, including scripting macros running Groovy or Python code, with no authentication from the attacker and requiring user interaction from the admin.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:35:11Z"},"euvd":{"id":"EUVD-2024-1290","exploited":false,"provenance":"source"}}