cve.bz

CVE-2025-27819 apache kafka: Deserialization of Untrusted Data

7.5 highEPSS 1.1%Fix available

High (7.5) in apache kafka. EPSS 1.1% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.kafka:kafka_2.12 3.4.0.

On this page
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

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
1.1% (unchanged from 1.1% a week ago; 1.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 67th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2025-06-10. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-502 Deserialization of Untrusted Data
OWASP Top 10
A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-27819 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-27819?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-27819?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-27819 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Apache Software Foundation Apache Kafkafrom 2.0.0 through 3.3.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-mcwh-c9pg-xw43Mavenorg.apache.kafka:kafka_2.10all versionsno fix published
GHSA-mcwh-c9pg-xw43Mavenorg.apache.kafka:kafka_2.11all versionsno fix published
GHSA-mcwh-c9pg-xw43Mavenorg.apache.kafka:kafka_2.12<3.4.03.4.0
GHSA-mcwh-c9pg-xw43Mavenorg.apache.kafka:kafka_2.13<3.4.03.4.0
GHSA-mcwh-c9pg-xw43Mavenorg.apache.kafka:kafka_2.8.0all versionsno fix published
GHSA-mcwh-c9pg-xw43Mavenorg.apache.kafka:kafka_2.8.2all versionsno fix published
GHSA-mcwh-c9pg-xw43Mavenorg.apache.kafka:kafka_2.9.1all versionsno fix published
GHSA-mcwh-c9pg-xw43Mavenorg.apache.kafka:kafka_2.9.2all versionsno fix published

Red Hat

Red Hat rates this Important.

Red Hat's statement

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 exploitation requires AlterConfigs permission and network access to the Kafka cluster, these privileges are commonly granted to administrative or automation accounts in real-world deployments. The core issue arises from unsafe JAAS configuration allowing the use of JndiLoginModule, which can trigger JNDI lookups and result in arbitrary code execution if a malicious LDAP or RMI server is referenced. Given Kafka's central role in data pipelines and real-time processing systems, a successful exploit could lead to a full cluster compromise, service disruption, or even lateral movement within a network.

Red Hat's mitigation

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".

ProductPackageStateAdvisory
Streams for Apache Kafka 3.1.0kafkaFixed 2025-12-16RHSA-2025:23417
A-MQ Clients 2kafka-clientsNot affected
Logging Subsystem for Red Hat OpenShiftkafka_2.11Not affected
Logging Subsystem for Red Hat OpenShiftkafka-clientsNot affected
OpenShift Serverlessopenshift-serverless-1/kn-ekb-dispatcher-rhel8Not affected
OpenShift Serverlessopenshift-serverless-1/kn-ekb-kafka-controller-rhel8Not affected
OpenShift Serverlessopenshift-serverless-1/kn-ekb-post-install-rhel8Not affected
OpenShift Serverlessopenshift-serverless-1/kn-ekb-receiver-rhel8Not affected
OpenShift Serverlessopenshift-serverless-1/kn-ekb-webhook-kafka-rhel8Not affected
OpenShift Serverlessopenshift-serverless-1/kn-eventing-istio-controller-rhel8Not affected
Red Hat build of Apache Camel 4 for Quarkus 3quarkus-camel-bomNot affected
Red Hat build of Apache Camel 4 for Quarkus 3quarkus-cxf-bomNot affected
Red Hat build of Apache Camel for Spring Boot 4connect-apiNot affected
Red Hat build of Apache Camel for Spring Boot 4connect-fileNot affected
Red Hat build of Apache Camel for Spring Boot 4connect-jsonNot affected
Red Hat build of Apache Camel for Spring Boot 4connect-runtimeNot affected
Red Hat build of Apache Camel for Spring Boot 4connect-transformsNot affected
Red Hat build of Apache Camel for Spring Boot 4kafka_2.13Not affected
Red Hat build of Apache Camel for Spring Boot 4kafka-clientsNot affected
Red Hat build of Apache Camel for Spring Boot 4kafka-group-coordinatorNot affected
356 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-27819.

Attack patterns (CAPEC)

  • CAPEC-586 Object Injection Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON