CVE-2021-44521
publishedRemote code execution for scripted UDFs
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Apache Software Foundation | — | Apache Cassandra3.0.0 to < unspecified · unspecified to < 3.0.26 · 3.1 to < unspecified · unspecified to < 3.11.12 · 4.0.0 to < unspecified · unspecified to < 4.0.2 | Affected | Not stated | apache |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Apache Software Foundation | Apache Cassandra | 3.0.0 to < unspecified (affected · custom)unspecified to < 3.0.26 (affected · custom)3.1 to < unspecified (affected · custom)unspecified to < 3.11.12 (affected · custom)4.0.0 to < unspecified (affected · custom)unspecified to < 4.0.2 (affected · custom) | apache · cna |
Weaknesses
1- CWE-94 CWE-94 Improper Control of Generation of Code ('Code Injection')
References
4- [oss-security] 20220211 CVE-2021-44521: Apache Cassandra: Remote code execution for scripted UDFs http://www.openwall.com/lists/oss-security/2022/02/11/4
- https://jfrog.com/blog/cve-2021-44521-exploiting-apache-cassandra-user-defined-functions-for-remote-code-execution/
- https://lists.apache.org/thread/y4nb9s4co34j8hdfmrshyl09lokm7356
- https://security.netapp.com/advisory/ntap-20220225-0001/
Provider assertions
2apache · cna
Remote code execution for scripted UDFs
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 1fcaabc1200c8ff2c3d95c203be85063a83232b48bc8868f957c7f2fcd288464
- Ingested
- 23 Sep 2026, 07:56:43 UTC
- Source record
- Official CVE record