Remote code execution for scripted UDFs
CVE-2021-44521

9.1CRITICAL

Key Information:

Vendor
Apache
Vendor
CVE Published:
11 February 2022

Badges

👾 Exploit Exists🟡 Public PoC🟣 EPSS 41%

Summary

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.

Affected Version(s)

Apache Cassandra 3.0.0

Apache Cassandra < 3.0.26

Apache Cassandra 3.1

Exploit Proof of Concept (PoC)

PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.

References

EPSS Score

41% chance of being exploited in the next 30 days.

CVSS V3.1

Score:
9.1
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
High
User Interaction:
None
Scope:
Changed

Timeline

  • 🟡

    Public PoC available

  • 👾

    Exploit known to exist

  • Vulnerability published

  • Vulnerability Reserved

Credit

This issue was discovered by Omer Kaspi of the JFrog Security vulnerability research team.
.