Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-27309

HIGH 7.4EPSS 73%

Apache Kafka: Potential incorrect access control during migration from ZK mode to KRaft mode

Also known as BIT-kafka-2024-27309, GHSA-79vv-vp32-gpp7

Mitigation

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

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

Vulnerability facts

Affected
org.apache.kafka:kafka-metadata >= 3.5.0, < 3.6.2
Fixed in
3.6.2
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
7.4 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:NOpen in CVSS calculator
Show all 8 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
EPSS
1.44% chance of exploitation in 30 days (percentile 73, 2026-11-26)
CWE
CWE-863
Published
Modified

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

Package / productAffectedFixedSource
Maven org.apache.kafka:kafka-metadata>= 3.5.0, < 3.6.23.6.2osv
Apache Software Foundation Apache Kafka>= 3.5.0, <= 3.5.2; >= 3.6.0, <= 3.6.1—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors