{"answers":{"affected":"7 open source packages ship an affected version, including org.apache.cassandra:cassandra-all and cassandra. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-44521 exists.","fix":"Upgrade org.apache.cassandra:cassandra-all to a fixed version for your release line: 3.0.26, 3.11.12 or 4.0.2.","what":"CVE-2021-44521 is a critical code injection vulnerability in Apache Cassandra, published on 11 Feb 2022. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-44521 and fix it if it is affected.\n\nWhat it is: CVE-2021-44521 is a critical code injection vulnerability in Apache Cassandra, published on 11 Feb 2022. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-44521 exists.\n\nAffected packages and fixed versions:\n- org.apache.cassandra:cassandra-all (Maven): affected all versions; fixed in 3.0.26\n- org.apache.cassandra:cassandra-all (Maven): affected all versions; fixed in 3.0.26\n- org.apache.cassandra:cassandra-all (Maven): affected from 3.11.0; fixed in 3.11.12\n- org.apache.cassandra:cassandra-all (Maven): affected from 3.11.0; fixed in 3.11.12\n- org.apache.cassandra:cassandra-all (Maven): affected from 4.0.0; fixed in 4.0.2\n- org.apache.cassandra:cassandra-all (Maven): affected from 4.0.0; fixed in 4.0.2\n- cassandra (Bitnami): affected from 3.0.0; fixed in 3.0.26, 3.11.12, 4.0.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-44521/ (Markdown: https://insights.sbomify.com/CVE-2021-44521/index.md)","id":"CVE-2021-44521","markdown":"https://insights.sbomify.com/CVE-2021-44521/index.md","name":"CVE-2021-44521","record":{"aliases":["BIT-cassandra-2021-44521","ECHO-2550-1834-d752","GHSA-8ffc-79xg-29w8","MINI-4jjc-74vc-3j6j","MINI-mxmp-hw8g-mq2f"],"analysis":{"component_type":"database","fix_type":"configuration_change","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Apache Cassandra","requires_auth":"high_privilege","summary":"Attackers with UDF creation permissions can execute arbitrary code on Apache Cassandra hosts when unsafe scripted UDF settings are enabled.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"cassandra","vendor":"apache"}],"cvss":{"score":9.1,"severity":"critical","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-732","name":"Incorrect Permission Assignment for Critical Resource"},{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"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.","ecosystems":["Bitnami","Maven"],"exploits":{"exploitdb":0,"first_seen":"2022-02-24","github_poc":2,"max_poc_stars":10,"metasploit":0,"nuclei":1,"refs":[{"date":"2022-02-24T11:07:34Z","kind":"github_poc","ref":"https://github.com/WoodenKlaas/CVE-2021-44521","stars":10,"title":"Automated PoC of CVE-2021-44521"},{"date":"2022-12-03T21:35:30Z","kind":"github_poc","ref":"https://github.com/Yeyvo/poc-CVE-2021-44521","stars":1,"title":"full PoC of CVE-2021-44521 "},{"date":null,"kind":"nuclei","ref":"network/cves/2021/CVE-2021-44521.yaml","stars":null,"title":"Apache Cassandra Load UDF RCE"}],"tier":"weaponised"},"has_fix":true,"headline":"Remote code execution for scripted UDFs","id":"CVE-2021-44521","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"code_injection","year":"2021"},"n_packages":7,"n_references":4,"next":{"headline":"Missing authorization in SiPass integrated V2.76","id":"CVE-2021-44522"},"packages":[{"ecosystem":"Bitnami","fixed":["3.0.26","3.11.12","4.0.2"],"introduced":["3.0.0","3.11.0","4.0.0"],"last_affected":[],"package":"cassandra","purl":"pkg:bitnami/cassandra","source":"BIT-cassandra-2021-44521"},{"ecosystem":"Maven","fixed":["3.0.26"],"introduced":["0"],"last_affected":[],"package":"org.apache.cassandra:cassandra-all","purl":null,"source":"GHSA-8ffc-79xg-29w8"},{"ecosystem":"Maven","fixed":["3.0.26"],"introduced":["0"],"last_affected":[],"package":"org.apache.cassandra:cassandra-all","purl":"pkg:maven/org.apache.cassandra/cassandra-all","source":"GHSA-8ffc-79xg-29w8"},{"ecosystem":"Maven","fixed":["3.11.12"],"introduced":["3.11.0"],"last_affected":[],"package":"org.apache.cassandra:cassandra-all","purl":null,"source":"GHSA-8ffc-79xg-29w8"},{"ecosystem":"Maven","fixed":["3.11.12"],"introduced":["3.11.0"],"last_affected":[],"package":"org.apache.cassandra:cassandra-all","purl":"pkg:maven/org.apache.cassandra/cassandra-all","source":"GHSA-8ffc-79xg-29w8"},{"ecosystem":"Maven","fixed":["4.0.2"],"introduced":["4.0.0"],"last_affected":[],"package":"org.apache.cassandra:cassandra-all","purl":null,"source":"GHSA-8ffc-79xg-29w8"},{"ecosystem":"Maven","fixed":["4.0.2"],"introduced":["4.0.0"],"last_affected":[],"package":"org.apache.cassandra:cassandra-all","purl":"pkg:maven/org.apache.cassandra/cassandra-all","source":"GHSA-8ffc-79xg-29w8"}],"prev":{"headline":"Command injection in n/a","id":"CVE-2021-44520"},"products":["Apache Cassandra"],"published":"2022-02-11","related":[{"cvss_score":9.8,"headline":"Oracle Java SE and JRockit Unspecified","id":"CVE-2016-3427","kev_date_added":"2023-05-12","published":"2016-04-21"},{"cvss_score":9.8,"headline":"Missing Authentication for Critical Function in Apache Cassandra","id":"CVE-2018-8016","kev_date_added":null,"published":"2018-06-28"},{"cvss_score":8.8,"headline":"Apache Cassandra: Privilege escalation via ADD IDENTITY authorization bypass","id":"CVE-2026-27314","kev_date_added":null,"published":"2026-04-07"},{"cvss_score":8.8,"headline":"Apache Cassandra: User with MODIFY permission on ALL KEYSPACES can escalate privileges to superuser via unsafe actions (4.0.16 only)","id":"CVE-2025-26467","kev_date_added":null,"published":"2025-08-25"},{"cvss_score":8.8,"headline":"Apache Cassandra: User with MODIFY permission on ALL KEYSPACES can escalate privileges to superuser via unsafe actions","id":"CVE-2025-23015","kev_date_added":null,"published":"2025-02-04"},{"cvss_score":7.8,"headline":"Apache Cassandra: Privilege escalation when enabling FQL/Audit logs","id":"CVE-2023-30601","kev_date_added":null,"published":"2023-05-30"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["Apache Software Foundation"]},"summary":"Attackers with UDF creation permissions can execute arbitrary code on Apache Cassandra hosts when unsafe scripted UDF settings are enabled.","url":"https://insights.sbomify.com/CVE-2021-44521/"}