patchminder
Weaponized · Nuclei CVE-2021-44521

Remote code executionin Apache Cassandra.

Published 11 Feb 2022 · Updated 4 Aug 2024 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Weaponized: a Nuclei exploit is public.

Attack code is public
Severity
Critical 9.1
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1
Attack likelihood
Very high
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 58.9% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed in 3.0.26, 3.11.12, 4.0.2
In plain words

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.

What to do now
  • Upgrade org.apache.cassandra:cassandra-all (Maven) to 3.0.26, 3.11.12, 4.0.2 or later, whichever matches your release line.
  • Can't upgrade today? Set `enable_user_defined_functions_threads: true` (this is default) or 3.0 users should upgrade to 3.0.26 3.11 users should upgrade to 3.11.12 4.0 users should upgrade to 4.0.2
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
Apache Cassandra
Not confirmed
Not confirmed
CVE record
org.apache.cassandra:cassandra-all (Maven)
before 3.0.26
3.0.26
GitHub advisory
org.apache.cassandra:cassandra-all (Maven)
3.11.0 to before 3.11.12
3.11.12
GitHub advisory
org.apache.cassandra:cassandra-all (Maven)
4.0.0 to before 4.0.2
4.0.2
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 2 Dec 2021
    CVE ID reserved by apache.
  2. 11 Feb 2022
    Published in the CVE List.
  3. 24 Feb 2022
    First public proof of concept on GitHub.
  4. 4 Aug 2024
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Weaponized (Nuclei).

Metasploit module
None known
Nuclei scan template
Available
Exploit-DB
None known
GitHub proof of concepts
2 repositories
NucleiApache Cassandra Load UDF RCEdetection template
GitHubno warning signs foundWoodenKlaas/CVE-2021-4452110 stars · created 24 Feb 2022Automated PoC of CVE-2021-44521
GitHubno warning signs foundYeyvo/poc-CVE-2021-445211 stars · created 3 Dec 2022full PoC of CVE-2021-44521

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other Cassandra vulnerabilities

Same weakness: Code injection

All CWE-94 vulnerabilities

References
Cite this page

Patchminder. CVE-2021-44521: Remote code execution in Apache Cassandra. https://patchminder.com/cve/cve-2021-44521/ (accessed 5 December 2026).