← Vulnerability feed

Vulnerability record · CVE-2021-44521 · published 11 February 2022

CVE-2021-44521: Apache Cassandra user-defined functions allow remote code execution

Apache · Cassandra

Apache Cassandra can execute arbitrary code on the host when user-defined functions, scripted UDFs, and non-threaded UDF execution are all enabled. The configuration is documented as unsafe, but clusters that enable it expose a code injection path through the UDF feature.

9.1 CVSS 3.1 Critical EPSS 58% · top 0.9% CWE-94 · Code injectionCWE-732 · Incorrect permission assignment
9.1CVSS 3.1 base score, v2 8.5
58%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
8References, 2 tagged exploit
17 Jun 2026Last modified by NVD

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.

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

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 19 September 2026. Confidence: high.

high priorityCritical CVSS and high EPSS with public exploit detail, but exploitation requires an authenticated user with UDF creation rights and a non-default unsafe configuration.

What it is

Apache Cassandra can execute arbitrary code on the host when user-defined functions, scripted UDFs, and non-threaded UDF execution are all enabled. The configuration is documented as unsafe, but clusters that enable it expose a code injection path through the UDF feature.

Impact

An attacker with permission to create user-defined functions can run arbitrary code on the Cassandra host, leading to full compromise of the node and potentially the cluster.

Attack surface

Reachable over the network through the Cassandra interface by an authenticated user holding privileges to create user-defined functions; no user interaction is required. The flaw only applies when the three unsafe UDF settings are enabled.

Exploitation

Not listed in CISA KEV, but EPSS is high (0.55, ~99th percentile) and public references include an exploit write-up, indicating active interest and available exploitation detail.

What to do

  • Upgrade to a patched Apache Cassandra release per the vendor advisory.
  • Disable enable_scripted_user_defined_functions and enable_user_defined_functions where UDFs are not required.
  • Restrict CREATE FUNCTION permissions to trusted administrative roles only.
  • Audit existing user-defined functions and remove any that are not explicitly required.
  • Treat the documented unsafe UDF configuration as unsupported and avoid it in production.

Detection

  • Monitor Cassandra logs for CREATE FUNCTION and UDF execution events, especially from non-administrative accounts.
  • Alert on changes to cassandra.yaml settings for the three UDF-related flags.
  • Hunt for unexpected child processes or outbound connections originating from Cassandra nodes.
  • Review role and permission grants for CREATE FUNCTION on all clusters.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2021-44521 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2016-3427Oracle Java SE JMX Improper Access Control VulnerabilityCVE-2016-3427 is an unspecified vulnerability in Oracle Java SE 6u113, 7u99, 8u77, Java SE Embedded 8u77, and JRockit R28.3.9, reached through vector…KEVEPSS 92%analysed9.8CVE-2018-8016Apache cassandra missing authentication for critical function vulnerabilityThe default configuration in Apache Cassandra 3.8 through 3.11.1 binds an unauthenticated JMX/RMI interface to all network interfaces, which allows r…EPSS 2.3%8.8CVE-2026-27314Apache cassandra vulnerabilityPrivilege escalation in Apache Cassandra 5.0 on an mTLS environment using MutualTlsAuthenticator allows a user with only CREATE permission to associa…EPSS 0.34%8.8CVE-2025-26467Apache cassandra vulnerabilityPrivilege Defined With Unsafe Actions vulnerability in Apache Cassandra. An user with MODIFY permission ON ALL KEYSPACES can escalate privileges to s…EPSS 0.52%8.8CVE-2025-23015Apache cassandra vulnerabilityPrivilege Defined With Unsafe Actions vulnerability in Apache Cassandra. An user with MODIFY permission ON ALL KEYSPACES can escalate privileges to s…EPSS 1.0%7.8CVE-2023-30601Apache cassandra improper privilege management vulnerabilityPrivilege escalation when enabling FQL/Audit logs allows user with JMX access to run arbitrary commands as the user running Apache Cassandra This iss…EPSS 0.34%7.5CVE-2020-17516Apache cassandra authentication bypass by spoofing vulnerabilityApache Cassandra versions 2.1.0 to 2.1.22, 2.2.0 to 2.2.19, 3.0.0 to 3.0.23, and 3.11.0 to 3.11.9, when using 'dc' or 'rack' internode_encryption set…EPSS 1.9%7.5CVE-2016-4970Netty vulnerabilityhandler/ssl/OpenSslEngine.java in Netty 4.0.x before 4.0.37.Final and 4.1.x before 4.1.1.Final allows remote attackers to cause a denial of service (…EPSS 11%

Source: NIST National Vulnerability Database (record CVE-2021-44521), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.