WaratekVRT Sign in

CVE-2021-44521 Apache Cassandra

Affected softwareApache Cassandra
Severity9.1 Critical CVSS 3.1 2 scores
Fixed in3.0.26, 3.11.12, 4.0.2
WeaknessCode injection (CWE-94)
Published11 Feb 2022
Updated17 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.

  • 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.

1 of these are GitHub repositories with fewer than 5 stars. They are listed for reference and don't count toward the exploitation status above.

IndexArtifactStarsFirst 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

Protected by Waratek

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.

Waratek RASP Runtime protection for Java applications

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

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.

VersionScoreBandVectorAssignerType
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
PackageIntroducedFixedLast 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
SourceVendorProductSchemeAffected 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

URLTags
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
https://jfrog.com/blog/cve-2021-44521-exploiting-apache-cassandra-user-defined-functions-for-remote-code-execution/ Exploit, Mitigation, Third Party Advisory
https://security.netapp.com/advisory/ntap-20220225-0001/ Third Party Advisory

Timeline

Published2022-02-11By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.