CVE-2021-44521
Apache Cassandra vulnerable to Code Injection due to unsafe configuration
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 Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.cassandra » cassandra-all | < 3.0.26>= 3.11.0, < 3.11.12>= 4.0.0, < 4.0.2 | 3.0.26, 3.11.12, 4.0.2 |
Blast radius
58% of the dependent artifacts (551) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 4,678 |
| 2 hops | 8,973 |
| 3 hops | 5,191 |
| 4 hops | 2,644 |
| 5 hops | 650 |
| 6 hops | 131 |
Most used dependents
- org.cassandraunit » cassandra-unit194 usages
- org.opennms.core.test-api » org.opennms.core.test-api.services116 usages
- org.opennms » opennms-test110 usages
- org.opennms.core.test-api » org.opennms.core.test-api.db102 usages
- org.modeshape » modeshape-jcr93 usages
- org.opennms » opennms-config91 usages
- org.hectorclient » hector-core83 usages
- org.opennms » opennms-services76 usages
- org.opennms.features.collection » org.opennms.features.collection.persistence.rrd64 usages
- com.twitter » ostrich59 usages
- org.gcube.portal » social-networking-library55 usages
- com.netflix.zuul » zuul-core55 usages
- com.spinn3r.artemis.test » artemis-test52 usages
- org.opennms.core » org.opennms.core.daemon49 usages
- org.hectorclient.wso2 » hector-core48 usages
Computed from the dependency graph of build 20261125.0317 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2021-44521 | nvd.nist.gov |
| Package | apache/cassandra | github.com |
| Web | jira/browse/CASSANDRA-17352 | issues.apache.org |
| Web | blog/cve-2021-44521-exploiting-apache-cassandra-user-defined-functions-for-remote-code-exe ... | jfrog.com |
| Web | thread/y4nb9s4co34j8hdfmrshyl09lokm7356 | lists.apache.org |
| Web | advisory/ntap-20220225-0001 | security.netapp.com |
| Web | lists/oss-security/2022/02/11/4 | openwall.com |
