9.1critical
Remote code execution for scripted UDFs
- Severity
- 9.1critical CVSS:3.1 by NVD
- Exploit likelihood
- 58.9% (higher than 99% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- apache
- Also known as
- GHSA-8ffc-79xg-29w8BIT-CASSANDRA-2021-44521
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
| Product or package | Versions | Reported by |
|---|---|---|
| Apache Software Foundation Apache Cassandra | from 3.0.0 before unspecified, from unspecified before 3.0.26, from 3.1 before unspecified, from unspecified before 3.11.12, from 4.0.0 before unspecified, from unspecified before 4.0.2 | CVE List |
| org.apache.cassandra:cassandra-all (Maven) | before 3.0.26, from 3.11.0 before 3.11.12, from 4.0.0 before 4.0.2 | GitHub Advisory Database |
| apache cassandra | from 3.0.0 before 3.0.26, from 3.11.0 before 3.11.12, from 4.0.0 before 4.0.2 | NVD |
| cassandra (Bitnami) | from 3.0.0 before 3.0.26, from 3.11.0 before 3.11.12, from 4.0.0 before 4.0.2 | Bitnami Vulnerability Database |
All scores
| GitHub | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H |
| NVD | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H |
| NVD | 8.5high CVSS:2.0 | AV:N/AC:M/Au:S/C:C/I:C/A:C |
| Bitnami Vulnerability Database | critical rating |
Classification
What each source says
CVE List
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.
NVD (es)
Cuando es ejecutado Apache Cassandra con la siguiente configuración: enable_user_defined_functions: true enable_scripted_user_defined_functions: true enable_user_defined_functions_threads: false es posible que un atacante ejecute código arbitrario en el host. El atacante necesitaría tener suficientes permisos para crear funciones definidas por el usuario en el cluster para poder explotar esto. Tenga en cuenta que esta configuración está documentada como no segura, y seguirá siendo considerada no segura después de esta CVE
References
| https://lists.apache.org/thread/y4nb9s4co34j8hdfmrshyl09lokm7356 | advisory, issue-tracking, mailing-list, vendor-advisory, web | |
| http://www.openwall.com/lists/oss-security/2022/02/11/4 | advisory, mailing-list, third-party-advisory, web | |
| https://jfrog.com/blog/cve-2021-44521-exploiting-apache-cassandra-user-defined-functions-for-remote-code-execution/ | advisory, exploit, mitigation, third-party-advisory | |
| https://security.netapp.com/advisory/ntap-20220225-0001/ | advisory, third-party-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-44521 | advisory, web | |
| 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://security.netapp.com/advisory/ntap-20220225-0001 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-44521 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-8ffc-79xg-29w8 changed 2023-12-06 | CC-BY-4.0 |
| NVD | CVE-2021-44521 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-CASSANDRA-2021-44521 changed 2026-09-08 | Apache-2.0 |