CVE-2021-44521: 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...
Critical CVSS 9.1
- CVE id
- CVE-2021-44521
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Apache Cassandra Runtimes and servers |
>= 3.0.0, < 3.0.26 >= 3.11.0, < 3.11.12 >= 4.0.0, < 4.0.2 |
3.0.26, 3.11.12, 4.0.2 |
How to fix it
Upgrade Apache Cassandra to the fixed release of the line you run: 3.0.26, 3.11.12, 4.0.2.
nodetool version
- Install the patched Cassandra release of your series (the cassandra image tag) and restart the nodes.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
When running Apache Cassandra with the following configuration: enableuserdefinedfunctions: true enablescripteduserdefinedfunctions: true enableuserdefinedfunctions_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.
References
- CVE-2021-44521 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2021-44521
- Web: https://jfrog.com/blog/cve-2021-44521-exploiting-apache-cassandra-user-defined-functions-for-remote-code-execution/
- Web: https://lists.apache.org/thread/y4nb9s4co34j8hdfmrshyl09lokm7356
- Web: https://security.netapp.com/advisory/ntap-20220225-0001/
- Web: https://jfrog.com/blog/cve-2021-44521-exploiting-apache-cassandra-user-defined-functions-for-remote-code-execution/
- Web: https://lists.apache.org/thread/y4nb9s4co34j8hdfmrshyl09lokm7356
- Web: https://security.netapp.com/advisory/ntap-20220225-0001/
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.