CVE-2021-44521

Remote code execution for scripted UDFs

Published Feb 11, 2022 CVSS 3.1 · 9.1 Critical EPSS 58.9% KEV · Not listed
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.

Remediation

Vendor Workaround

Set `enable_user_defined_functions_threads: true` (this is default) or 3.0 users should upgrade to 3.0.26 3.11 users should upgrade to 3.11.12 4.0 users should upgrade to 4.0.2

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-8ffc-79xg-29w8 Apache Cassandra vulnerable to Code Injection due to unsafe configuration
History
Type Values Removed Values Added
Metrics epss

{'score': 0.91865}

epss

{'score': 0.91234}

Weaknesses

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
Aug 4, 2024, 4:25 AM
Reserved
Dec 2, 2021, 12:00 AM
Status
Modified
Published
Feb 11, 2022, 1:15 PM
Modified
Jun 17, 2026, 4:12 AM
Severity
Moderate
Public date
Feb 11, 2022, 12:00 AM