CVE-2021-44521

CRITICAL NUCLEI LAB

Apache Cassandra 3.0.0-3.0.25 - Authenticated Remote Code Execution via User Defined Functions

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 3 public exploits for CVE-2021-44521. PoCs published by Yeyvo. A Nuclei detection template is also available.

AI-analyzed exploit summary This PoC exploits CVE-2021-44521, a remote code execution vulnerability in Apache Cassandra via user-defined functions (UDFs). It leverages JavaScript UDFs to bypass security restrictions and execute arbitrary commands on the target system.

Description

When running Apache Cassandra with the following configuration: enable_user_defined_functions: true enable_scripted_user_defined_functions: true enable_user_defined_functions_threads: false it is possible for an attacker to execute arbitrary code on the host. The attacker would need to have enough permissions to create user defined functions in the cluster to be able to exploit this. Note that this configuration is documented as unsafe, and will continue to be considered unsafe after this CVE.

Exploits (3)

nomisec WORKING POC 1 stars
by Yeyvo · poc
https://github.com/Yeyvo/poc-CVE-2021-44521

This PoC exploits CVE-2021-44521, a remote code execution vulnerability in Apache Cassandra via user-defined functions (UDFs). It leverages JavaScript UDFs to bypass security restrictions and execute arbitrary commands on the target system.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Apache Cassandra (versions affected by CVE-2021-44521)
No auth needed
Prerequisites: Network access to Cassandra instance · Cassandra-driver Python library installed
devstral-2 · analyzed Feb 16, 2026 Full analysis →
inthewild WORKING POC
poc
https://github.com/woodenklaas/cve-2021-44521

This repository contains a functional Python exploit for CVE-2021-44521, which leverages Apache Cassandra's user-defined functions (UDFs) to achieve remote code execution (RCE) via JavaScript injection. The PoC creates a malicious UDF that disables the Java Security Manager and executes arbitrary commands via Runtime.exec().

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Apache Cassandra (versions affected by CVE-2021-44521)
Auth required
Prerequisites: Cassandra instance with UDFs enabled · Network access to the Cassandra server · Valid credentials or unauthenticated access if misconfigured
devstral-2 · analyzed Feb 23, 2026 Full analysis →
inthewild WORKING POC
poc
https://github.com/qhpix/cve-2021-44521

This repository contains a functional Python exploit for CVE-2021-44521, which leverages Apache Cassandra's user-defined functions (UDFs) to achieve remote code execution (RCE) via JavaScript injection. The PoC creates a malicious UDF that bypasses security restrictions and executes arbitrary commands on the target system.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Apache Cassandra (versions affected by CVE-2021-44521)
No auth needed
Prerequisites: Cassandra instance accessible · Cassandra-driver Python library installed · At least one row in a table (exploit checks for this)
devstral-2 · analyzed Feb 23, 2026 Full analysis →

Nuclei Templates (1)

Apache Cassandra Load UDF RCE
CRITICALby Y4er
Shodan: cpe:"cpe:2.3:a:apache:cassandra"

References (4)

Core 4
Core References
Issue Tracking, Mailing List, Vendor Advisory x_refsource_misc
https://lists.apache.org/thread/y4nb9s4co34j8hdfmrshyl09lokm7356
Mailing List, Third Party Advisory mailing-list x_refsource_mlist
http://www.openwall.com/lists/oss-security/2022/02/11/4
Third Party Advisory x_refsource_confirm
https://security.netapp.com/advisory/ntap-20220225-0001/

Scores

CVSS v3 9.1
EPSS 0.9101
EPSS Percentile 99.7%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

Details

CWE
CWE-94 CWE-732
Status published
Products (2)
apache/cassandra 3.0.0 - 3.0.26
org.apache.cassandra/cassandra-all 0 - 3.0.26Maven
Published Feb 11, 2022
Tracked Since Feb 18, 2026