{"api_version":"1","generated_at":"2026-04-23T07:56:59+00:00","cve":"CVE-2021-44521","urls":{"html":"https://cve.report/CVE-2021-44521","api":"https://cve.report/api/cve/CVE-2021-44521.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-44521","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-44521"},"summary":{"title":"CVE-2021-44521","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.","state":"PUBLIC","assigner":"security@apache.org","published_at":"2022-02-11 13:15:00","updated_at":"2022-08-09 00:39:00"},"problem_types":["CWE-732"],"metrics":[],"references":[{"url":"https://jfrog.com/blog/cve-2021-44521-exploiting-apache-cassandra-user-defined-functions-for-remote-code-execution/","name":"https://jfrog.com/blog/cve-2021-44521-exploiting-apache-cassandra-user-defined-functions-for-remote-code-execution/","refsource":"MISC","tags":["Exploit","Mitigation","Third Party Advisory"],"title":"CVE-2021-44521: RCE Vulnerability in Apache Cassandra","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://security.netapp.com/advisory/ntap-20220225-0001/","name":"https://security.netapp.com/advisory/ntap-20220225-0001/","refsource":"CONFIRM","tags":[],"title":"CVE-2021-44521 Apache Cassandra Vulnerability in NetApp Products | NetApp Product Security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"http://www.openwall.com/lists/oss-security/2022/02/11/4","name":"[oss-security] 20220211 CVE-2021-44521: Apache Cassandra: Remote code execution for scripted UDFs","refsource":"MLIST","tags":[],"title":"oss-security - CVE-2021-44521: Apache Cassandra: Remote code execution for\n scripted UDFs","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.apache.org/thread/y4nb9s4co34j8hdfmrshyl09lokm7356","name":"https://lists.apache.org/thread/y4nb9s4co34j8hdfmrshyl09lokm7356","refsource":"MISC","tags":[],"title":"","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-44521","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-44521","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"LEGACY","value":"This issue was discovered by Omer Kaspi of the JFrog Security vulnerability research team.","lang":""}],"nvd_cpes":[{"cve_year":"2021","cve_id":"44521","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"apache","cpe5":"cassandra","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-44521","qid":"376427","title":"Apache Cassandra Remote Code Execution (RCE) Vulnerability"},{"cve":"CVE-2021-44521","qid":"691023","title":"Free Berkeley Software Distribution (FreeBSD) Security Update for cassandra3 (60624f63-9180-11ed-acbe-b42e991fc52e)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security@apache.org","ID":"CVE-2021-44521","STATE":"PUBLIC","TITLE":"Remote code execution for scripted UDFs"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"Apache Cassandra","version":{"version_data":[{"version_affected":">=","version_value":"3.0.0"},{"version_affected":"<","version_value":"3.0.26"},{"version_affected":">=","version_value":"3.1"},{"version_affected":"<","version_value":"3.11.12"},{"version_affected":">=","version_value":"4.0.0"},{"version_affected":"<","version_value":"4.0.2"}]}}]},"vendor_name":"Apache Software Foundation"}]}},"credit":[{"lang":"eng","value":"This issue was discovered by Omer Kaspi of the JFrog Security vulnerability research team."}],"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"generator":{"engine":"Vulnogram 0.0.9"},"impact":[{"other":"high"}],"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-94 Improper Control of Generation of Code ('Code Injection')"}]}]},"references":{"reference_data":[{"refsource":"MISC","url":"https://lists.apache.org/thread/y4nb9s4co34j8hdfmrshyl09lokm7356","name":"https://lists.apache.org/thread/y4nb9s4co34j8hdfmrshyl09lokm7356"},{"refsource":"MLIST","name":"[oss-security] 20220211 CVE-2021-44521: Apache Cassandra: Remote code execution for scripted UDFs","url":"http://www.openwall.com/lists/oss-security/2022/02/11/4"},{"refsource":"MISC","name":"https://jfrog.com/blog/cve-2021-44521-exploiting-apache-cassandra-user-defined-functions-for-remote-code-execution/","url":"https://jfrog.com/blog/cve-2021-44521-exploiting-apache-cassandra-user-defined-functions-for-remote-code-execution/"},{"refsource":"CONFIRM","name":"https://security.netapp.com/advisory/ntap-20220225-0001/","url":"https://security.netapp.com/advisory/ntap-20220225-0001/"}]},"source":{"defect":["CASSANDRA-17352"],"discovery":"UNKNOWN"},"work_around":[{"lang":"eng","value":"Set `enable_user_defined_functions_threads: true` (this is default)\nor\n3.0 users should upgrade to 3.0.26\n3.11 users should upgrade to 3.11.12\n4.0 users should upgrade to 4.0.2"}]},"nvd":{"publishedDate":"2022-02-11 13:15:00","lastModifiedDate":"2022-08-09 00:39:00","problem_types":["CWE-732"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"HIGH","userInteraction":"NONE","scope":"CHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.1,"baseSeverity":"CRITICAL"},"exploitabilityScore":2.3,"impactScore":6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:S/C:C/I:C/A:C","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"SINGLE","confidentialityImpact":"COMPLETE","integrityImpact":"COMPLETE","availabilityImpact":"COMPLETE","baseScore":8.5},"severity":"HIGH","exploitabilityScore":6.8,"impactScore":10,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:apache:cassandra:*:*:*:*:*:*:*:*","versionStartIncluding":"4.0.0","versionEndExcluding":"4.0.2","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:apache:cassandra:*:*:*:*:*:*:*:*","versionStartIncluding":"3.11.0","versionEndExcluding":"3.11.12","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:apache:cassandra:*:*:*:*:*:*:*:*","versionStartIncluding":"3.0.0","versionEndExcluding":"3.0.26","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"44521","Ordinal":"222284","Title":"CVE-2021-44521","CVE":"CVE-2021-44521","Year":"2021"},"notes":[]}}}