CVE-2025-27819
JSON

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 packageVersionsReported by
Apache Software Foundation Apache Kafkafrom 2.0.0 up to 3.3.2CVE List
org.apache.kafka:kafka_2.10 (Maven)all versionsGitHub Advisory Database
org.apache.kafka:kafka_2.11 (Maven)all versionsGitHub Advisory Database
org.apache.kafka:kafka_2.12 (Maven)before 3.4.0GitHub Advisory Database
org.apache.kafka:kafka_2.13 (Maven)before 3.4.0GitHub Advisory Database
org.apache.kafka:kafka_2.8.0 (Maven)all versionsGitHub Advisory Database
org.apache.kafka:kafka_2.8.2 (Maven)all versionsGitHub Advisory Database
org.apache.kafka:kafka_2.9.1 (Maven)all versionsGitHub Advisory Database
org.apache.kafka:kafka_2.9.2 (Maven)all versionsGitHub Advisory Database
apache kafkafrom 2.0.0 up to 3.3.2NVD
kafka (Bitnami)from 2.0.0 before 3.4.1Bitnami Vulnerability Database

All scores

CISA-ADP7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Bitnami Vulnerability Databasehigh rating

Classification

CWE-502

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

Sources

SourceRecordLicence
CVE ListCVE-2025-27819 changed 2025-06-10CVE Terms of Use
GitHub Advisory DatabaseGHSA-mcwh-c9pg-xw43 changed 2025-12-11CC-BY-4.0
NVDCVE-2025-27819 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-KAFKA-2025-27819 changed 2026-09-08Apache-2.0