Stackurity Start free trial

CVEs / CVE-2021-44521

CVE-2021-44521: Apache Software Foundation Apache Cassandra vulnerability

Are you affected? Check your servers with Stackurity: it lists the software on each server and the vulnerabilities to fix first.

Check your servers with Stackurity Already using Stackurity? Search for CVE-2021-44521

Description

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.

The CVE record, via NVD · published 11 Feb 2022 · NVD status: Modified

Affected and fixed versions

As stated by the CVE record (from the CNA)
ProductAffectedFixed in
Apache Software Foundation Apache Cassandrafrom 3.0.0, before unspecifiedunspecified
Apache Software Foundation Apache Cassandrafrom unspecified, before 3.0.263.0.26
Apache Software Foundation Apache Cassandrafrom 3.1, before unspecifiedunspecified
Apache Software Foundation Apache Cassandrafrom unspecified, before 3.11.123.11.12
Apache Software Foundation Apache Cassandrafrom 4.0.0, before unspecifiedunspecified
Apache Software Foundation Apache Cassandrafrom unspecified, before 4.0.24.0.2
As stated by OSV
ProductAffectedFixed in
org.apache.cassandra:cassandra-all (Maven)before 3.0.263.0.26
org.apache.cassandra:cassandra-all (Maven)from 3.11.0, before 3.11.123.11.12
org.apache.cassandra:cassandra-all (Maven)from 4.0.0, before 4.0.24.0.2

Package versions from GHSA-8ffc-79xg-29w8.

Exploitation

Not in the CISA Known Exploited Vulnerabilities catalog as of 30 Oct 2026.

Severity

CVSS 3.19.1 critical
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
Scored by NVD
WeaknessCWE-94, CWE-732

References

Sources

Exploitation status from the CISA Known Exploited Vulnerabilities catalog. EPSS scores from FIRST. Descriptions, severity and references from the National Vulnerability Database. Open-source package versions from OSV (CC-BY 4.0). Text is shown as each source states it; Stackurity does not edit it. Check the vendor's advisory before acting.

This product uses data from the NVD API but is not endorsed or certified by the NVD.