CVE-2022-34917
Apache Kafka vulnerability can lead to brokers hitting OutOfMemoryException, causing Denial of Service
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 Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.kafka » kafka | >= 2.8.0, < 2.8.2>= 3.0.0, < 3.0.2>= 3.1.0, < 3.1.2>= 3.2.0, < 3.2.3 | 2.8.2, 3.0.2, 3.1.2, 3.2.3 |
Blast radius
29% of the dependent artifacts (73) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 2,398 |
| 2 hops | 3,493 |
| 3 hops | 208 |
| 4 hops | 105 |
| 5 hops | 3 |
Most used dependents
- org.springframework.kafka » spring-kafka-test289 usages
- org.springframework.cloud » spring-cloud-starter-stream-kafka280 usages
- org.springframework.cloud » spring-cloud-stream-binder-kafka174 usages
- io.github.embeddedkafka » embedded-kafka74 usages
- com.github.charithe » kafka-junit47 usages
- org.springframework.cloud » spring-cloud-starter-bus-kafka41 usages
- org.apache.atlas » atlas-notification24 usages
- org.locationtech.geowave » geowave-adapter-vector19 usages
- org.springframework.cloud » spring-cloud-stream-binder-kafka-streams15 usages
- net.mguenther.kafka » kafka-junit15 usages
- pl.touk.nussknacker » nussknacker-kafka-test-utils13 usages
- org.locationtech.geowave » geowave-core-ingest13 usages
- org.apache.atlas » atlas-webapp7 usages
- com.consol.citrus » citrus-kafka6 usages
- io.github.embeddedkafka » embedded-kafka-streams6 usages
Computed from the dependency graph of build 20261202.2045 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2022-34917 | nvd.nist.gov |
| Web | apache/kafka commit 14951a8 | github.com |
| Web | apache/kafka commit 2bfa24b | github.com |
| Web | apache/kafka commit aaceb6b | github.com |
| Web | apache/kafka commit c129566 | github.com |
| Web | jira/browse/KAFKA-14063 | issues.apache.org |
| Web | cve-list | kafka.apache.org |
| Web | cve-list | kafka.apache.org |
