# CVE-2021-44521: Remote code execution for scripted UDFs

- Severity: Critical 9.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 58.9%, higher than 99% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-02-11T12:20:12.000Z
- Modified: 2026-09-08T08:45:50.913Z
- Also known as: GHSA-8ffc-79xg-29w8, BIT-CASSANDRA-2021-44521
- Weaknesses: CWE-94, CWE-732
- Assigned by: 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.

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache Cassandra: from 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.2
- 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.2
- apache cassandra: from 3.0.0 before 3.0.26; from 3.11.0 before 3.11.12; from 4.0.0 before 4.0.2
- 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.2

## Every score

- GitHub: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:2.0 8.5 High `AV:N/AC:M/Au:S/C:C/I:C/A:C`
- Bitnami Vulnerability Database: rating Critical

## References

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

## Sources

- CVE List: [CVE-2021-44521](https://www.cve.org/CVERecord?id=CVE-2021-44521), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-8ffc-79xg-29w8](https://github.com/advisories/GHSA-8ffc-79xg-29w8), CC-BY-4.0, modified 2023-12-06
- NVD: [CVE-2021-44521](https://nvd.nist.gov/vuln/detail/CVE-2021-44521), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-CASSANDRA-2021-44521](https://osv.dev/vulnerability/BIT-CASSANDRA-2021-44521), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-44521 · Whole record: https://cve.day/CVE-2021-44521.json · Rebuilt by cve.day 2026-11-25T22:24:36.685Z
