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.

Affected Software

VendorProductVersion RangeStatus
Apache Software FoundationApache Cassandra3.0.0 < unspecifiedaffected
Apache Software FoundationApache Cassandraunspecified < 3.0.26affected
Apache Software FoundationApache Cassandra3.1 < unspecifiedaffected
Apache Software FoundationApache Cassandraunspecified < 3.11.12affected
Apache Software FoundationApache Cassandra4.0.0 < unspecifiedaffected
Apache Software FoundationApache Cassandraunspecified < 4.0.2affected

Weaknesses

  • CWE-94: CWE-94 Improper Control of Generation of Code ('Code Injection')

Workarounds

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

ADP Enrichment

CVE Program Container

Additional References

References