CRITICAL 9.1

CVE-2021-44521

Apache Cassandra vulnerable to Code Injection due to unsafe configuration

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 Maven artifacts (1)

ArtifactAffected versionsFixed in
org.apache.cassandra » cassandra-all
< 3.0.26>= 3.11.0, < 3.11.12>= 4.0.0, < 4.0.2
3.0.26, 3.11.12, 4.0.2

Blast radius

1affected artifacts
215affected versions
945dependent artifacts (est.)
22,267dependent versions

58% of the dependent artifacts (551) still pull an affected version in their latest release.

DepthDependent versions
Direct
4,678
2 hops
8,973
3 hops
5,191
4 hops
2,644
5 hops
650
6 hops
131

Most used dependents

Computed from the dependency graph of build 20261125.0317 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.