CVE-2022-34917

Unauthenticated clients may cause OutOfMemoryError on Apache Kafka Brokers

State
Published
Severity
7.5 High
Published
Sep 20, 2022
Updated
May 29, 2025
Reserved
Jul 4, 2022

Read the record on cve.org

Description

A security vulnerability has been identified in Apache Kafka. It affects all releases since 2.8.0. The vulnerability allows malicious unauthenticated clients to allocate large amounts of memory on brokers. This can lead to brokers hitting OutOfMemoryException and causing denial of service. Example scenarios: - Kafka cluster without authentication: Any clients able to establish a network connection to a broker can trigger the issue. - Kafka cluster with SASL authentication: Any clients able to establish a network connection to a broker, without the need for valid SASL credentials, can trigger the issue. - Kafka cluster with TLS authentication: Only clients able to successfully authenticate via TLS can trigger the issue. We advise the users to upgrade the Kafka installations to one of the 3.2.3, 3.1.2, 3.0.2, 2.8.2 versions.

Scores

CVSSScoreVectorSource
3.17.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HCISA-ADP

Weaknesses

  • CWE-789 Memory Allocation with Excessive Size Value

Affected Products

ProductVersions
Apache KafkaApache Software Foundation
  • Apache Kafka 2.8.0 2.8.0 Affected
  • Apache Kafka 2.8.1 2.8.1Affected
  • Apache Kafka 3.0.0 3.0.0Affected
  • Apache Kafka 3.0.1 3.0.1Affected
  • Apache Kafka 3.1.0 3.1.0Affected
  • Apache Kafka 3.1.1 3.1.1Affected
  • Apache Kafka 3.2.0 3.2.0Affected
  • Apache Kafka 3.2.1 3.2.1Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.