# CVE-2024-27309: Apache Kafka: Potential incorrect access control during migration from ZK mode to KRaft mode

- Severity: High 7.4 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.11%, higher than 66% of CVEs (2026-12-01)
- Published: 2024-04-12T06:58:45.134Z
- Modified: 2026-08-07T08:12:15.365Z
- Also known as: GHSA-79vv-vp32-gpp7, BIT-KAFKA-2024-27309
- Weaknesses: CWE-863
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: apache

## 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.

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache Kafka: from 3.5.0 up to 3.5.2; from 3.6.0 up to 3.6.1
- 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
- org.apache.kafka:kafka-metadata (Maven): from 3.5.0 before 3.6.2
- kafka (Bitnami): from 3.5.0 before 3.5.2; from 3.6.0 before 3.6.2

## Every score

- CISA-ADP: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 6.8 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:4.0 High `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`

## 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

- CVE List: [CVE-2024-27309](https://www.cve.org/CVERecord?id=CVE-2024-27309), CVE Terms of Use, modified 2025-07-30
- GitHub Advisory Database: [GHSA-79vv-vp32-gpp7](https://github.com/advisories/GHSA-79vv-vp32-gpp7), CC-BY-4.0, modified 2026-08-07
- NVD: [CVE-2024-27309](https://nvd.nist.gov/vuln/detail/CVE-2024-27309), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-KAFKA-2024-27309](https://osv.dev/vulnerability/BIT-KAFKA-2024-27309), Apache-2.0, modified 2024-05-02

---

Page: https://cve.day/CVE-2024-27309 · Whole record: https://cve.day/CVE-2024-27309.json · Rebuilt by cve.day 2026-11-25T22:58:39.119Z
