Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: 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 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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-44521
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 04:32 UTC · Revision 1

Source evidence

CVE-2021-44521

core-osv · Original source

Published 11 Feb 2022, 13:15 UTC

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.

osv:CVE-2021-44521
Complete source record
{
  "id": "34611f80a4877235554d71322ad20b424c678ba9d0e82d8066eec0f86068e89d",
  "url": "https://osv.dev/vulnerability/CVE-2021-44521",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-44521",
    "summary": "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.",
    "evidence": "osv:CVE-2021-44521",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2021-44521",
      "aliases": [
        "BIT-cassandra-2021-44521",
        "CVE-2021-44521",
        "GHSA-8ffc-79xg-29w8"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/apache/cassandra",
              "type": "GIT",
              "events": [
                {
                  "introduced": "96f407bce56b98cd824d18e32ee012dbb99a0286"
                },
                {
                  "fixed": "b18adcba1a808cf77576905dc2ceccd7783bdb18"
                },
                {
                  "introduced": "88dee7e9d515ad94ecf8f2309f1e6138ec79e1a2"
                },
                {
                  "fixed": "b44ff92eb2921e8d66fe2e994cb27289d3786faa"
                },
                {
                  "introduced": "902b4d31772eaa84f05ffdc1e4f4b7a66d5b17e6"
                },
                {
                  "fixed": "25012d2fec1984cc9c1a352f214eb912ca4f10f5"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:apache:cassandra:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.0.0"
                      },
                      {
                        "fixed": "3.0.26"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:apache:cassandra:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.11.0"
                      },
                      {
                        "fixed": "3.11.12"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:apache:cassandra:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.0.0"
                      },
                      {
                        "fixed": "4.0.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "cassandra-3.0.25",
            "cassandra-3.11.11",
            "cassandra-3.11.10",
            "cassandra-3.0.24",
            "cassandra-3.11.9",
            "cassandra-3.0.23",
            "cassandra-3.11.8",
            "cassandra-3.0.22",
            "cassandra-3.0.21",
            "cassandra-3.11.6",
            "cassandra-3.0.20",
            "cassandra-3.11.5",
            "cassandra-3.0.19",
            "cassandra-3.11.4",
            "cassandra-3.0.18",
            "cassandra-3.11.3",
            "cassandra-3.0.17",
            "cassandra-3.11.2",
            "cassandra-3.0.16",
            "cassandra-3.11.1",
            "cassandra-3.0.15",
            "cassandra-3.11.0",
            "cassandra-3.0.14",
            "cassandra-3.0.13",
            "cassandra-3.0.12",
            "cassandra-3.0.11",
            "cassandra-3.0.10",
            "cassandra-3.0.9",
            "cassandra-3.0.7",
            "cassandra-3.0.6",
            "cassandra-3.0.5",
            "cassandra-3.0.4",
            "cassandra-3.0.3",
            "cassandra-3.0.1",
            "cassandra-3.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-44521.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:19.659516840Z",
      "provider": "osv",
      "references": [
        "https://security.netapp.com/advisory/ntap-20220225-0001/",
        "https://lists.apache.org/thread/y4nb9s4co34j8hdfmrshyl09lokm7356",
        "https://jfrog.com/blog/cve-2021-44521-exploiting-apache-cassandra-user-defined-functions-for-remote-code-execution/"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-44521",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 430076,
  "published_at": "2022-02-11T13:15:07.907+00:00"
}