CVE-2021-44521
cassandra: RCE for scripted UDFs
Overview
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.
Source: OX vulnerability database
Severity
9.1 · CRITICAL
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- High
- User interaction
- None
- Scope
- Changed
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
Weakness: CWE-94, CWE-732
Affected packages · 2
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | cassandra | >=3.0.0, <3.0.26>=3.11.0, <3.11.12>=4.0.0, <4.0.2 | 3.0.263.11.124.0.2 |
| Maven | org.apache.cassandra:cassandra-all | <3.0.26>=3.11.0, <3.11.12>=4.0.0, <4.0.2 | 3.0.263.11.124.0.2 |
Open a package to see all its vulnerabilities.
Operating systems · 4 fixes
Photon OS 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | cassandra | 4.0.3-1.ph4 |
Red Hat 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | opendaylight +1 | eol |
chainguard 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| druid | 35.0.1-r1 |
wolfi 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| druid | 35.0.1-r1 |
References
- www.openwall.com http://www.openwall.com/lists/oss-security/2022/02/11/4
- access.redhat.com https://access.redhat.com/security/cve/CVE-2021-44521
- github.com https://github.com/apache/cassandra
- issues.apache.org https://issues.apache.org/jira/browse/CASSANDRA-17352
- jfrog.com https://jfrog.com/blog/cve-2021-44521-exploiting-apache-cassandra-user-defined-functions-for-remote-code-execution
- jfrog.com https://jfrog.com/blog/cve-2021-44521-exploiting-apache-cassandra-user-defined-functions-for-remote-code-execution/
- lists.apache.org https://lists.apache.org/thread/y4nb9s4co34j8hdfmrshyl09lokm7356
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2021-44521
- security.netapp.com https://security.netapp.com/advisory/ntap-20220225-0001
- security.netapp.com https://security.netapp.com/advisory/ntap-20220225-0001/
Show all 11 references
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.