cve.bz

CVE-2021-44521 apache cassandra: Code Injection

9.1 criticalExploit referenceEPSS 59%Fix available

Critical (9.1) in apache cassandra. EPSS 59% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.cassandra:cassandra-all 3.0.26, 3.11.12, 4.0.2.

On this page
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.

Severity

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
EPSS
59% (unchanged from 59% a week ago; 58% 30 days ago) estimated probability of exploitation activity in the next 30 days; 99th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-732 Incorrect Permission Assignment for Critical Resource
CWE-94 Improper Control of Generation of Code (Code Injection)
OWASP Top 10
A01:2025 Broken Access Control, A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-44521 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-44521?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-44521?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-44521 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Apache Software Foundation Apache Cassandrafrom 3.0.0 before unspecified
Apache Software Foundation Apache Cassandrabefore 3.0.26
Apache Software Foundation Apache Cassandrafrom 3.1 before unspecified
Apache Software Foundation Apache Cassandrabefore 3.11.12
Apache Software Foundation Apache Cassandrafrom 4.0.0 before unspecified
Apache Software Foundation Apache Cassandrabefore 4.0.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-8ffc-79xg-29w8Mavenorg.apache.cassandra:cassandra-all<3.0.263.0.26
GHSA-8ffc-79xg-29w8Mavenorg.apache.cassandra:cassandra-all>=3.11.0 <3.11.123.11.12
GHSA-8ffc-79xg-29w8Mavenorg.apache.cassandra:cassandra-all>=4.0.0 <4.0.24.0.2

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

While the CVSS is quite high this flaw has been downgraded to moderate impact for three main reasons:

* Administrator privileges are required.

* The configuration required to enable this flaw is non-default.

* Cassandra documentation describes this configuration to be unsafe. This configuration should continue to be considered unsafe even after applying the fix for this CVE.

ProductPackageStateAdvisory
A-MQ Clients 2cassandraNot affected
A-MQ Clients 2org.apache.logging.log4j-log4jNot affected
Distributed Tracing Jaeger 1distributed-tracing/jaeger-agent-rhel8Not affected
Distributed Tracing Jaeger 1distributed-tracing/jaeger-all-in-one-rhel8Not affected
Distributed Tracing Jaeger 1distributed-tracing/jaeger-collector-rhel8Not affected
Distributed Tracing Jaeger 1distributed-tracing/jaeger-es-index-cleaner-rhel8Not affected
Distributed Tracing Jaeger 1distributed-tracing/jaeger-es-rollover-rhel8Not affected
Distributed Tracing Jaeger 1distributed-tracing/jaeger-ingester-rhel8Not affected
Distributed Tracing Jaeger 1distributed-tracing/jaeger-query-rhel8Not affected
Red Hat build of QuarkuscassandraNot affected
Red Hat Data Grid 8cassandraNot affected
Red Hat Fuse 7cassandraFix deferred
Red Hat Integration Camel K 1cassandraNot affected
Red Hat Integration Camel Quarkus 1cassandraNot affected
Red Hat Integration Data Virtualisation OperatorcassandraNot affected
Red Hat JBoss Data Grid 7cassandraOut of support scope
Red Hat JBoss Data Virtualization 6cassandraOut of support scope
Red Hat JBoss Enterprise Application Platform 6cassandraOut of support scope
Red Hat JBoss Enterprise Application Platform 6jboss-onOut of support scope
Red Hat JBoss Enterprise Application Platform 7cassandraNot affected
33 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-44521.

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-732 (11).

References

Check your stackJSON