GHSA-8ffc-79xg-29w8
Apache Cassandra vulnerable to Code Injection due to unsafe configuration
At a glance
- Published
- Updated
- CVE
- CVE-2021-44521
- Aliases
- BIT-cassandra-2021-44521
- CVSS_V3
- CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
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
| Package | Versions |
|---|---|
| Maven · org.apache.cassandra:cassandra-all | introduced 0, fixed 3.0.26 |
| Maven · org.apache.cassandra:cassandra-all | introduced 3.11.0, fixed 3.11.12 |
| Maven · org.apache.cassandra:cassandra-all | introduced 4.0.0, fixed 4.0.2 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-44521 ADVISORY
- https://github.com/apache/cassandra PACKAGE
- https://issues.apache.org/jira/browse/CASSANDRA-17352 WEB
- https://jfrog.com/blog/cve-2021-44521-exploiting-apache-cassandra-user-defined-functions-for-remote-code-execution WEB
- https://lists.apache.org/thread/y4nb9s4co34j8hdfmrshyl09lokm7356 WEB
- https://security.netapp.com/advisory/ntap-20220225-0001 WEB
- http://www.openwall.com/lists/oss-security/2022/02/11/4 WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — GitHub Advisory Database |