# CVE-2025-27819: Apache Kafka: Possible RCE/Denial of service attack via SASL JAAS JndiLoginModule configuration

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.39% (percentile 73, 2026-11-28)
- **CWE:** CWE-502
- **Aliases:** BIT-kafka-2025-27819, GHSA-mcwh-c9pg-xw43
- **Published:** 2025-06-10T07:54:41.896Z
- **Modified:** 2026-06-17T09:04:16.633Z

## Who should check

- Projects that depend on Maven package org.apache.kafka:kafka\_2.10 (0.10.0.0, 0.10.0.1, 0.10.1.0, 0.10.1.1, 0.10.2.0, 0.10.2.1, 0.10.2.2, 0.8.0, 0.8.1, 0.8.1.1)
- Projects that depend on Maven package org.apache.kafka:kafka\_2.11 (0.10.0.0, 0.10.0.1, 0.10.1.0, 0.10.1.1, 0.10.2.0, 0.10.2.1, 0.10.2.2, 0.11.0.0, 0.11.0.1, 0.11.0.2)
- Projects that depend on Maven package org.apache.kafka:kafka\_2.12 (\< 3.4.0)
- Projects that depend on Maven package org.apache.kafka:kafka\_2.13 (\< 3.4.0)
- Projects that depend on Maven package org.apache.kafka:kafka\_2.8.0 (0.8.0, 0.8.0-beta1, 0.8.1, 0.8.1.1)
- Projects that depend on Maven package org.apache.kafka:kafka\_2.8.2 (0.8.0, 0.8.0-beta1, 0.8.1)
- Projects that depend on Maven package org.apache.kafka:kafka\_2.9.1 (0.8.0, 0.8.0-beta1, 0.8.1, 0.8.1.1, 0.8.2-beta, 0.8.2.0, 0.8.2.1, 0.8.2.2)
- Projects that depend on Maven package org.apache.kafka:kafka\_2.9.2 (0.8.0, 0.8.0-beta1, 0.8.1, 0.8.1.1, 0.8.2-beta, 0.8.2.0, 0.8.2.1, 0.8.2.2)

## 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 and fixed versions

- Maven `org.apache.kafka:kafka_2.10`: affected 0.10.0.0, 0.10.0.1, 0.10.1.0, 0.10.1.1, 0.10.2.0, 0.10.2.1, 0.10.2.2, 0.8.0, 0.8.1, 0.8.1.1; fixed no fix listed yet (osv)
- Maven `org.apache.kafka:kafka_2.11`: affected 0.10.0.0, 0.10.0.1, 0.10.1.0, 0.10.1.1, 0.10.2.0, 0.10.2.1, 0.10.2.2, 0.11.0.0, 0.11.0.1, 0.11.0.2; fixed no fix listed yet (osv)
- Maven `org.apache.kafka:kafka_2.12`: affected \< 3.4.0; fixed 3.4.0 (osv)
- Maven `org.apache.kafka:kafka_2.13`: affected \< 3.4.0; fixed 3.4.0 (osv)
- Maven `org.apache.kafka:kafka_2.8.0`: affected 0.8.0, 0.8.0-beta1, 0.8.1, 0.8.1.1; fixed no fix listed yet (osv)
- Maven `org.apache.kafka:kafka_2.8.2`: affected 0.8.0, 0.8.0-beta1, 0.8.1; fixed no fix listed yet (osv)
- Maven `org.apache.kafka:kafka_2.9.1`: affected 0.8.0, 0.8.0-beta1, 0.8.1, 0.8.1.1, 0.8.2-beta, 0.8.2.0, 0.8.2.1, 0.8.2.2; fixed no fix listed yet (osv)
- Maven `org.apache.kafka:kafka_2.9.2`: affected 0.8.0, 0.8.0-beta1, 0.8.1, 0.8.1.1, 0.8.2-beta, 0.8.2.0, 0.8.2.1, 0.8.2.2; fixed no fix listed yet (osv)
- Apache Software Foundation Apache Kafka: \>= 2.0.0, \<= 3.3.2 (cvelist)

## Mitigation

- Upgrade org.apache.kafka:kafka\_2.12 to 3.4.0 or later.
- Upgrade org.apache.kafka:kafka\_2.13 to 3.4.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-27819. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-27819.md
Affected: org.apache.kafka:kafka_2.10 0.10.0.0, 0.10.0.1, 0.10.1.0, 0.10.1.1, 0.10.2.0, 0.10.2.1, 0.10.2.2, 0.8.0, 0.8.1, 0.8.1.1; org.apache.kafka:kafka_2.11 0.10.0.0, 0.10.0.1, 0.10.1.0, 0.10.1.1, 0.10.2.0, 0.10.2.1, 0.10.2.2, 0.11.0.0, 0.11.0.1, 0.11.0.2; org.apache.kafka:kafka_2.12 < 3.4.0; org.apache.ka…
Fixed in: 3.4.0

Steps:
1. Search this machine and project for org.apache.kafka:kafka_2.10 (Maven), org.apache.kafka:kafka_2.11 (Maven), org.apache.kafka:kafka_2.12 (Maven), org.apache.kafka:kafka_2.13 (Maven), org.apache.kafka:kafka_2.8.0 (Maven), org.apache.kafka:kafka_2.8.2 (Maven): dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-27819 being exploited?

There is no confirmed exploitation: CVE-2025-27819 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.39% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2025-27819?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2025-27819?

org.apache.kafka:kafka\_2.10 0.10.0.0, 0.10.0.1, 0.10.1.0, 0.10.1.1, 0.10.2.0, 0.10.2.1, 0.10.2.2, 0.8.0, 0.8.1, 0.8.1.1; org.apache.kafka:kafka\_2.11 0.10.0.0, 0.10.0.1, 0.10.1.0, 0.10.1.1, 0.10.2.0, 0.10.2.1, 0.10.2.2, 0.11.0.0, 0.11.0.1, 0.11.0.2; org.apache.kafka:kafka\_2.12 \< 3.4.0; org.apache.kafka:kafka\_2.13 \< 3.4.0; org.apache.kafka:kafka\_2.8.0 0.8.0, 0.8.0-beta1, 0.8.1, 0.8.1.1; org.apache.kafka:kafka\_2.8.2 0.8.0, 0.8.0-beta1, 0.8.1; org.apache.kafka:kafka\_2.9.1 0.8.0, 0.8.0-beta1, 0.8.1, 0.8.1.1, 0.8.2-beta, 0.8.2.0, 0.8.2.1, 0.8.2.2; org.apache.kafka:kafka\_2.9.2 0.8.0, 0.8.0-beta1, 0.8.1, 0.8.1.1, 0.8.2-beta, 0.8.2.0, 0.8.2.1, 0.8.2.2.

### Is there a fix for CVE-2025-27819?

Yes. Fixed in 3.4.0. Upgrade org.apache.kafka:kafka\_2.12 to 3.4.0 or later. Upgrade org.apache.kafka:kafka\_2.13 to 3.4.0 or later.

### How do I check if I'm affected by CVE-2025-27819?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://kafka.apache.org/cve-list>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-27819>
- vendor: <https://github.com/advisories/GHSA-26f8-x7cc-wqpc>
- other: <https://github.com/apache/kafka>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-27819>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-mcwh-c9pg-xw43> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-27819> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-27819>
