Vulnerability · Published Feb 11, 2022 · Assigned by apache
CVE-2021-44521Remote code execution for scripted UDFs
Critical 9.1
In plain English
A critical-severity code injection in Apache Cassandra from Apache Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 58.9% (higher than 99.1% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei, public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.apache.cassandra:cassandra-all | 3.0.26 | GHSA-8ffc-79xg-29w8 |
| Maven | org.apache.cassandra:cassandra-all | 3.11.12 | GHSA-8ffc-79xg-29w8 |
| Maven | org.apache.cassandra:cassandra-all | 4.0.2 | GHSA-8ffc-79xg-29w8 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Apache Software Foundation | Apache Cassandra | 3.0.0 – before unspecifiedunspecified – before 3.0.263.1 – before unspecifiedunspecified – before 3.11.124.0.0 – before unspecifiedunspecified – before 4.0.2 |
Weakness: CWE-94
References
- https://lists.apache.org/thread/y4nb9s4co34j8hdfmrshyl09lokm7356 x_refsource_MISC
- [oss-security] 20220211 CVE-2021-44521: Apache Cassandra: Remote code execution for scripted UDFs mailing-list, x_refsource_MLIST
- https://jfrog.com/blog/cve-2021-44521-exploiting-apache-cassandra-user-defined-functions-for-remote-code-execution/ x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20220225-0001/ x_refsource_CONFIRM