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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.4
- **CVSS:** 7.4 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.44% (percentile 73, 2026-11-26)
- **CWE:** CWE-863
- **Aliases:** BIT-kafka-2024-27309, GHSA-79vv-vp32-gpp7
- **Published:** 2024-04-12T06:58:45.134Z
- **Modified:** 2026-08-07T08:12:15.365Z

## Who should check

- Projects that depend on Maven package org.apache.kafka:kafka-metadata (\>= 3.5.0, \< 3.6.2)
- Anyone running Apache Software Foundation Apache Kafka \>= 3.5.0, \<= 3.5.2; \>= 3.6.0, \<= 3.6.1

## 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 and fixed versions

- Maven `org.apache.kafka:kafka-metadata`: affected \>= 3.5.0, \< 3.6.2; fixed 3.6.2 (osv)
- Apache Software Foundation Apache Kafka: \>= 3.5.0, \<= 3.5.2; \>= 3.6.0, \<= 3.6.1 (cvelist)

## Mitigation

- Upgrade org.apache.kafka:kafka-metadata to 3.6.2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-27309. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-27309.md
Affected: org.apache.kafka:kafka-metadata >= 3.5.0, < 3.6.2
Fixed in: 3.6.2

Steps:
1. Search this machine and project for org.apache.kafka:kafka-metadata (Maven), Apache Software Foundation Apache Kafka: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-27309 being exploited?

There is no confirmed exploitation: CVE-2024-27309 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.44% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-27309?

High: CVSS 7.4 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2024-27309?

org.apache.kafka:kafka-metadata \>= 3.5.0, \< 3.6.2.

### Is there a fix for CVE-2024-27309?

Yes. Fixed in 3.6.2. Upgrade org.apache.kafka:kafka-metadata to 3.6.2 or later.

### How do I check if I'm affected by CVE-2024-27309?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://lists.apache.org/thread/6536rmzyg076lzzdw2xdktvnz163mjpy>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-27309>
- patch: <https://github.com/apache/kafka/commit/c000b1fae2bd7d4b76713a53508f128a13431ab6>
- other: <http://www.openwall.com/lists/oss-security/2024/04/12/3>
- other: <https://security.netapp.com/advisory/ntap-20240705-0002/>
- other: <https://github.com/apache/kafka>
- other: <https://security.netapp.com/advisory/ntap-20240705-0002>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-27309>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-79vv-vp32-gpp7> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-27309> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-27309>
