Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2024-21650

CVE-2024-21650: XWiki Platform RCE Vulnerability

CVE-2024-21650 is a remote code execution flaw in XWiki Platform that allows attackers to execute arbitrary code through malicious user registration payloads. This article covers technical details, affected versions, and mitigation.

Published: April 8, 2026

CVE-2024-21650 Overview

CVE-2024-21650 is a critical remote code execution (RCE) vulnerability affecting XWiki Platform, a generic wiki platform offering runtime services for applications built on top of it. The vulnerability exists in the user registration feature, where an attacker can execute arbitrary code by crafting malicious payloads in the "first name" or "last name" fields during user registration. This flaw impacts all XWiki installations that have user registration enabled for guests, making it a significant threat to exposed instances.

Critical Impact

Unauthenticated attackers can achieve remote code execution by injecting malicious payloads through the user registration form, potentially leading to complete system compromise.

Affected Products

  • XWiki Platform versions prior to 14.10.17
  • XWiki Platform versions 15.0 through 15.5.2
  • XWiki Platform versions 15.6 through 15.7

Discovery Timeline

  • 2024-01-08 - CVE CVE-2024-21650 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2024-21650

Vulnerability Analysis

This vulnerability is classified under CWE-94 (Improper Control of Generation of Code) and CWE-95 (Improper Neutralization of Directives in Dynamically Evaluated Code). The flaw resides in how XWiki processes user-supplied input during the registration process, specifically in the registration success message displayed after a user registers.

The vulnerable code directly interpolates user-provided first name and last name values into an XWiki macro without proper sanitization. Since XWiki uses a custom rendering engine that supports various macro syntaxes including Velocity scripting, an attacker can inject malicious Velocity or Groovy code through these registration fields. When the registration success message is rendered, the injected code is executed with the privileges of the XWiki application.

Root Cause

The root cause is insufficient input sanitization in the RegistrationConfig.xml file. The original implementation directly embedded $request.get('register_first_name') and $request.get('register_last_name') values into the registration success message template without escaping or sanitizing the input. This allowed attackers to inject XWiki rendering syntax that would be interpreted and executed server-side.

Attack Vector

The attack is network-based and requires no authentication or user interaction. An attacker simply needs to access the XWiki user registration page (available to guests by default) and submit a registration form with malicious code in the first name or last name fields. The payload executes when the success message is rendered, giving the attacker the ability to run arbitrary code on the server.

text
// Vulnerable code (before patch) - Source: GitHub Commit
<registrationSuccessMessage>#set($fullName = "$request.get('register_first_name') $request.get('register_last_name')")
{{info}}$services.localization.render('core.register.successful', [["$fullName>>$userSpace$userName"]], $userName){{/info}}</registrationSuccessMessage>

Source: GitHub Commit Update

Detection Methods for CVE-2024-21650

Indicators of Compromise

  • Unusual user registration entries with XWiki macro syntax (e.g., {{/html}}, {{groovy}}, {{velocity}}) in name fields
  • Server logs showing registration attempts with special characters or scripting keywords in the first/last name parameters
  • Unexpected process executions or network connections originating from the XWiki application server

Detection Strategies

  • Monitor web application logs for registration requests containing XWiki wiki syntax such as {{, }}, $services, or $xwiki in form fields
  • Implement web application firewall (WAF) rules to detect and block payloads containing XWiki macro patterns in POST parameters
  • Review user database for accounts with suspicious names containing scripting syntax or encoded characters

Monitoring Recommendations

  • Enable verbose logging for the XWiki registration module to capture all registration attempts and their parameters
  • Configure alerts for any server-side code execution indicators following user registration events
  • Implement file integrity monitoring on XWiki configuration and content directories to detect unauthorized modifications

How to Mitigate CVE-2024-21650

Immediate Actions Required

  • Upgrade XWiki Platform to version 14.10.17, 15.5.3, or 15.8 RC1 or later immediately
  • If immediate patching is not possible, disable guest user registration until the patch can be applied
  • Review recent user registrations for signs of exploitation attempts

Patch Information

XWiki has released security patches addressing this vulnerability. The fix modifies how user-provided names are handled in the registration success message by properly escaping the output and using safe rendering methods.

text
// Patched code - Source: GitHub Commit
<registrationSuccessMessage>#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}}</registrationSuccessMessage>

Source: GitHub Commit Update

For additional details, refer to the GitHub Security Advisory and XWiki Jira Issue XWIKI-21173.

Workarounds

  • Disable user registration for guests by setting requireCaptcha and removing guest registration privileges in XWiki administration settings
  • Implement network-level access controls to restrict access to the registration endpoint from untrusted sources
  • Deploy a web application firewall with rules to filter XWiki macro syntax from user input fields
bash
# Configuration example - Disable guest registration in xwiki.cfg
xwiki.authentication.guest=0
# Or restrict registration to authenticated users only in Administration > Users > Registration

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechXwiki

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability92.54%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-95

  • CWE-94
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory

  • XWiki Jira Issue XWIKI-21173
  • Related CVEs
  • CVE-2026-33229: XWiki Platform RCE Vulnerability

  • CVE-2025-24893: XWiki Platform RCE Vulnerability

  • CVE-2024-31982: XWiki Platform RCE Vulnerability

  • CVE-2025-55730: XWiki Remote Macros RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English