Loading...
Skip to main content

CVE-2024-21650 — Vulnerability in...

CRITICAL

XWiki Remote Code Execution Vulnerability via User Registration

Published January 8, 2024Updated September 10, 2026Source: osv

Summary

### Impact 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. To reproduce, register with any username and password and the following payload as "first name": `]]{{/html}}{{async}}{{groovy}}services.logging.getLogger("attacker").error("Attack succeeded){{/groovy}}{{/async}}`. In the following page that confirms the success of the registration, the full first name should be displayed, linking to the created user. If the formatting is broken and a log message with content "ERROR attacker - Attack succeeded!" is logged, the attack succeeded. ### Patches This vulnerability has been patched in XWiki 14.10.17, 15.5.3 and 15.8 RC1. ### Workarounds In the administration of your wiki, under "Users & Rights" > "Registration" set the "Registration Successful Message" to the following code: ```velocity #set($message = $services.localization.render('core.register.successful', 'xwiki/2.1', ['USERLINK', $userName])) #set($userLink = $xwiki.getUserName("$userSpace$userName")) {{info}}$message.replace('USERLINK', "{{html clean=false}}$userLink{{/html}}"){{/info}} ``` ### References * https://jira.xwiki.org/browse/XWIKI-21173 * https://github.com/xwiki/xwiki-platform/commit/b290bfd573c6f7db6cc15a88dd4111d9fcad0d31

Advisory Timeline

  • First published January 8, 2024 (1008 days ago).
  • Last revised September 10, 2026 — 975 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update org.xwiki.platform:xwiki-platform-administration-ui to 15.8-rc-1 or later
<!-- Update pom.xml dependency version to 15.8-rc-1 for org.xwiki.platform:xwiki-platform-administration-ui -->
Maven
Update org.xwiki.platform:xwiki-platform-administration-ui to 14.10.17 or later
<!-- Update pom.xml dependency version to 14.10.17 for org.xwiki.platform:xwiki-platform-administration-ui -->
Maven
Update org.xwiki.platform:xwiki-platform-administration-ui to 15.5.3 or later
<!-- Update pom.xml dependency version to 15.5.3 for org.xwiki.platform:xwiki-platform-administration-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-administration-ui
maven
All versions15.8-rc-1
org.xwiki.platform:xwiki-platform-administration-ui
maven
All versions14.10.17
org.xwiki.platform:xwiki-platform-administration-ui
maven
All versions15.5.3

Vulnerability Classification

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

CVSS Score Breakdown

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

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

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

Frequently Asked Questions

What is CVE-2024-21650?
XWiki Remote Code Execution Vulnerability via User Registration This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 10.0/10).
How do I check if my project is affected by CVE-2024-21650?
CVE-2024-21650 affects org.xwiki.platform:xwiki-platform-administration-ui. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-21650 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
10.0

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-rj7p-xjv7-7229

Related CVEs

Check if you're affected

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

Scan Your Dependencies