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 products
- Apache Software Foundation / Apache Cassandra3.0.0 β unspecified
- Apache Software Foundation / Apache Cassandraunspecified β 3.0.26
- Apache Software Foundation / Apache Cassandra3.1 β unspecified
- Apache Software Foundation / Apache Cassandraunspecified β 3.11.12
- Apache Software Foundation / Apache Cassandra4.0.0 β unspecified
- Apache Software Foundation / Apache Cassandraunspecified β 4.0.2
Exploits & PoCs
- nucleiApache Cassandra Load UDF RCEby Y4er
References
- MAILING_LISThttps://lists.apache.org/thread/y4nb9s4co34j8hdfmrshyl09lokm7356
- MAILING_LISThttp://www.openwall.com/lists/oss-security/2022/02/11/4
- MISChttps://jfrog.com/blog/cve-2021-44521-exploiting-apache-cassandra-user-defined-functions-for-remote-code-execution/
- MISChttps://security.netapp.com/advisory/ntap-20220225-0001/