Loading...
Skip to main content

CVE-2025-27819 — Vulnerability in org.apache.kafka:kafka_2.12 —...

HIGH

Apache Kafka Deserialization of Untrusted Data vulnerability

Published June 10, 2025Updated December 11, 2025Source: osv

Summary

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

Advisory Timeline

  • First published June 10, 2025 (489 days ago).
  • Last revised December 11, 2025 — 184 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update org.apache.kafka:kafka_2.12 to 3.4.0 or later
<!-- Update pom.xml dependency version to 3.4.0 for org.apache.kafka:kafka_2.12 -->
Maven
Update org.apache.kafka:kafka_2.13 to 3.4.0 or later
<!-- Update pom.xml dependency version to 3.4.0 for org.apache.kafka:kafka_2.13 -->

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (8)

Affects 1 ecosystem: maven (8).

PackageEcosystemAffectedFixed In
org.apache.kafka:kafka_2.12
maven
0.10.1.1, 0.10.2.0, 0.10.2.1, 0.10.2.2 (+45 more)3.4.0
org.apache.kafka:kafka_2.9.1
maven
0.8.0, 0.8.0-beta1, 0.8.1, 0.8.1.1 (+4 more)Range-based data available
org.apache.kafka:kafka_2.11
maven
0.10.0.0, 0.10.0.1, 0.10.1.0, 0.10.1.1 (+29 more)Range-based data available
org.apache.kafka:kafka_2.10
maven
0.10.0.0, 0.10.0.1, 0.10.1.0, 0.10.1.1 (+12 more)Range-based data available
org.apache.kafka:kafka_2.8.0
maven
0.8.0, 0.8.0-beta1, 0.8.1, 0.8.1.1Range-based data available
org.apache.kafka:kafka_2.9.2
maven
0.8.0, 0.8.0-beta1, 0.8.1, 0.8.1.1 (+4 more)Range-based data available
org.apache.kafka:kafka_2.8.2
maven
0.8.0, 0.8.0-beta1, 0.8.1Range-based data available
org.apache.kafka:kafka_2.13
maven
2.4.0, 2.4.1, 2.5.0, 2.5.1 (+23 more)3.4.0

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-502
    Deserialization of Untrusted DataMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2025-27819?
Apache Kafka Deserialization of Untrusted Data vulnerability This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.8/10).
How do I check if my project is affected by CVE-2025-27819?
CVE-2025-27819 affects org.apache.kafka:kafka_2.12, org.apache.kafka:kafka_2.9.1 and org.apache.kafka:kafka_2.11 (and 5 more). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-27819 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.8

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-mcwh-c9pg-xw43
BIT-kafka-2025-27819

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies