7.4high
Apache Kafka: Potential incorrect access control during migration from ZK mode to KRaft mode
- Severity
- 7.4high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 1.11% (higher than 66% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- apache
- Also known as
- GHSA-79vv-vp32-gpp7BIT-KAFKA-2024-27309
Description
While an Apache Kafka cluster is being migrated from ZooKeeper mode to KRaft mode, in some cases ACLs will not be correctly enforced. Two preconditions are needed to trigger the bug: 1. The administrator decides to remove an ACL 2. The resource associated with the removed ACL continues to have two or more other ACLs associated with it after the removal. When 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. The 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). The 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Apache Software Foundation Apache Kafka | from 3.5.0 up to 3.5.2, from 3.6.0 up to 3.6.1 | CVE List |
| apache kafka | from 3.5.0 up to 3.5.2, from 3.6.0 up to 3.6.1, from 3.5.0 up to 3.6.1 | CVE List, NVD |
| org.apache.kafka:kafka-metadata (Maven) | from 3.5.0 before 3.6.2 | GitHub Advisory Database |
| kafka (Bitnami) | from 3.5.0 before 3.5.2, from 3.6.0 before 3.6.2 | Bitnami Vulnerability Database |
All scores
| CISA-ADP | 7.4high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N |
| GitHub | 6.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
While an Apache Kafka cluster is being migrated from ZooKeeper mode to KRaft mode, in some cases ACLs will not be correctly enforced. Two preconditions are needed to trigger the bug: 1. The administrator decides to remove an ACL 2. The resource associated with the removed ACL continues to have two or more other ACLs associated with it after the removal. When 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. The 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). The 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.
NVD (es)
Mientras se migra un clúster de Apache Kafka del modo ZooKeeper al modo KRaft, en algunos casos las ACL no se aplicarán correctamente. Se necesitan dos condiciones previas para desencadenar el error: 1. El administrador decide eliminar una ACL. 2. El recurso asociado con la ACL eliminada continúa teniendo dos o más ACL asociadas después de la eliminación. Cuando se cumplen esas dos condiciones previas, Kafka tratará el recurso como si tuviera solo una ACL asociada después de la eliminación, en lugar de las dos o más que serían correctas. La condición incorrecta se elimina eliminando todos los intermediarios en modo ZK o agregando una nueva ACL al recurso afectado. Una vez que se completa la migración, no hay pérdida de metadatos (todas las ACL permanecen). El impacto total depende de las ACL en uso. Si solo se configuraran ALLOW ACL durante la migración, el impacto se limitaría al impacto en la disponibilidad. Si se configuraron DENY ACL, el impacto podría incluir un impacto en la confidencialidad e integridad según las ACL configuradas, ya que DENY ACL podrían ignorarse debido a esta vulnerabilidad durante el período de migración.
Bitnami Vulnerability Database
While an Apache Kafka cluster is being migrated from ZooKeeper mode to KRaft mode, in some cases ACLs will not be correctly enforced.Two preconditions are needed to trigger the bug:1. The administrator decides to remove an ACL2. The resource associated with the removed ACL continues to have two or more other ACLs associated with it after the removal.When 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.The 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).The 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.
References
| https://lists.apache.org/thread/6536rmzyg076lzzdw2xdktvnz163mjpy | mailing-list, vendor-advisory, web | |
| http://www.openwall.com/lists/oss-security/2024/04/12/3 | mailing-list, third-party-advisory, web | |
| https://security.netapp.com/advisory/ntap-20240705-0002/ | third-party-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2024-27309 | advisory | |
| https://github.com/apache/kafka/commit/c000b1fae2bd7d4b76713a53508f128a13431ab6 | web | |
| https://github.com/apache/kafka | package | |
| https://security.netapp.com/advisory/ntap-20240705-0002 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-27309 changed 2025-07-30 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-79vv-vp32-gpp7 changed 2026-08-07 | CC-BY-4.0 |
| NVD | CVE-2024-27309 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-KAFKA-2024-27309 changed 2024-05-02 | Apache-2.0 |