CVE-2021-44521
CRITICAL 9.1CVSS 3.1Apache Cassandra vulnerable to Code Injection due to unsafe configuration
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.
- Published
- 11 Feb 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security@apache.org
- NVD status
- Modified
- Weakness
- CWE-732CWE-94
- Also known as
- BIT-cassandra-2021-44521GHSA-8ffc-79xg-29w8
- Sources
- NVDJSONOSV GHSA-8ffc-79xg-29w8JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 8.5 | AV:N/AC:M/Au:S/C:C/I:C/A:C |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | apache | cassandracpe:2.3:a:apache:cassandra:*:*:*:*:*:*:*:* |
>= 3.0.0, < 3.0.26 | 3.0.26 |
| NVD | apache | cassandracpe:2.3:a:apache:cassandra:*:*:*:*:*:*:*:* |
>= 3.11.0, < 3.11.12 | 3.11.12 |
| NVD | apache | cassandracpe:2.3:a:apache:cassandra:*:*:*:*:*:*:*:* |
>= 4.0.0, < 4.0.2 | 4.0.2 |
| OSV | Maven | org.apache.cassandra:cassandra-all | < 3.0.26 | 3.0.26 |
| OSV | Maven | org.apache.cassandra:cassandra-all | >= 3.11.0, < 3.11.12 | 3.11.12 |
| OSV | Maven | org.apache.cassandra:cassandra-all | >= 4.0.0, < 4.0.2 | 4.0.2 |
References
- http://www.openwall.com/lists/oss-security/2022/02/11/4 · Mailing List, Third Party Advisory, WEB
- https://jfrog.com/blog/cve-2021-44521-exploiting-apache-cassandra-user-defined-functions-for-remote-code-execution/ · Exploit, Mitigation, Third Party Advisory, WEB
- https://lists.apache.org/thread/y4nb9s4co34j8hdfmrshyl09lokm7356 · Issue Tracking, Mailing List, Vendor Advisory, WEB
- https://security.netapp.com/advisory/ntap-20220225-0001/ · Third Party Advisory, WEB
- 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
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 11 Feb 2022)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 12 Feb 2022)