Vulnerability · Published Feb 11, 2022 · Assigned by apache

CVE-2021-44521Remote code execution for scripted UDFs

Critical 9.1

In plain English

A critical-severity code injection in Apache Cassandra from Apache Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 58.9% (higher than 99.1% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei, public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)9.1Critical
Exploit odds (30 days)58.9%top 0.9% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack tooling2Nuclei, Public PoC

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Mavenorg.apache.cassandra:cassandra-all3.0.26GHSA-8ffc-79xg-29w8
Mavenorg.apache.cassandra:cassandra-all3.11.12GHSA-8ffc-79xg-29w8
Mavenorg.apache.cassandra:cassandra-all4.0.2GHSA-8ffc-79xg-29w8

Affected products (as reported)

VendorProductVersions
Apache Software Foundation Apache Cassandra 3.0.0 – before unspecifiedunspecified – before 3.0.263.1 – before unspecifiedunspecified – before 3.11.124.0.0 – before unspecifiedunspecified – before 4.0.2

Weakness: CWE-94

References