CVE-2026-10142 Details
Description
kafka-python prior to 2.3.2 contains a denial-of-service vulnerability in the protocol parser that allows a malicious broker or machine-in-the-middle attacker to exhaust memory or hang connections by sending a crafted 4-byte frame length value without bounds validation. Attackers can send a specially crafted frame length through the receive_bytes() function to trigger either a multi-gigabyte memory allocation or an uncaught ValueError that leaves the connection in a broken state, causing requests to hang and consumers to stop heartbeating until restart.
A denial-of-service vulnerability has been identified in kafka-python versions prior to 2.3.2. The issue resides in the protocol parser, where a malicious broker or a machine-in-the-middle attacker can send a crafted 4-byte frame length value that bypasses validation. This exploitation can lead to excessive memory consumption or cause connections to hang. The vulnerability is triggered by sending a specially crafted frame length through the receive_bytes() function, which can either result in a multi-gigabyte memory allocation or an uncaught ValueError. The latter leaves the connection in a disrupted state, causing requests to stall and consumers to halt heartbeating until a restart occurs.
Users can upgrade to kafka-python version 2.3.2 or later to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 11, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/dpkp/kafka-python/commit/6e4831444f972d169cdd11f5c8d50333cea3f19b | [email protected] | Patch |
| https://github.com/dpkp/kafka-python/pull/3019 | [email protected] | Issue TrackingPatch |
| https://github.com/dpkp/kafka-python/pull/3026 | [email protected] | Issue TrackingPatch |
| https://www.vulncheck.com/advisories/kafka-python-prior-to-denial-of-service-via-protocol-parser-frame-length | [email protected] | PatchThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-789 | Memory Allocation with Excessive Size Value | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| dpkp kafka-python | < 2.3.2 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 8, 2026 | CVE Modified | [email protected] |
| Jul 23, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 11, 2026 | Initial Analysis | [email protected] |
| Jun 10, 2026 | New CVE Received | [email protected] |