QID 376427

Date Published: 2022-02-17

QID 376427: Apache Cassandra Remote Code Execution (RCE) Vulnerability

Apache Cassandra is a free and open-source distributed NoSQL database management system designed to handle large amounts of data across many commodity servers, providing high availability with no single point of failure.

CVE-2021-44521: 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.

Affected Versions:
Cassandra 3.0.x prior to 3.0.26
Cassandra 3.11.x prior to 3.11.12
Cassandra 4.0.x prior to 4.0.2

QID Detection Logic (Authenticated):
This QID checks vulnerable version of Apache Cassandra using nodetool.

Vulnerability may allow an attacker with enough permissions to create user defined functions in the cluster to be able to exploit and execute arbitrary commands on the target system.

  • CVSS V3 rated as Critical - 9.1 severity.
  • CVSS V2 rated as Critical - 8.5 severity.
  • Solution
    Customers are advised to upgrade to Apache Cassandra 3.0.26, 3.11.12 or 4.0.2 or later versions to remediate this vulnerability.Workaround:
    Set `enable_user_defined_functions_threads: true` (this is default)

    CVEs related to QID 376427

    Software Advisories
    Advisory ID Software Component Link
    CASSANDRA-17352 URL Logo lists.apache.org/thread/y4nb9s4co34j8hdfmrshyl09lokm7356