CVE-2021-44521 Apache Cassandra
| Affected software | Apache Cassandra |
|---|---|
| Severity | 9.1 Critical CVSS 3.1 2 scores |
| Fixed in | 3.0.26, 3.11.12, 4.0.2 |
| Weakness | Code injection (CWE-94) |
| Published | 11 Feb 2022 |
| Updated | 17 Jun 2026 |
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.
CWE-732 · Incorrect permission assignment
Exploitation status
Working exploit published
A reviewed exploit catalogue lists ready-to-run exploit code for this CVE.
Exploitation status
- CISA KEV not listed
- VulnCheck KEV not listed
- CISA Vulnrichment no assessment published
- Indexed PoC 3 indexed Published artifacts you can open, in GitHub PoC, Nuclei; first seen 2022-02-24.
- EPSS 59% chance in 30 days A model's forecast, not a report of exploitation. Higher than 99% of all scored CVEs.
| Index | Artifact | Stars | First seen |
|---|---|---|---|
| GitHub PoC | Automated PoC of CVE-2021-44521 | 10 | 2022-02-24 |
| GitHub PoC | full PoC of CVE-2021-44521 | 1 | 2022-12-03 |
| Nuclei | Apache Cassandra Load UDF RCE |
Waratek protection
Waratek has a rule that blocks attacks on this vulnerability.
- Protection full
- Action available security rule
- Review human Researcher
- Record active
| Decided by | Manual classification of this CVE in the legacy dataset |
|---|---|
| Finding | A manual classification set this CVE's status to Protected by Waratek. |
How to mitigate CVE-2021-44521
Upgrade Apache Cassandra to a release that fixes it: 3.0.26, 3.11.12 or 4.0.2. Until you can, Waratek RASP blocks exploitation with a security rule that blocks this kind of attack. It runs inside the Java application, with no code changes.
CVSS
9.1 CRITICAL
v3.1 CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
2 metrics
CVSS
9.1 CRITICAL v3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
2 metrics
We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.
| Version | Score | Band | Vector | Assigner | Type | |
|---|---|---|---|---|---|---|
| CVSS 3.1 | 9.1 | CRITICAL | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H |
NVD | Primary | published |
| CVSS 2.0 | 8.5 | none | AV:N/AC:M/Au:S/C:C/I:C/A:C |
NVD | Primary |
Affected software and releases
Maven packages
Affected and fixed versions, from OSV.dev| Package | Introduced | Fixed | Last affected |
|---|---|---|---|
org.apache.cassandra:cassandra-all |
0 | 3.0.26 |
unbounded |
org.apache.cassandra:cassandra-all |
3.11.0 | 3.11.12 |
unbounded |
org.apache.cassandra:cassandra-all |
4.0.0 | 4.0.2 |
unbounded |
Products and versions
2 products, 6 version entries| Source | Vendor | Product | Scheme | Affected versions |
|---|---|---|---|---|
| nvd | apache | cassandra | generic | ≥ 3.0.0 and < 3.0.26 · ≥ 3.11.0 and < 3.11.12 · ≥ 4.0.0 and < 4.0.2 |
| osv | org.apache.cassandra | cassandra-all | generic | < 3.0.26 · ≥ 3.11.0 and < 3.11.12 · ≥ 4.0.0 and < 4.0.2 |
References
Timeline
Timeline
| Published | 2022-02-11 | By the CVE Program. |
|---|---|---|
| NVD record modified | 2026-06-17 | NVD's own last-modified date for this record. |