CVE-2021-44521
N/A
Summary
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 Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| Apache Software Foundation | Apache Cassandra | 3.0.0 < unspecified | affected |
| Apache Software Foundation | Apache Cassandra | unspecified < 3.0.26 | affected |
| Apache Software Foundation | Apache Cassandra | 3.1 < unspecified | affected |
| Apache Software Foundation | Apache Cassandra | unspecified < 3.11.12 | affected |
| Apache Software Foundation | Apache Cassandra | 4.0.0 < unspecified | affected |
| Apache Software Foundation | Apache Cassandra | unspecified < 4.0.2 | affected |
Weaknesses
- CWE-94: CWE-94 Improper Control of Generation of Code ('Code Injection')
Workarounds
Set enable_user_defined_functions_threads: true (this is default)
or
3.0 users should upgrade to 3.0.26
3.11 users should upgrade to 3.11.12
4.0 users should upgrade to 4.0.2
ADP Enrichment
CVE Program Container
Additional References
- https://lists.apache.org/thread/y4nb9s4co34j8hdfmrshyl09lokm7356
- http://www.openwall.com/lists/oss-security/2022/02/11/4
- 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/
References
- https://lists.apache.org/thread/y4nb9s4co34j8hdfmrshyl09lokm7356
- http://www.openwall.com/lists/oss-security/2022/02/11/4
- 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/
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.