CVE-2025-27819

Apache Kafka: Possible RCE/Denial of service attack via SASL JAAS JndiLoginModule configuration

Published Jun 10, 2025 CVSS 3.1 · 7.5 High EPSS 1.1% KEV · Not listed
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

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-17641 Apache Kafka Deserialization of Untrusted Data vulnerability
Github GHSA Github GHSA GHSA-mcwh-c9pg-xw43 Apache Kafka Deserialization of Untrusted Data vulnerability
History
Type Values Removed Values Added
Metrics epss

{'score': 0.00054}

epss

{'score': 0.00471}

Type Values Removed Values Added
First Time appeared Apache
Apache kafka
CPEs cpe:2.3:a:apache:kafka:*:*:*:*:*:*:*:*
Vendors & Products Apache
Apache kafka
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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
Title Apache Kafka: Possible RCE/Denial of service attack via SASL JAAS JndiLoginModule configuration
Weaknesses CWE-502
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
Jun 10, 2025, 3:15 PM
Reserved
Mar 7, 2025, 10:02 AM
Status
Analyzed
Published
Jun 10, 2025, 8:15 AM
Modified
Jun 17, 2026, 9:04 AM
Severity
Important
Public date
Jun 10, 2025, 7:54 AM