CVE-2021-44521
JSON

9.1critical

Remote code execution for scripted UDFs

Severity
9.1critical CVSS:3.1 by NVD
Exploit likelihood
58.9% (higher than 99% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
apache
Also known as
GHSA-8ffc-79xg-29w8BIT-CASSANDRA-2021-44521

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

Product or packageVersionsReported by
Apache Software Foundation Apache Cassandrafrom 3.0.0 before unspecified, from unspecified before 3.0.26, from 3.1 before unspecified, from unspecified before 3.11.12, from 4.0.0 before unspecified, from unspecified before 4.0.2CVE List
org.apache.cassandra:cassandra-all (Maven)before 3.0.26, from 3.11.0 before 3.11.12, from 4.0.0 before 4.0.2GitHub Advisory Database
apache cassandrafrom 3.0.0 before 3.0.26, from 3.11.0 before 3.11.12, from 4.0.0 before 4.0.2NVD
cassandra (Bitnami)from 3.0.0 before 3.0.26, from 3.11.0 before 3.11.12, from 4.0.0 before 4.0.2Bitnami Vulnerability Database

All scores

GitHub9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
NVD9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
NVD8.5high CVSS:2.0AV:N/AC:M/Au:S/C:C/I:C/A:C
Bitnami Vulnerability Databasecritical rating

Classification

What each source says

CVE List

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.

NVD (es)

Cuando es ejecutado Apache Cassandra con la siguiente configuración: enable_user_defined_functions: true enable_scripted_user_defined_functions: true enable_user_defined_functions_threads: false es posible que un atacante ejecute código arbitrario en el host. El atacante necesitaría tener suficientes permisos para crear funciones definidas por el usuario en el cluster para poder explotar esto. Tenga en cuenta que esta configuración está documentada como no segura, y seguirá siendo considerada no segura después de esta CVE

References

https://lists.apache.org/thread/y4nb9s4co34j8hdfmrshyl09lokm7356advisory, issue-tracking, mailing-list, vendor-advisory, web
http://www.openwall.com/lists/oss-security/2022/02/11/4advisory, mailing-list, third-party-advisory, web
https://jfrog.com/blog/cve-2021-44521-exploiting-apache-cassandra-user-defined-functions-for-remote-code-execution/advisory, exploit, mitigation, third-party-advisory
https://security.netapp.com/advisory/ntap-20220225-0001/advisory, third-party-advisory
https://nvd.nist.gov/vuln/detail/CVE-2021-44521advisory, web
https://github.com/apache/cassandrapackage
https://issues.apache.org/jira/browse/CASSANDRA-17352web
https://jfrog.com/blog/cve-2021-44521-exploiting-apache-cassandra-user-defined-functions-for-remote-code-executionweb
https://security.netapp.com/advisory/ntap-20220225-0001web

Sources

SourceRecordLicence
CVE ListCVE-2021-44521 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-8ffc-79xg-29w8 changed 2023-12-06CC-BY-4.0
NVDCVE-2021-44521 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-CASSANDRA-2021-44521 changed 2026-09-08Apache-2.0