CVE-2022-34917: Apache Kafka · Excessive Memory Allocation
Affects Apache KafkaSource CVE Database V5
Not known to be exploited · CVSS 7.5 High · fixed in 3.2.3 : patch Apache Kafka soon.
Data as of 26 Oct 2026, 06:26 UTC
- EPSS
- 1.4% chance of exploitation in 30 days – higher than 74% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 3.2.3, 3.1.2, 3.0.2 +1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 20 Sep 2022
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.
What to do
Upgrade org.apache.kafka/kafka to 3.2.3, 3.1.2, 3.0.2 or 2.8.2.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Mavenorg.apache.kafka/kafkapkg:maven/org.apache.kafka/kafkaOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Beyond upgrading to the fixed Kafka versions (2.8.2, 3.0.2, 3.1.2, or 3.2.3), European organizations should implement several targeted mitigations: 1) Enforce strict network segmentation and firewall rules to limit broker access only to trusted clients and internal systems, reducing exposure to unauthenticated attackers. 2) Enable and enforce strong authentication mechanisms such as TLS mutual authentication or SASL with robust credential management to prevent unauthorized connections. 3) Monitor broker logs and metrics for unusual memory allocation patterns or spikes in resource usage that could indicate exploitation attempts. 4) Implement rate limiting or connection throttling at the network or Kafka broker level to mitigate rapid or excessive memory allocation requests. 5) Conduct regular security audits and penetration testing focused on Kafka deployments to identify and remediate configuration weaknesses. 6) Maintain an up-to-date inventory of Kafka versions in use and automate patch management processes to ensure timely application of security updates. 7) Consider deploying Kafka in high-availability configurations with failover capabilities to minimize service disruption in case of an attack.
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.