{"id":"CVE-2021-44521","aliases":["CVE-2021-44521","GHSA-8ffc-79xg-29w8","BIT-CASSANDRA-2021-44521"],"related":[],"kind":"vulnerability","state":"published","title":"Remote code execution for scripted UDFs","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Cuando es ejecutado Apache Cassandra con la siguiente configuración: enable_user_defined_functions: true enable_scripted_user_defined_functions: true enable_user_defined_functions_threads: false es posible que un atacante ejecute código arbitrario en el host. El atacante necesitaría tener suficientes permisos para crear funciones definidas por el usuario en el cluster para poder explotar esto. Tenga en cuenta que esta configuración está documentada como no segura, y seguirá siendo considerada no segura después de esta CVE","source":"nvd"}],"published":"2022-02-11T12:20:12.000Z","modified":"2026-09-08T08:45:50.913Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","score":9.1,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","score":9.1,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","score":9.1,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:S/C:C/I:C/A:C","score":8.5,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"CRITICAL"}],"cwes":["CWE-94","CWE-732"],"affected":[{"ranges":[{"type":"custom","introduced":"3.0.0","fixed":"unspecified","status":"affected"},{"type":"custom","introduced":"unspecified","fixed":"3.0.26","status":"affected"},{"type":"custom","introduced":"3.1","fixed":"unspecified","status":"affected"},{"type":"custom","introduced":"unspecified","fixed":"3.11.12","status":"affected"},{"type":"custom","introduced":"4.0.0","fixed":"unspecified","status":"affected"},{"type":"custom","introduced":"unspecified","fixed":"4.0.2","status":"affected"}],"vendor":"Apache Software Foundation","product":"Apache Cassandra","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.0.26"}],"ecosystem":"Maven","package":"org.apache.cassandra:cassandra-all","purl":"pkg:maven/org.apache.cassandra/cassandra-all","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.11.0","status":"affected","fixed":"3.11.12"}],"ecosystem":"Maven","package":"org.apache.cassandra:cassandra-all","purl":"pkg:maven/org.apache.cassandra/cassandra-all","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.0.0","status":"affected","fixed":"4.0.2"}],"ecosystem":"Maven","package":"org.apache.cassandra:cassandra-all","purl":"pkg:maven/org.apache.cassandra/cassandra-all","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"3.0.0","fixed":"3.0.26"},{"status":"affected","introduced":"3.11.0","fixed":"3.11.12"},{"status":"affected","introduced":"4.0.0","fixed":"4.0.2"}],"vendor":"apache","product":"cassandra","cpe":"cpe:2.3:a:apache:cassandra:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"3.0.0","status":"affected","fixed":"3.0.26"},{"type":"semver","introduced":"3.11.0","status":"affected","fixed":"3.11.12"},{"type":"semver","introduced":"4.0.0","status":"affected","fixed":"4.0.2"}],"ecosystem":"Bitnami","package":"cassandra","purl":"pkg:bitnami/cassandra","source":"bitnami"}],"references":[{"url":"https://lists.apache.org/thread/y4nb9s4co34j8hdfmrshyl09lokm7356","tags":["advisory","issue-tracking","mailing-list","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"http://www.openwall.com/lists/oss-security/2022/02/11/4","tags":["advisory","mailing-list","third-party-advisory","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://jfrog.com/blog/cve-2021-44521-exploiting-apache-cassandra-user-defined-functions-for-remote-code-execution/","tags":["advisory","exploit","mitigation","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://security.netapp.com/advisory/ntap-20220225-0001/","tags":["advisory","third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-44521","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/apache/cassandra","tags":["package"],"sources":["ghsa"]},{"url":"https://issues.apache.org/jira/browse/CASSANDRA-17352","tags":["web"],"sources":["ghsa"]},{"url":"https://jfrog.com/blog/cve-2021-44521-exploiting-apache-cassandra-user-defined-functions-for-remote-code-execution","tags":["web"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20220225-0001","tags":["web"],"sources":["ghsa"]}],"credits":["This issue was discovered by Omer Kaspi of the JFrog Security vulnerability research team."],"assigner":"apache","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-44521","url":"https://www.cve.org/CVERecord?id=CVE-2021-44521","licence":"CVE Terms of Use","modified":"2024-08-04T04:25:16.640Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8ffc-79xg-29w8","url":"https://github.com/advisories/GHSA-8ffc-79xg-29w8","licence":"CC-BY-4.0","modified":"2023-12-06T01:01:41.573Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-44521","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-44521","licence":"Public domain","modified":"2026-06-17T04:12:30.493Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-CASSANDRA-2021-44521","url":"https://osv.dev/vulnerability/BIT-CASSANDRA-2021-44521","licence":"Apache-2.0","modified":"2026-09-08T08:45:50.913Z"}],"updatedAt":"2026-11-25T22:24:36.685Z","epss":{"score":0.58896,"percentile":0.99125,"date":"2026-12-01T12:00:22.000Z"}}