CVE-2021-44521Cassandra Code Injection
cassandra: RCE for scripted UDFs
Published Feb 11, 2022 · Updated Nov 5, 2026 · Also known as BIT-cassandra-2021-44521, CGA-c7gv-355r-g435, CGA-fhjh-rgfj-g3q2, CGA-jj49-wmxv-x4p2, CGA-pxgj-2w4q-28g2, ECHO-2550-1834-d752, GHSA-8ffc-79xg-29w8, MINI-4jjc-74vc-3j6j, MINI-mxmp-hw8g-mq2f
Key Facts
Patch immediately- CVE-2021-44521 is a critical-severity vulnerability (CVSS 9.1 v3.1) affecting Cassandra (Apache), druid (wolfi), apache-druid (minimos) and 2 more products.
- It is not listed in any known-exploited vulnerabilities catalog. No public exploit code is known.
- EPSS estimates a 59% probability of exploitation in the next 30 days.
- Fixed versions are available, including Cassandra 3.0.26, Cassandra 3.11.12, Cassandra 4.0.2.
- Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Scores
CVSS v3.1
9.1
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
EPSS (30-day exploit likelihood)
59%
Higher than 99.1% of all scored CVEs
Exploit maturity
None known
ATLAS score
33/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Not listed
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
None known
Public exploit code
0
Proof-of-concept links
In-the-wild evidence
1
Reports of active use
Advisories And Exploit References
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2021-44521
- advisoryGHSA advisory
- advisoryhttps://lists.apache.org/thread/y4nb9s4co34j8hdfmrshyl09lokm7356
- advisoryhttps://securityaffairs.co/
- advisoryhttps://securityaffairs.co/wordpress
- advisoryhttps://securityaffairs.co/wordpress/128079/breaking-news/apache-cassandra-rce.html
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 Products
16 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| CassandraApache | >= 3.0.0 | 3.0.26 |
| druidwolfi | See advisory | 35.0.1-r1 |
| apache-druidminimos | See advisory | 0 |
| apache-druid-fipsminimos | See advisory | 0 |
| org.apache.cassandra:cassandra-allmaven | See advisory | 4.0.2 |
Patched Releases
Cassandra
3.0.26, 3.11.12, 4.0.2, unspecified, 3.11.12-1.ph1, 3.11.12-1.ph2, 3.11.12-1.ph3, 4.0.3-1.ph4
druid
35.0.1-r1, 39.0.0-r0
org.apache.cassandra:cassandra-all
3.0.26, 3.11.12, 4.0.2
Timeline
Publicly disclosed
Feb 11, 2022
Last updated
Nov 5, 2026
Weakness Type
- CWE-94 Improper Control of Generation of Code
- CWE-732 Incorrect Permission Assignment for Critical Resource
References
- advisorynvd.nist.gov · CVE-2021-44521
- advisoryGHSA advisory
- advisorylists.apache.org · y4nb9s4co34j8hdfmrshyl09lokm7356
- advisorysecurityaffairs.co
- advisorysecurityaffairs.co · wordpress
FAQ
Common Questions.
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.
Affected: Cassandra (Apache) versions >= 3.0.0; druid (wolfi); apache-druid (minimos), among others. The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
No public exploit code is known.
Fixed versions are available, including Cassandra 3.0.26, Cassandra 3.11.12, Cassandra 4.0.2.
Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Is CVE-2021-44521 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo