CVE-2021-44521

Remote code execution for scripted UDFs

State
Published
Severity
Not scored
Published
Feb 11, 2022
Updated
Aug 4, 2024
Reserved
Dec 2, 2021

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

  • CWE-94 Improper Control of Generation of Code ('Code Injection')

Affected Products

ProductVersions
Apache CassandraApache Software Foundation
  • 3.0.0 to before unspecifiedAffected
  • before 3.0.26Affected
  • 3.1 to before unspecifiedAffected
  • before 3.11.12Affected
  • 4.0.0 to before unspecifiedAffected
  • before 4.0.2Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.