Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-10142
Published:June 10, 2026
Updated:June 28, 2026
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.
Affected Packages
kafka-python (CONDA):
Affected version(s) >=1.3.3 <2.2.20
Fix Suggestion:
Update to version 2.2.20
kafka-python (CONDA):
Affected version(s) >=2.3.0 <2.3.2
Fix Suggestion:
Update to version 2.3.2
kafka-python (PYTHON):
Affected version(s) >=2.3.0 <2.3.2
Fix Suggestion:
Update to version 2.3.2
kafka-python (PYTHON):
Affected version(s) >=0.9.0 <2.2.20
Fix Suggestion:
Update to version 2.2.20
Do you need more information?
Contact Us
CVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Weakness Type (CWE)
Memory Allocation with Excessive Size Value
EPSS
Base Score:
0.35