{"schemaVersion":3,"id":"CVE-2021-44521","aliases":["CGA-c7gv-355r-g435","CGA-fhjh-rgfj-g3q2","CGA-jj49-wmxv-x4p2","CGA-pxgj-2w4q-28g2","GHSA-8ffc-79xg-29w8","BIT-cassandra-2021-44521"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2022-02-11T12:20:12.000Z","modified":"2024-08-04T04:25:16.640Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.1,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":9.1,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","exploitability":5.9,"impact":10,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":9.1,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","exploitability":5.9,"impact":10,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Maven","score":9.1,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","exploitability":5.9,"impact":10,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.1,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":8.5,"severity":"high","vector":"AV:N/AC:M/Au:S/C:C/I:C/A:C","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.57528,"percentile":0.99075,"severity":"critical","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":2.522000000000002,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.55006},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.55006,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.55006,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.55006,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.55006,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.55006,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.55006,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.55006,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.55006,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.55006,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.55006,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.57528,"percentile":0.99075}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.55006,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.55006,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.55006,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.55006,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.55006,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.55006,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.57528,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.57528,"percentile":0.99075}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_C58B347BB99D700A","name":"Exploit Reference (jfrog.com)","source":"reference","url":"https://jfrog.com/blog/cve-2021-44521-exploiting-apache-cassandra-user-defined-functions-for-remote-code-execution/","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-94","name":"Improper Control of Generation of Code ('Code Injection')","description":"The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/94.html"},{"id":"CWE-732","name":"Incorrect Permission Assignment for Critical Resource","description":"The product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/732.html"}],"affected":[{"vendor":"apache software foundation","product":"apache cassandra","name":"Apache Cassandra","label":"apache cassandra","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 3.0.0, < unspecified","noFixRecorded":false,"fixedIn":null},{"text":"≥ unspecified, < 3.0.26","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.1, < unspecified","noFixRecorded":false,"fixedIn":null},{"text":"≥ unspecified, < 3.11.12","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.0.0, < unspecified","noFixRecorded":false,"fixedIn":null},{"text":"≥ unspecified, < 4.0.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.0.0, < unspecified | ≥ unspecified, < 3.0.26 | ≥ 3.1, < unspecified | ≥ unspecified, < 3.11.12 | ≥ 4.0.0, < unspecified | ≥ unspecified, < 4.0.2","eol":null,"hubHref":"/vendor/apache_software_foundation/apache_cassandra"},{"vendor":"apache","product":"cassandra","name":"cassandra","label":"cassandra","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 3.0.0, < 3.0.26","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.11.0, < 3.11.12","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.0.0, < 4.0.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.0.0, < 3.0.26 | ≥ 3.11.0, < 3.11.12 | ≥ 4.0.0, < 4.0.2","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"apache-cassandra","label":"Apache Cassandra","category":"database"}},"hubHref":"/vendor/apache/cassandra"},{"vendor":"chainguard","product":"druid","name":"druid","label":"druid","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/druid","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 35.0.1-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 35.0.1-r1","eol":null,"hubHref":null},{"vendor":"wolfi","product":"druid","name":"druid","label":"druid","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/druid","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 35.0.1-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 35.0.1-r1","eol":null,"hubHref":null},{"vendor":"org.apache.cassandra","product":"cassandra-all","name":"org.apache.cassandra:cassandra-all","label":"cassandra-all","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.apache.cassandra/cassandra-all","purlType":"maven","versions":[{"text":"< 3.0.26","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.11.0, < 3.11.12","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.0.0, < 4.0.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.0.26 | ≥ 3.11.0, < 3.11.12 | ≥ 4.0.0, < 4.0.2","eol":null,"hubHref":null}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://lists.apache.org/thread/y4nb9s4co34j8hdfmrshyl09lokm7356","label":"lists.apache.org/thread/y4nb9s4co34j8hdfmrshyl09lokm7356","hostname":"lists.apache.org","tags":["X Refsource MISC","REPORT","WEB","Issue Tracking","Mailing List","Vendor Advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2022/02/11/4","label":"www.openwall.com/lists/oss-security/2022/02/11/4","hostname":"www.openwall.com","tags":["Mailing List","X Refsource MLIST","Advisory","WEB","Third Party Advisory"]},{"url":"https://jfrog.com/blog/cve-2021-44521-exploiting-apache-cassandra-user-defined-functions-for-remote-code-execution/","label":"jfrog.com/blog/…","hostname":"jfrog.com","tags":["X Refsource MISC","EVIDENCE","Exploit","Mitigation","Third Party Advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20220225-0001/","label":"security.netapp.com/advisory/ntap-20220225-0001/","hostname":"security.netapp.com","tags":["X Refsource CONFIRM","Advisory","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-44521","label":"nvd.nist.gov/vuln/detail/CVE-2021-44521","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/apache/cassandra","label":"github.com/apache/cassandra","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://issues.apache.org/jira/browse/CASSANDRA-17352","label":"issues.apache.org/jira/browse/CASSANDRA-17352","hostname":"issues.apache.org","tags":["WEB"]},{"url":"https://jfrog.com/blog/cve-2021-44521-exploiting-apache-cassandra-user-defined-functions-for-remote-code-execution","label":"jfrog.com/blog/…","hostname":"jfrog.com","tags":["WEB"]},{"url":"https://security.netapp.com/advisory/ntap-20220225-0001","label":"security.netapp.com/advisory/ntap-20220225-0001","hostname":"security.netapp.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-WR7F-RWCH-3Q4M"]},"timeline":[{"kind":"published","date":"2022-02-11T12:20:12.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T04:25:16.640Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T02:53:23.156Z","stale":false,"partial":false}}