CVE-2024-21650
CRITICALCVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Lifecycle Timeline
4Tags
Description
XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. XWiki is vulnerable to a remote code execution (RCE) attack through its user registration feature. This issue allows an attacker to execute arbitrary code by crafting malicious payloads in the "first name" or "last name" fields during user registration. This impacts all installations that have user registration enabled for guests. This vulnerability has been patched in XWiki 14.10.17, 15.5.3 and 15.8 RC1.
Analysis
XWiki Platform prior to specific patched versions contains a CVSS 10.0 remote code execution vulnerability through the user registration form. Attackers inject Groovy code into the first name or last name fields, which is executed server-side when the user profile page is rendered.
Technical Context
XWiki renders user profile pages using its own scripting engine that supports Groovy, Velocity, and Python. The registration form stores first/last name values without sanitizing XWiki macro syntax. When the newly created user's profile page is rendered, any embedded {{groovy}} macros execute with programming rights, allowing arbitrary Java/Groovy code execution on the server.
Affected Products
['XWiki Platform < 14.10.20', 'XWiki Platform < 15.5.4', 'XWiki Platform < 15.10-rc-1']
Remediation
Update XWiki to 14.10.20, 15.5.4, or 15.10-rc-1. If immediate patching is not possible, disable user self-registration. Restrict Groovy scripting rights to trusted administrators only. Monitor user profile pages for suspicious macro content.
Priority Score
Share
External POC / Exploit Code
Leaving vuln.today