7.5high
Apache Kafka: Possible RCE/Denial of service attack via SASL JAAS JndiLoginModule configuration
- Severity
- 7.5high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 1.11% (higher than 66% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- apache
- Also known as
- GHSA-mcwh-c9pg-xw43BIT-KAFKA-2025-27819
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
| Product or package | Versions | Reported by |
|---|---|---|
| Apache Software Foundation Apache Kafka | from 2.0.0 up to 3.3.2 | CVE List |
| org.apache.kafka:kafka_2.10 (Maven) | all versions | GitHub Advisory Database |
| org.apache.kafka:kafka_2.11 (Maven) | all versions | GitHub Advisory Database |
| org.apache.kafka:kafka_2.12 (Maven) | before 3.4.0 | GitHub Advisory Database |
| org.apache.kafka:kafka_2.13 (Maven) | before 3.4.0 | GitHub Advisory Database |
| org.apache.kafka:kafka_2.8.0 (Maven) | all versions | GitHub Advisory Database |
| org.apache.kafka:kafka_2.8.2 (Maven) | all versions | GitHub Advisory Database |
| org.apache.kafka:kafka_2.9.1 (Maven) | all versions | GitHub Advisory Database |
| org.apache.kafka:kafka_2.9.2 (Maven) | all versions | GitHub Advisory Database |
| apache kafka | from 2.0.0 up to 3.3.2 | NVD |
| kafka (Bitnami) | from 2.0.0 before 3.4.1 | Bitnami Vulnerability Database |
All scores
| CISA-ADP | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Bitnami Vulnerability Database | high rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
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
NVD (es)
En CVE-2023-25194, anunciamos un ataque de RCE/denegación de servicio mediante la configuración JndiLoginModule de SASL JAAS en la API de Kafka Connect. Sin embargo, no solo la API de Kafka Connect es vulnerable a este ataque, sino que los brokers de Apache Kafka también presentan esta vulnerabilidad. Para explotar esta vulnerabilidad, el atacante debe poder conectarse al clúster de Kafka y tener el permiso AlterConfigs en el recurso del clúster. A partir de Apache Kafka 3.4.0, hemos añadido una propiedad del sistema ("-Dorg.apache.kafka.disallowed.login.modules") para deshabilitar el uso problemático de los módulos de inicio de sesión en la configuración de SASL JAAS. También, de forma predeterminada, "com.sun.security.auth.module.JndiLoginModule" está deshabilitado en Apache Kafka 3.4.0, y "com.sun.security.auth.module.JndiLoginModule,com.sun.security.auth.module.LdapLoginModule" está deshabilitado de forma predeterminada en Apache Kafka 3.9.1/4.0.0
References
| https://kafka.apache.org/cve-list | advisory, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-27819 | advisory, web | |
| https://github.com/advisories/GHSA-26f8-x7cc-wqpc | advisory | |
| https://github.com/apache/kafka | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-27819 changed 2025-06-10 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-mcwh-c9pg-xw43 changed 2025-12-11 | CC-BY-4.0 |
| NVD | CVE-2025-27819 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-KAFKA-2025-27819 changed 2026-09-08 | Apache-2.0 |