GitHub Advisoryadvisory · Maven

GHSA-8ffc-79xg-29w8 Apache Cassandra vulnerable to Code Injection due to unsafe configuration

CRITICAL Published 2022-02-12 Modified 2022-08-11 Official page ↗
Aliases
CVE-2021-44521
Ecosystem
Maven
Packages
org.apache.cassandra:cassandra-all
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
Weaknesses
CWE-732, CWE-94
Reviewed
2022-02-23

Affected packages

• Maven org.apache.cassandra:cassandra-all: < 3.0.26 → fixed in 3.0.26 • Maven org.apache.cassandra:cassandra-all: >= 3.11.0, < 3.11.12 → fixed in 3.11.12 • Maven org.apache.cassandra:cassandra-all: >= 4.0.0, < 4.0.2 → fixed in 4.0.2

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.

Related

Alias · CVE (1)

  • CVE-2021-44521 When running Apache Cassandra with the following configuration: enable_user_defined_functions: true enable_scripted_user_defined_functions:… vulnerability

Weakness · CWE (2)

  • CWE-732 Incorrect Permission Assignment for Critical Resource weakness
  • CWE-94 Improper Control of Generation of Code weakness

References