CVE-2024-27309 Apache Kafka: Potential incorrect access control during migration from ZK mode to KRaft mode
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- Ubuntu
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:
- The administrator decides to remove an ACL
- 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.
Upgrade path
4 packages: 3 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/kafka(Ubuntu Pro 18.04) | = 2.2.0u2-0ubuntu3.1; = 2.2.0u2-0ubuntu3.2; = 2.2.2u1-0ubuntu1+esm2; All versions | No fix listed | No fix yet |
| Apache Kafka | >= 3.5.0, <= 3.5.2; >= 3.6.0, <= 3.6.1 | after 3.5.2, 3.6.1 | Fixed |
| apache kafka | >= 3.5.0, <= 3.5.2; >= 3.5.0, <= 3.6.1; >= 3.6.0, <= 3.6.1 | after 3.5.2, 3.6.1 | Fixed |
| org.apache.kafka/kafka-metadata(Maven) | = 3.5.0; = 3.5.1; = 3.5.2; = 3.6.0 +2 more | 3.6.2 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| org.apache.kafka/kafka-metadata(Maven) | >= 3.5.0, < 3.6.2 | 3.6.2 |
| org.apache.kafka/kafka-metadata(Maven) | = 3.5.0 | No fix listed |
| org.apache.kafka/kafka-metadata(Maven) | = 3.5.1 | No fix listed |
| org.apache.kafka/kafka-metadata(Maven) | = 3.5.2 | No fix listed |
| org.apache.kafka/kafka-metadata(Maven) | = 3.6.0 | No fix listed |
| org.apache.kafka/kafka-metadata(Maven) | = 3.6.1 | No fix listed |
| Apache Kafka | >= 3.5.0, <= 3.5.2 | No fix listed |
| Apache Kafka | >= 3.6.0, <= 3.6.1 | No fix listed |
| apache kafka | >= 3.5.0, <= 3.5.2 | No fix listed |
| apache kafka | >= 3.6.0, <= 3.6.1 | No fix listed |
| apache kafka | >= 3.5.0, <= 3.6.1 | No fix listed |
| ubuntu/kafka(Ubuntu:Pro:18.04) | All versions | No fix listed |
| ubuntu/kafka(Ubuntu:Pro:18.04) | = 2.2.0u2-0ubuntu3.1 | No fix listed |
| ubuntu/kafka(Ubuntu:Pro:18.04) | = 2.2.0u2-0ubuntu3.2 | No fix listed |
| ubuntu/kafka(Ubuntu:Pro:18.04) | = 2.2.2u1-0ubuntu1+esm2 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- github.com product
- lists.apache.org mailing-list vendor-advisory
- security.netapp.com third-party-advisory
- www.openwall.com mailing-list third-party-advisory
- github.com
- ubuntu.com issue-tracking
- www.cve.org issue-tracking