CVE-2021-44521
cassandra: RCE for scripted UDFs
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA, Bitnami, Photon OS. Rated lower by Red Hat (medium).
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 packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| bitnami::Bitnami Vulnerability Database | cassandra | 3.0.26, 3.11.12, 4.0.2 |
| maven::GitHub Security Advisory Maven | org.apache.cassandra:cassandra-all | 3.0.26, 3.11.12, 4.0.2 |
| Photon OS 1.0 | cassandra | 3.11.12-1.ph1 |
| Photon OS 2.0 | cassandra | 3.11.12-1.ph2 |
| Photon OS 3.0 | cassandra | 3.11.12-1.ph3 |
| Photon OS 4.0 | cassandra | 4.0.3-1.ph4 |
| chainguard | druid | 35.0.1-r1 |
| echo maven::Echo OSV | org.apache.cassandra:cassandra-all | 3.0.26 |
| Red Hat | opendaylight, puppet-cassandra | no fix listed |
| wolfi | druid | 35.0.1-r1 |
Show all 11 entries from 10 sources
| Source | Package | Fixed in |
|---|---|---|
| bitnami::Bitnami Vulnerability Database | cassandra | 3.0.26, 3.11.12, 4.0.2 |
| maven::GitHub Security Advisory Maven | org.apache.cassandra:cassandra-all | 3.0.26, 3.11.12, 4.0.2 |
| Photon OS 1.0 | cassandra | 3.11.12-1.ph1 |
| Photon OS 2.0 | cassandra | 3.11.12-1.ph2 |
| Photon OS 3.0 | cassandra | 3.11.12-1.ph3 |
| Photon OS 4.0 | cassandra | 4.0.3-1.ph4 |
| chainguard | druid | 35.0.1-r1 |
| echo maven::Echo OSV | org.apache.cassandra:cassandra-all | 3.0.26 |
| Red Hat | opendaylight | no fix listed |
| Red Hat | puppet-cassandra | no fix listed |
| wolfi | druid | 35.0.1-r1 |
References
- http://www.openwall.com/lists/oss-security/2022/02/11/4
- https://access.redhat.com/security/cve/CVE-2021-44521
- https://advisory.echohq.com/cve/CVE-2021-44521
- https://github.com/advisories/GHSA-8ffc-79xg-29w8
- https://github.com/apache/cassandra
- https://issues.apache.org/jira/browse/CASSANDRA-17352
- https://jfrog.com/blog/cve-2021-44521-exploiting-apache-cassandra-user-defined-functions-for-remote-code-execution
- https://jfrog.com/blog/cve-2021-44521-exploiting-apache-cassandra-user-defined-functions-for-remote-code-execution/