Skip to main content
← All vulnerabilities
CVE-2021-44521GHSA-8FFC-79XG-29W8BIT-CASSANDRA-2021-44521

Remote code execution for scripted UDFs

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.0.26, 3.11.12, 4.0.2
2 proofs of concept on GitHub, 1 Nuclei template

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.

Timeline

  1. CVE published
  2. Record last updated
  3. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • Apache Software Foundation Apache Cassandra

    From 3.0.0; fixed in 3.0.26; From 3.1; fixed in 3.11.12; From 4.0.0; fixed in 4.0.2

  • org.apache.cassandra:cassandra-allMaven

    fixed in 3.0.26

  • org.apache.cassandra:cassandra-allMaven

    From 3.11.0 · fixed in 3.11.12

  • org.apache.cassandra:cassandra-allMaven

    From 4.0.0 · fixed in 4.0.2

References 7

lists.apache.org

openwall.com

jfrog.com

security.netapp.com

GitHub · projectdiscovery/nuclei-templates

GitHub · WoodenKlaas/CVE-2021-44521

GitHub · Yeyvo/poc-CVE-2021-44521