{"answers":{"affected":"3 open source packages ship an affected version, including org.apache.kafka:kafka-metadata and kafka. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-27309 in the wild and no public exploit code.","fix":"Upgrade org.apache.kafka:kafka-metadata to 3.6.2 or later.","what":"CVE-2024-27309 is a high-severity missing authorization vulnerability in Apache Kafka, published on 12 Apr 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-27309 and fix it if it is affected.\n\nWhat it is: CVE-2024-27309 is a high-severity missing authorization vulnerability in Apache Kafka, published on 12 Apr 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-27309 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.kafka:kafka-metadata (Maven): affected from 3.5.0; fixed in 3.6.2\n- org.apache.kafka:kafka-metadata (Maven): affected from 3.5.0; fixed in 3.6.2\n- kafka (Bitnami): affected from 3.5.0; fixed in 3.5.2, 3.6.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-2024-27309/ (Markdown: https://insights.sbomify.com/CVE-2024-27309/index.md)","id":"CVE-2024-27309","markdown":"https://insights.sbomify.com/CVE-2024-27309/index.md","name":"CVE-2024-27309","record":{"aliases":["BIT-kafka-2024-27309","GHSA-79vv-vp32-gpp7","MINI-8p86-3vj3-7g6v","MINI-99cv-369v-992r","ROOT-APP-MAVEN-CVE-2024-27309","UBUNTU-CVE-2024-27309"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":true,"product_category":"Apache Kafka","requires_auth":"none","summary":"Attackers may bypass access controls during Kafka ZK-to-KRaft migration if specific ACL removal conditions are met, potentially exposing data.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"kafka","vendor":"apache"}],"cvss":{"score":7.4,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"}],"description":"While an Apache Kafka cluster is being migrated from ZooKeeper mode to KRaft mode, in some cases ACLs will not be correctly enforced.\n\nTwo preconditions are needed to trigger the bug:\n1. The administrator decides to remove an ACL\n2. The resource associated with the removed ACL continues to have two or more other ACLs associated with it after the removal.\n\nWhen those two preconditions are met, Kafka will treat the resource as if it had only one ACL associated with it after the removal, rather than the two or more that would be correct.\n\nThe incorrect condition is cleared by removing all brokers in ZK mode, or by adding a new ACL to the affected resource. Once the migration is completed, there is no metadata loss (the ACLs all remain).\n\nThe full impact depends on the ACLs in use. If only ALLOW ACLs were configured during the migration, the impact would be limited to availability impact. if DENY ACLs were configured, the impact could include confidentiality and integrity impact depending on the ACLs configured, as the DENY ACLs might be ignored due to this vulnerability during the migration period.","ecosystems":["Bitnami","Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Apache Kafka: Potential incorrect access control during migration from ZK mode to KRaft mode","id":"CVE-2024-27309","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"missing_authorization","year":"2024"},"n_packages":3,"n_references":3,"next":{"headline":"DOS Vulnerability","id":"CVE-2024-27310"},"packages":[{"ecosystem":"Bitnami","fixed":["3.5.2","3.6.2"],"introduced":["3.5.0","3.6.0"],"last_affected":[],"package":"kafka","purl":"pkg:bitnami/kafka","source":"BIT-kafka-2024-27309"},{"ecosystem":"Maven","fixed":["3.6.2"],"introduced":["3.5.0"],"last_affected":[],"package":"org.apache.kafka:kafka-metadata","purl":null,"source":"GHSA-79vv-vp32-gpp7"},{"ecosystem":"Maven","fixed":["3.6.2"],"introduced":["3.5.0"],"last_affected":[],"package":"org.apache.kafka:kafka-metadata","purl":"pkg:maven/org.apache.kafka/kafka-metadata","source":"GHSA-79vv-vp32-gpp7"}],"prev":{"headline":"Mio's tokens for named pipes may be delivered after deregistration","id":"CVE-2024-27308"},"products":["Apache Kafka"],"published":"2024-04-12","related":[{"cvss_score":9.1,"headline":"Apache Kafka: Missing JWT token validation in OAUTHBEARER authentication","id":"CVE-2026-33557","kev_date_added":null,"published":"2026-04-20"},{"cvss_score":8.8,"headline":"Apache Kafka: Possible RCE attack via SASL JAAS LdapLoginModule configuration","id":"CVE-2025-27818","kev_date_added":null,"published":"2025-06-10"},{"cvss_score":8.8,"headline":"Improper Input Validation in Apache Kafka","id":"CVE-2018-17196","kev_date_added":null,"published":"2019-07-11"},{"cvss_score":8.7,"headline":"Apache Kafka Clients: Kafka Producer Message Corruption and Misrouting via Buffer Pool Race Condition","id":"CVE-2026-35554","kev_date_added":null,"published":"2026-04-07"},{"cvss_score":7.5,"headline":"Apache Kafka Client: Arbitrary file read and SSRF vulnerability","id":"CVE-2025-27817","kev_date_added":null,"published":"2025-06-10"},{"cvss_score":7.5,"headline":"Apache Kafka: Possible RCE/Denial of service attack via SASL JAAS JndiLoginModule configuration","id":"CVE-2025-27819","kev_date_added":null,"published":"2025-06-10"},{"cvss_score":7.5,"headline":"Unauthenticated clients may cause OutOfMemoryError on Apache Kafka Brokers","id":"CVE-2022-34917","kev_date_added":null,"published":"2022-09-20"}],"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)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-07-30","vendors":["Apache Software Foundation"]},"summary":"Attackers may bypass access controls during Kafka ZK-to-KRaft migration if specific ACL removal conditions are met, potentially exposing data.","url":"https://insights.sbomify.com/CVE-2024-27309/"}