Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.apache.cassandra/cassandra-all
  4. ›
  5. CVE-2021-44521

CVE-2021-44521: Improper Control of Generation of Code ('Code Injection')

February 11, 2022 (updated August 9, 2022)

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.

References

  • www.openwall.com/lists/oss-security/2022/02/11/4
  • jfrog.com/blog/cve-2021-44521-exploiting-apache-cassandra-user-defined-functions-for-remote-code-execution/
  • lists.apache.org/thread/y4nb9s4co34j8hdfmrshyl09lokm7356
  • nvd.nist.gov/vuln/detail/CVE-2021-44521

Code Behaviors & Features

Detect and mitigate CVE-2021-44521 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 3.0.0 before 3.0.26, all versions starting from 3.11.0 before 3.11.12, all versions starting from 4.0.0 before 4.0.2

Fixed versions

  • 3.0.26
  • 3.11.12
  • 4.0.2

Solution

Upgrade to versions 3.0.26, 3.11.12, 4.0.2 or above.

Impact 9.1 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-732: Incorrect Permission Assignment for Critical Resource

Source file

maven/org.apache.cassandra/cassandra-all/CVE-2021-44521.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:39 +0000.