CVE-2025-27819
Apache Kafka Deserialization of Untrusted Data vulnerability
Description
In CVE-2023-25194, we announced the RCE/Denial of service attack via SASL JAAS JndiLoginModule configuration in Kafka Connect API. But not only Kafka Connect API is vulnerable to this attack, the Apache Kafka brokers also have this vulnerability. To exploit this vulnerability, the attacker needs to be able to connect to the Kafka cluster and have the AlterConfigs permission on the cluster resource.
Since Apache Kafka 3.4.0, we have added a system property ("-Dorg.apache.kafka.disallowed.login.modules") to disable the problematic login modules usage in SASL JAAS configuration. Also by default "com.sun.security.auth.module.JndiLoginModule" is disabled in Apache Kafka 3.4.0, and "com.sun.security.auth.module.JndiLoginModule,com.sun.security.auth.module.LdapLoginModule" is disabled by default in in Apache Kafka 3.9.1/4.0.0
Affected Maven artifacts (8)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.kafka » kafka_2.10 | * | - |
| org.apache.kafka » kafka_2.11 | * | - |
| org.apache.kafka » kafka_2.12 | < 3.4.0 | 3.4.0 |
| org.apache.kafka » kafka_2.13 | < 3.4.0 | 3.4.0 |
| org.apache.kafka » kafka_2.8.0 | * | - |
| org.apache.kafka » kafka_2.8.2 | * | - |
| org.apache.kafka » kafka_2.9.1 | * | - |
| org.apache.kafka » kafka_2.9.2 | * | - |
Blast radius
66% of the dependent artifacts (2,473) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 72,343 |
| 2 hops | 117,761 |
| 3 hops | 32,979 |
| 4 hops | 45,717 |
| 5 hops | 29,254 |
| 6 hops | 12,401 |
Most used dependents
- org.apache.spark » spark-sql3,174 usages
- org.apache.spark » spark-core2,899 usages
- org.apache.spark » spark-mllib831 usages
- org.apache.hive » hive-exec699 usages
- org.apache.spark » spark-streaming670 usages
- org.apache.spark » spark-hive633 usages
- org.apache.spark » spark-catalyst502 usages
- org.apache.hive » hive-metastore480 usages
- org.apache.hadoop » hadoop-minicluster475 usages
- org.apache.hive » hive-jdbc404 usages
- io.confluent » kafka-avro-serializer359 usages
- org.apache.hive » hive-common305 usages
- org.apache.hive » hive-service301 usages
- org.springframework.kafka » spring-kafka-test289 usages
- org.springframework.cloud » spring-cloud-starter-stream-kafka280 usages
Computed from the dependency graph of build 20261124.0621 (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.
