CVEs / CVE-2021-44521
CVE-2021-44521: Apache Software Foundation Apache Cassandra vulnerability
- critical 9.1 CVSS 3.1 (NVD)
- EPSS 58.8% chance of exploitation in the next 30 days, higher than 99% of CVEs (1 Nov 2026)
- Last changed at its sources
Are you affected? Check your servers with Stackurity: it lists the software on each server and the vulnerabilities to fix first.
Check your servers with Stackurity Already using Stackurity? Search for CVE-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 and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| Apache Software Foundation Apache Cassandra | from 3.0.0, before unspecified | unspecified |
| Apache Software Foundation Apache Cassandra | from unspecified, before 3.0.26 | 3.0.26 |
| Apache Software Foundation Apache Cassandra | from 3.1, before unspecified | unspecified |
| Apache Software Foundation Apache Cassandra | from unspecified, before 3.11.12 | 3.11.12 |
| Apache Software Foundation Apache Cassandra | from 4.0.0, before unspecified | unspecified |
| Apache Software Foundation Apache Cassandra | from unspecified, before 4.0.2 | 4.0.2 |
| Product | Affected | Fixed in |
|---|---|---|
| org.apache.cassandra:cassandra-all (Maven) | before 3.0.26 | 3.0.26 |
| org.apache.cassandra:cassandra-all (Maven) | from 3.11.0, before 3.11.12 | 3.11.12 |
| org.apache.cassandra:cassandra-all (Maven) | from 4.0.0, before 4.0.2 | 4.0.2 |
Package versions from GHSA-8ffc-79xg-29w8.
Exploitation
Not in the CISA Known Exploited Vulnerabilities catalog as of 30 Oct 2026.
Severity
| CVSS 3.1 | 9.1 criticalCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:HScored by NVD |
|---|---|
| Weakness | CWE-94, CWE-732 |
References
- CVE-2021-44521 on NVD
- CVE-2021-44521 on OSV
- http://www.openwall.com/lists/oss-security/2022/02/11/4 Mailing List, Third Party Advisory
- https://jfrog.com/blog/cve-2021-44521-exploiting-apache-cassandra-user-defined-functions-for-remote-code-execution/ Exploit, Mitigation, Third Party Advisory
- https://lists.apache.org/thread/y4nb9s4co34j8hdfmrshyl09lokm7356 Issue Tracking, Mailing List, Vendor Advisory
- https://security.netapp.com/advisory/ntap-20220225-0001/ Third Party Advisory
Sources
Exploitation status from the CISA Known Exploited Vulnerabilities catalog. EPSS scores from FIRST. Descriptions, severity and references from the National Vulnerability Database. Open-source package versions from OSV (CC-BY 4.0). Text is shown as each source states it; Stackurity does not edit it. Check the vendor's advisory before acting.
This product uses data from the NVD API but is not endorsed or certified by the NVD.