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

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2022-02-11 · Modified: 2024-08-04
- Aliases: CGA-c7gv-355r-g435, CGA-fhjh-rgfj-g3q2, CGA-jj49-wmxv-x4p2, CGA-pxgj-2w4q-28g2, GHSA-8ffc-79xg-29w8, BIT-cassandra-2021-44521
- Record: https://cvemate.com/vulnerability/CVE-2021-44521 · JSON: https://cvemate.com/vulnerability/CVE-2021-44521/json

## Description

```text
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.
```

## Signals

- CVSS: 9.1 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
- EPSS: 58.896%, percentile 99.128%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- apache software foundation apache cassandra: ≥ 3.0.0, \< unspecified \| ≥ unspecified, \< 3.0.26 \| ≥ 3.1, \< unspecified \| ≥ unspecified, \< 3.11.12 \| ≥ 4.0.0, \< unspecified \| ≥ unspecified, \< 4.0.2
- apache cassandra: ≥ 3.0.0, \< 3.0.26 \| ≥ 3.11.0, \< 3.11.12 \| ≥ 4.0.0, \< 4.0.2
- chainguard druid (Chainguard): All versions (No fix recorded) \| \< 35.0.1-r1 \| \< 39.0.0-r0
- wolfi druid (Wolfi): All versions (No fix recorded) \| \< 35.0.1-r1 \| \< 39.0.0-r0
- org.apache.cassandra cassandra-all (Maven): \< 3.0.26 \| ≥ 3.11.0, \< 3.11.12 \| ≥ 4.0.0, \< 4.0.2

## References

- <https://lists.apache.org/thread/y4nb9s4co34j8hdfmrshyl09lokm7356>
- <http://www.openwall.com/lists/oss-security/2022/02/11/4>
- <https://jfrog.com/blog/cve-2021-44521-exploiting-apache-cassandra-user-defined-functions-for-remote-code-execution/>
- <https://security.netapp.com/advisory/ntap-20220225-0001/>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-44521>
- <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://security.netapp.com/advisory/ntap-20220225-0001>

---

Data as of 2026-12-05T04:57:33.302Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
