Apache Cassandra 3.0.0-3.0.25 - Authenticated Remote Code Execution via User Defined Functions
Title source: llmExploitation 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)
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.
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().
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.
Nuclei Templates (1)
cpe:"cpe:2.3:a:apache:cassandra"
References (4)
Scores
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H