The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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-2021-44521

CVE-2021-44521: Apache Cassandra RCE Vulnerability

CVE-2021-44521 is a remote code execution flaw in Apache Cassandra allowing attackers to execute arbitrary code on the host when unsafe UDF configurations are enabled. This article covers technical details, affected versions, impact, and mitigation steps.

Published: February 25, 2026

CVE-2021-44521 Overview

CVE-2021-44521 is a critical remote code execution vulnerability in Apache Cassandra that allows attackers to execute arbitrary code on the host system. The vulnerability exists when Apache Cassandra is configured with a specific combination of User-Defined Functions (UDF) settings that bypass security sandboxing, enabling malicious code execution through crafted UDF payloads.

Critical Impact

An authenticated attacker with permissions to create user-defined functions can escape the Cassandra security sandbox and execute arbitrary code on the underlying host system, potentially leading to complete system compromise.

Affected Products

  • Apache Cassandra (multiple versions with vulnerable UDF configuration)
  • Systems running Cassandra with enable_user_defined_functions: true
  • Systems running Cassandra with enable_scripted_user_defined_functions: true and enable_user_defined_functions_threads: false

Discovery Timeline

  • 2022-02-11 - CVE-2021-44521 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-44521

Vulnerability Analysis

This vulnerability stems from a code injection flaw (CWE-94) combined with incorrect permission assignment for critical resources (CWE-732) in Apache Cassandra's User-Defined Functions feature. When Cassandra is configured to run scripted UDFs without thread isolation (enable_user_defined_functions_threads: false), the security sandbox designed to restrict UDF execution can be bypassed.

The attack requires network access to the Cassandra cluster and high-level privileges (the ability to create UDFs), but once exploited, the impact extends beyond the Cassandra instance to the underlying host system. This scope change characteristic makes the vulnerability particularly dangerous, as it allows an attacker to pivot from database access to full system control.

The configuration combination that enables exploitation is explicitly documented by Apache as unsafe, yet real-world deployments may still use this configuration for performance reasons or misconfiguration.

Root Cause

The root cause lies in the interaction between Cassandra's UDF execution environment and the Java Security Manager when thread isolation is disabled. When enable_user_defined_functions_threads is set to false, UDFs execute in the same thread context as the Cassandra daemon, allowing malicious code to escape the intended sandbox restrictions. This improper permission assignment enables attackers to leverage Java reflection and other techniques to break out of the restricted execution environment.

Attack Vector

The attack is executed over the network against an exposed Cassandra cluster. An attacker must first authenticate to the cluster and have sufficient permissions to create user-defined functions. Once these prerequisites are met, the attacker can craft a malicious UDF that exploits the sandbox escape vulnerability.

The exploitation technique involves creating a scripted UDF (typically using JavaScript or another supported scripting language) that leverages the weakened security context to access Java classes and methods normally restricted by the sandbox. When the UDF is executed, the attacker gains the ability to run arbitrary commands on the host system with the privileges of the Cassandra process.

Detailed technical analysis of the exploitation technique is available in the JFrog Blog on CVE-2021-44521.

Detection Methods for CVE-2021-44521

Indicators of Compromise

  • Unexpected or suspicious user-defined functions created in Cassandra keyspaces
  • Unusual process spawning from the Cassandra daemon process
  • Network connections initiated from the Cassandra server to unexpected destinations
  • Modifications to system files or configurations from the Cassandra user context

Detection Strategies

  • Audit Cassandra configuration files for the vulnerable configuration combination (enable_user_defined_functions: true, enable_scripted_user_defined_functions: true, enable_user_defined_functions_threads: false)
  • Monitor CQL queries for CREATE FUNCTION statements from unauthorized users or containing suspicious code patterns
  • Implement host-based intrusion detection to identify unusual behavior from the Cassandra process
  • Review Cassandra system tables for recently created or modified UDFs

Monitoring Recommendations

  • Enable detailed audit logging for all DDL operations in Cassandra clusters
  • Configure alerting on new UDF creation events
  • Monitor system calls made by the Cassandra process using tools like auditd or eBPF
  • Implement network segmentation monitoring to detect lateral movement attempts from Cassandra hosts

How to Mitigate CVE-2021-44521

Immediate Actions Required

  • Review and modify Cassandra configuration to disable the vulnerable feature combination
  • Set enable_user_defined_functions_threads: true if UDFs are required
  • Audit existing user-defined functions for potentially malicious code
  • Restrict permissions for creating UDFs to only trusted administrators

Patch Information

Apache has addressed this vulnerability in updated versions of Cassandra. Administrators should upgrade to the latest patched version available for their deployment. Refer to the Apache Thread on Security for official guidance on affected versions and patches. Additional vendor-specific guidance is available in the NetApp Security Advisory NTAP-20220225-0001.

Workarounds

  • Disable scripted user-defined functions entirely by setting enable_scripted_user_defined_functions: false
  • If UDFs are required, ensure enable_user_defined_functions_threads: true to maintain thread isolation
  • Implement strict access controls limiting who can create UDFs in the cluster
  • Deploy network segmentation to limit exposure of Cassandra CQL ports
bash
# Secure Cassandra configuration example (cassandra.yaml)
# Disable scripted UDFs entirely (most secure)
enable_user_defined_functions: false
enable_scripted_user_defined_functions: false

# OR if UDFs are required, ensure thread isolation is enabled
enable_user_defined_functions: true
enable_scripted_user_defined_functions: true
enable_user_defined_functions_threads: true

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechApache Cassandra

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability91.53%

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

  • CWE-732
  • Technical References
  • Openwall Security Discussion

  • NetApp Security Advisory NTAP-20220225-0001
  • Vendor Resources
  • JFrog Blog on CVE-2021-44521

  • Apache Thread on Security
  • Related CVEs
  • CVE-2026-32588: Apache Cassandra DoS Vulnerability

  • CVE-2026-27315: Apache Cassandra Information Disclosure

  • CVE-2026-27314: Apache Cassandra Privilege Escalation Flaw

  • CVE-2025-23015: Apache Cassandra Privilege Escalation
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