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
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
| Product | Versions |
|---|---|
Apache CassandraApache Software Foundation |
|
References
- https://lists.apache.org/thread/y4nb9s4co34j8hdfmrshyl09lokm7356
- [oss-security] 20220211 CVE-2021-44521: Apache Cassandra: Remote code execution for scripted UDFsmailing-list
- https://jfrog.com/blog/cve-2021-44521-exploiting-apache-cassandra-user-defined-functions-for-remote-code-execution/
- https://security.netapp.com/advisory/ntap-20220225-0001/
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.