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

Published Feb 11, 2022
·
Updated

When running Apache Cassandra with the following configuration: enableuserdefinedfunctions: true enablescripteduserdefinedfunctions: true enableuserdefinedfunctionsthreads: 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 Software

3 affected components
Apache Cassandra>=3.0.0<3.0.26
Apache Cassandra>=3.11.0<3.11.12
Apache Cassandra>=4.0.0<4.0.2

Event History

Feb 11, 2022
CVE Published
via MITRE·12:20 PM
Data Sourced
via MITRE·12:20 PM
DescriptionWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-44521?

CVE-2021-44521 is a vulnerability in Apache Cassandra that allows an attacker to execute arbitrary code on the host.

2

How severe is CVE-2021-44521?

CVE-2021-44521 has a severity rating of 9.1 (Critical).

3

Which versions of Apache Cassandra are affected by CVE-2021-44521?

Versions 3.0.0 to 3.0.26, 3.11.0 to 3.11.12, and 4.0.0 to 4.0.2 of Apache Cassandra are affected by CVE-2021-44521.

4

How can an attacker exploit CVE-2021-44521?

An attacker can exploit CVE-2021-44521 by taking advantage of the enable_user_defined_functions and enable_scripted_user_defined_functions configurations in Apache Cassandra.

5

Are there any references for CVE-2021-44521?

Yes, you can find more information about CVE-2021-44521 at the following references: [Reference 1](http://www.openwall.com/lists/oss-security/2022/02/11/4), [Reference 2](https://jfrog.com/blog/cve-2021-44521-exploiting-apache-cassandra-user-defined-functions-for-remote-code-execution/), [Reference 3](https://lists.apache.org/thread/y4nb9s4co34j8hdfmrshyl09lokm7356).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203