Remote code executionin Apache Cassandra.
Weaponized: a Nuclei exploit is public.
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.
- 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
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 2 Dec 2021CVE ID reserved by apache.
- 11 Feb 2022Published in the CVE List.
- 24 Feb 2022First public proof of concept on GitHub.
- 4 Aug 2024CVE record last updated.
Attack code anyone can find
Exploit maturity: Weaponized (Nuclei).
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.
Report a link
Other Cassandra vulnerabilities
Same weakness: Code injection
- lists.apache.org x_refsource_MISC
- www.openwall.com mailing-list, x_refsource_MLIST
- jfrog.com x_refsource_MISC
- security.netapp.com x_refsource_CONFIRM
Patchminder. CVE-2021-44521: Remote code execution in Apache Cassandra. https://patchminder.com/cve/cve-2021-44521/ (accessed 5 December 2026).