Remote code execution for scripted UDFs
Key facts
- Attack vector
- Network
- Privileges required
- High
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 12 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-94.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Apache | Apache Cassandra | 3.0.0 and later; before 3.0.26; 3.1 and later; before 3.11.12; 4.0.0 and later; before 4.0.2 | 3.0.26, 3.11.12, 4.0.2 | Patch available | CNA |
| — | org.apache.cassandra:cassandra-all (Maven) | before 3.0.26 | 3.0.26 | Patch available | GHSA-8ffc-79xg-29w8 |
| — | org.apache.cassandra:cassandra-all (Maven) | 3.11.0 to before 3.11.12 | 3.11.12 | Patch available | GHSA-8ffc-79xg-29w8 |
| — | org.apache.cassandra:cassandra-all (Maven) | 4.0.0 to before 4.0.2 | 4.0.2 | Patch available | GHSA-8ffc-79xg-29w8 |
- Apache Cassandra VendorApache Affected 3.0.0 and later; before 3.0.26; 3.1 and later; before 3.11.12; 4.0.0 and later; before 4.0.2 Fixed in 3.0.26, 3.11.12, 4.0.2 Patch available CNA
- org.apache.cassandra:cassandra-all (Maven) Vendor— Affected before 3.0.26 Fixed in 3.0.26 Patch available GHSA-8ffc-79xg-29w8
- org.apache.cassandra:cassandra-all (Maven) Vendor— Affected 3.11.0 to before 3.11.12 Fixed in 3.11.12 Patch available GHSA-8ffc-79xg-29w8
- org.apache.cassandra:cassandra-all (Maven) Vendor— Affected 4.0.0 to before 4.0.2 Fixed in 4.0.2 Patch available GHSA-8ffc-79xg-29w8
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:apache:cassandra:*:*:*:*:*:*:*:* | 3.0.0 to before 3.0.26; 3.11.0 to before 3.11.12; 4.0.0 to before 4.0.2 | Vulnerable | Apache |
- cpe:2.3:a:apache:cassandra:*:*:*:*:*:*:*:* Versions 3.0.0 to before 3.0.26; 3.11.0 to before 3.11.12; 4.0.0 to before 4.0.2 Vulnerable ·Apache
Remediation
- Fix · CNA Apache Cassandra (Apache Software Foundation) Fixed in 3.0.26, 3.11.12, 4.0.2
- Fix · GHSA-8ffc-79xg-29w8 org.apache.cassandra:cassandra-all (Maven) Fixed in 3.0.26 Advisory →
- Fix · GHSA-8ffc-79xg-29w8 org.apache.cassandra:cassandra-all (Maven) Fixed in 3.11.12 Advisory →
- Fix · GHSA-8ffc-79xg-29w8 org.apache.cassandra:cassandra-all (Maven) Fixed in 4.0.2 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Fuse 7 | Affected | No fix yet: Fix deferred |
| Red Hat JBoss Data Grid 7 | Affected | No fix planned: Out of support scope |
| Red Hat JBoss Data Virtualization 6 | Affected | No fix planned: Out of support scope |
| Red Hat JBoss Enterprise Application Platform 6 | Affected | No fix planned: Out of support scope |
| Red Hat JBoss Fuse 6 | Affected | No fix planned: Out of support scope |
| Red Hat JBoss Fuse Service Works 6 | Affected | No fix planned: Out of support scope |
| Red Hat JBoss Operations Network 3 | Affected | No fix planned: Out of support scope |
| Red Hat OpenShift Container Platform 3.11 | Affected | No fix planned: Out of support scope |
| Red Hat OpenStack Platform 10 (Newton) | Affected | No fix planned: Out of support scope |
| Red Hat OpenStack Platform 13 (Queens) | Affected | No fix planned: Out of support scope |
| Red Hat Openshift Container Storage 4 | Affected | No fix planned: Out of support scope |
| Red Hat Openshift Data Foundation 4 | Affected | No fix planned: Will not fix |
Not affected: 14 products
- A-MQ Clients 2
- Distributed Tracing Jaeger 1
- Red Hat Data Grid 8
- Red Hat Integration Camel K 1
- Red Hat Integration Camel Quarkus 1
- Red Hat Integration Data Virtualisation Operator
- Red Hat JBoss Enterprise Application Platform 7
- Red Hat JBoss Enterprise Application Platform Expansion Pack
- Red Hat OpenShift Application Runtimes
- Red Hat OpenShift distributed tracing 2
- Red Hat OpenStack Platform 16.1
- Red Hat OpenStack Platform 16.2
- Red Hat build of Quarkus
- streams for Apache Kafka
Timeline
- 2026-10-02 Threatist record created from CVE-2021-44521
- 2026-10-03 Alias added: GHSA-8ffc-79xg-29w8
References
Advisory 4
More Apache Cassandra vulnerabilities
- TI-2016-02888 Unspecified vulnerability in Oracle Java SE 6u113, 7u99, and 8u77; Java SE Embedded 8u77… KEVCVSS 3.1CRITICAL 9.8
- TI-2019-02233 Vulnerability in the Java SE, Java SE Embedded component of Oracle Java SE (subcomponent… CVSS 3.1MEDIUM 5.9
- TI-2018-05793 Missing authentication in Apache Cassandra CVSS 3.0CRITICAL 9.8
- TI-2016-04292 handler/ssl/OpenSslEngine.java in Netty 4.0.x before 4.0.37.Final and 4.1.x before… CVSS 3.1HIGH 7.5
- TI-2025-16827 Apache Cassandra: User with MODIFY permission on ALL KEYSPACES can escalate privileges to superuser via unsafe actions CVSS 3.1HIGH 8.8
- TI-2015-00197 The default configuration in Apache Cassandra 1.2.0 through 1.2.19, 2.0.0 through 2.0.13… CVSS 2.0HIGH 7.5
Sources
- CVE-2021-44521 · CVE Program
- CVE-2021-44521 · NVD
- FIRST EPSS
- GHSA-8ffc-79xg-29w8 · GitHub Advisory Database · CC BY 4.0
- CVE-2021-44521 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences