Vulnerabilities in pkg:maven/org.apache.kafka/kafka_2.9.1
PACKAGECVE-2025-27819 is a HIGH (CVSS 8.8) apache kafka deserialization of untrusted vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Kafka 2.10 libraries in the Maven ecosystem. The issue involves apache kafka deserialization of untrusted data vulnerability. Remediation is available by upgrading affected packages to version 3.4.0.
pkg:maven/org.apache.kafka/kafka_2.9.1
Vulnerability advisories affecting package pkg:maven/org.apache.kafka/kafka_2.9.1. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-mcwh-c9pg-xw43 | CVE-2025-27819 | HIGH | Apache Kafka Deserialization of Untrusted Data vulnerability |
CVE-2025-27819 at a Glance
Security Impact
CVSS: 8.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2025-27819
To remediate this vulnerability, upgrade all affected Kafka 2.10 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka_2.10</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka_2.11</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka_2.12</artifactId>
<version>3.4.0</version>
</dependency>
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka_2.13</artifactId>
<version>3.4.0</version>
</dependency>
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka_2.8.0</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka_2.8.2</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka_2.9.1</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka_2.9.2</artifactId>
<version>Latest secure release</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.apache.kafka
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2025-27819, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.apache.kafka
Analyze the terminal output to locate any version of Kafka 2.10 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.4.0), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.apache.kafka command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Kafka 2.10, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-27819 Affected Kafka 2.10 Versions
8 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.apache.kafka:kafka_2.10
|
Maven |
|
|
|
org.apache.kafka:kafka_2.11
|
Maven |
|
|
|
org.apache.kafka:kafka_2.12
|
Maven |
< 3.4.0
|
3.4.0
|
|
org.apache.kafka:kafka_2.13
|
Maven |
< 3.4.0
|
3.4.0
|
|
org.apache.kafka:kafka_2.8.0
|
Maven |
|
|
|
org.apache.kafka:kafka_2.8.2
|
Maven |
|
|
|
org.apache.kafka:kafka_2.9.1
|
Maven |
|
|
|
org.apache.kafka:kafka_2.9.2
|
Maven |
|
|
References
Frequently Asked Questions
What is CVE-2025-27819?
Which Kafka 2.10 versions are affected?
What version fixes CVE-2025-27819?
Is kafka_2.10 affected?
Is kafka_2.11 affected?
What is the CVSS score of CVE-2025-27819?
What CWE is associated with CVE-2025-27819?
How can I check Maven dependencies for CVE-2025-27819?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mcwh-c9pg-xw43",
"modified" : "2025-12-11T20:20:13Z",
"published" : "2025-06-10T09:30:31Z",
"aliases" : [ "CVE-2025-27819" ],
"summary" : "Apache Kafka Deserialization of Untrusted Data vulnerability",
"details" : "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.\n\n\nSince 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" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.kafka:kafka_2.10"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "< 3.4.0"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.kafka:kafka_2.11"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "< 3.4.0"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.kafka:kafka_2.12"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.4.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.kafka:kafka_2.13"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.4.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.kafka:kafka_2.8.0"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "< 3.4.0"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.kafka:kafka_2.8.2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "< 3.4.0"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.kafka:kafka_2.9.1"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "< 3.4.0"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.kafka:kafka_2.9.2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "< 3.4.0"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-27819"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-26f8-x7cc-wqpc"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apache/kafka"
}, {
"type" : "WEB",
"url" : "https://kafka.apache.org/cve-list"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-502" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-06-10T20:21:18Z",
"nvd_published_at" : "2025-06-10T08:15:22Z"
}
}