Vulnerabilities / CVE-2021-44521

critical

CVE-2021-44521

cassandra: RCE for scripted UDFs

Published Modified CWE 94, 732
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
GHSA9.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
Red Hat9.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
Bitnami9.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

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

SourcePackageFixed in
bitnami::Bitnami Vulnerability Databasecassandra3.0.26, 3.11.12, 4.0.2
maven::GitHub Security Advisory Mavenorg.apache.cassandra:cassandra-all3.0.26, 3.11.12, 4.0.2
Photon OS 1.0cassandra3.11.12-1.ph1
Photon OS 2.0cassandra3.11.12-1.ph2
Photon OS 3.0cassandra3.11.12-1.ph3
Photon OS 4.0cassandra4.0.3-1.ph4
chainguarddruid35.0.1-r1
echo maven::Echo OSVorg.apache.cassandra:cassandra-all3.0.26
Red Hatopendaylight, puppet-cassandrano fix listed
wolfidruid35.0.1-r1
Show all 11 entries from 10 sources
SourcePackageFixed in
bitnami::Bitnami Vulnerability Databasecassandra3.0.26, 3.11.12, 4.0.2
maven::GitHub Security Advisory Mavenorg.apache.cassandra:cassandra-all3.0.26, 3.11.12, 4.0.2
Photon OS 1.0cassandra3.11.12-1.ph1
Photon OS 2.0cassandra3.11.12-1.ph2
Photon OS 3.0cassandra3.11.12-1.ph3
Photon OS 4.0cassandra4.0.3-1.ph4
chainguarddruid35.0.1-r1
echo maven::Echo OSVorg.apache.cassandra:cassandra-all3.0.26
Red Hatopendaylightno fix listed
Red Hatpuppet-cassandrano fix listed
wolfidruid35.0.1-r1

References

All 13 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.