CVE-2025-27819 — kafka_2.10
HIGHCVE-2025-27819 is a high-severity (CVSS 7.5) Deserialization of Untrusted Data vulnerability in org.apache.kafka:kafka_2.10. A fix is available for org.apache.kafka:kafka_2.10 — see the affected versions and patch details below.
Apache Kafka: Possible RCE/Denial of service attack via SASL JAAS JndiLoginModule configuration
Exploitation Status
No confirmed exploitation observed yet
- CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2025-27819.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
org.apache.kafka:kafka_2.10☕org.apache.kafka:kafka_2.11☕org.apache.kafka:kafka_2.12☕org.apache.kafka:kafka_2.13☕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.2Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
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 Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.apache.kafka:kafka_2.10 | all versions | No fix |
| ☕Maven | org.apache.kafka:kafka_2.11 | all versions | No fix |
| ☕Maven | org.apache.kafka:kafka_2.12 | all versions | 3.4.0org.apache.kafka:kafka_2.12:3.4.0 |
| ☕Maven | org.apache.kafka:kafka_2.13 | all versions | 3.4.0org.apache.kafka:kafka_2.13:3.4.0 |
| ☕Maven | org.apache.kafka:kafka_2.8.0 | all versions | No fix |
| ☕Maven | org.apache.kafka:kafka_2.8.2 | all versions | No fix |
Affected Products
kafkaapacheDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.apache.kafka:kafka_2.10, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
A fix is available for CVE-2025-27819; check the affected-versions list above or the advisory for the patched release of org.apache.kafka:kafka_2.10, then make sure no transitive dependency still pins the vulnerable range.
Workarounds
Do not deserialise data from untrusted sources: where the format allows it, restrict deserialisation to an explicit allowlist of expected types, and prefer a data-only format (JSON, Protobuf) over one that can reconstruct arbitrary objects until you can upgrade.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
No Red Hat products or offerings are affected by this vulnerability. This vulnerability is categorized as Important rather than Moderate due to its potential to enable remote code execution (RCE) or denial of service (DoS) in a core component of Apache Kafka—its brokers—under certain but realistic conditions. While…
To mitigate this flaw, disable the problematic login module's usage in the SASL JAAS configuration using the system property, "-Dorg.apache.kafka.disallowed.login.modules".Source: Red Hat security advisory for CVE-2025-27819 (CC BY 4.0)
| Product | Fixed in | Advisory |
|---|---|---|
| Streams for Apache Kafka 3.1.0 | kafka | RHSA-2025:23417 |
Frequently Asked Questions
Is CVE-2025-27819 in your dependencies?
Find it across Maven, including transitive dependencies.