CVE-2022-34917
Unauthenticated clients may cause OutOfMemoryError on Apache Kafka Brokers
Also known as BIT-kafka-2022-34917, GHSA-c9h3-c6qj-hh7q
Mitigation
- Upgrade org.apache.kafka:kafka to one of 2.8.2, 3.0.2, 3.1.2, 3.2.3 (or later in the same release line).
Who should check
- Projects that depend on Maven package org.apache.kafka:kafka (>= 2.8.0, < 2.8.2)
- Anyone running Apache Software Foundation Apache Kafka Apache Kafka 2.8.0 2.8.0 ; Apache Kafka 2.8.1 2.8.1; Apache Kafka 3.0.0 3.0.0; Apache Kafka 3.0.1 3.0.1; Apache Kafka 3.1.0 3.1.0; Apache Kafka 3.1.1 3.1.1; Apache Kafka 3.2.0 3.2.0; Apache Kafka 3.2.1 3.2.1
Vulnerability facts
- Affected
- org.apache.kafka:kafka >= 2.8.0, < 2.8.2
- Fixed in
- 2.8.2, 3.0.2, 3.1.2, 3.2.3
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 1.36% chance of exploitation in 30 days (percentile 72, 2026-11-26)
- CWE
- CWE-789
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Maven org.apache.kafka:kafka | >= 2.8.0, < 2.8.2 | 2.8.2, 3.0.2, 3.1.2, 3.2.3 | osv |
| Apache Software Foundation Apache Kafka | Apache Kafka 2.8.0 2.8.0 ; Apache Kafka 2.8.1 2.8.1; Apache Kafka 3.0.0 3.0.0; Apache Kafka 3.0.1 3.0.1; Apache Kafka 3.1.0 3.1.0; Apache Kafka 3.1.1 3.1.1; Apache Kafka 3.2.0 3.2.0; Apache Kafka 3.2.1 3.2.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-2022-34917. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2022-34917.md Affected: org.apache.kafka:kafka >= 2.8.0, < 2.8.2 Fixed in: 2.8.2, 3.0.2, 3.1.2, 3.2.3 Steps: 1. Search this machine and project for org.apache.kafka:kafka (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
Patches
- https://github.com/apache/kafka/commit/14951a83e3fdead212156e5532359500d72f68bc
- https://github.com/apache/kafka/commit/2bfa24b2bd416e7b8c4a0c566b984c43904fdecb
- https://github.com/apache/kafka/commit/aaceb6b79bfcb1d32874ccdbc8f3138d1c1c00fb
- https://github.com/apache/kafka/commit/c1295662768e64b4467e27c3d5158f95f2307657
FAQ
Is CVE-2022-34917 being exploited?
There is no confirmed exploitation: CVE-2022-34917 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.36% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2022-34917?
High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2022-34917?
org.apache.kafka:kafka >= 2.8.0, < 2.8.2.
Is there a fix for CVE-2022-34917?
Yes. Fixed in 2.8.2, 3.0.2, 3.1.2, 3.2.3. Upgrade org.apache.kafka:kafka to one of 2.8.2, 3.0.2, 3.1.2, 3.2.3 (or later in the same release line).
How do I check if I'm affected by CVE-2022-34917?
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.