{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-44521","id":"CVE-2021-44521","title":"Remote code execution for scripted UDFs","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 thi","descriptionLong":"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.","published":"2022-02-11T12:20:12.000Z","updated":"2026-10-24T10:30:19.659516840Z","reserved":"2021-12-02T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"apache","metric":{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"NVD"},"metrics":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"GitHub"},{"version":"2.0","score":8.5,"vector":"AV:N/AC:M/Au:S/C:C/I:C/A:C","rating":"high","source":"NVD"}],"rating":"critical","products":["Apache Software Foundation Apache Cassandra"],"affectedProducts":[{"vendor":"Apache Software Foundation","product":"Apache Cassandra","defaultStatus":null,"versions":[{"lessThan":"unspecified","status":"affected","version":"3.0.0","versionType":"custom"},{"lessThan":"3.0.26","status":"affected","version":"unspecified","versionType":"custom"},{"lessThan":"unspecified","status":"affected","version":"3.1","versionType":"custom"},{"lessThan":"3.11.12","status":"affected","version":"unspecified","versionType":"custom"},{"lessThan":"unspecified","status":"affected","version":"4.0.0","versionType":"custom"},{"lessThan":"4.0.2","status":"affected","version":"unspecified","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"Maven","name":"org.apache.cassandra:cassandra-all","purl":"pkg:maven/org.apache.cassandra/cassandra-all","ranges":["<3.0.26",">=3.11.0 <3.11.12",">=4.0.0 <4.0.2"],"fixed":["3.0.26","3.11.12","4.0.2"],"advisory":"GHSA-8ffc-79xg-29w8"}],"cwes":["CWE-94","CWE-732"],"aliases":["BIT-cassandra-2021-44521","GHSA-8ffc-79xg-29w8"],"references":[{"url":"https://lists.apache.org/thread/y4nb9s4co34j8hdfmrshyl09lokm7356","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Mailing List","Vendor Advisory","report","web"]},{"url":"http://www.openwall.com/lists/oss-security/2022/02/11/4","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","advisory","web"]},{"url":"https://jfrog.com/blog/cve-2021-44521-exploiting-apache-cassandra-user-defined-functions-for-remote-code-execution/","tags":["x_refsource_MISC","x_transferred","Exploit","Mitigation","Third Party Advisory","evidence"]},{"url":"https://security.netapp.com/advisory/ntap-20220225-0001/","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-44521","tags":["advisory"]},{"url":"https://github.com/apache/cassandra","tags":["package"]},{"url":"https://issues.apache.org/jira/browse/CASSANDRA-17352","tags":["web"]},{"url":"https://jfrog.com/blog/cve-2021-44521-exploiting-apache-cassandra-user-defined-functions-for-remote-code-execution","tags":["web"]},{"url":"https://security.netapp.com/advisory/ntap-20220225-0001","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.58896,"epssPercentile":0.99129,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-44521","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-44521","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-44521","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-8ffc-79xg-29w8","ok":true,"note":"GHSA-8ffc-79xg-29w8"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-44521","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":["EPSS 59% with CVSS 9.1"],"attention":null}