High severity · published Jun 10, 2026
CVE-2026-10142
kafka-python prior to 2.3.2 Denial of Service via Protocol Parser Frame Length
7.5
CVSS
0.3%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
None
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 28% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
KA
kafka-python · Dana Powers
before 2.3.2 · source: vendor, NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-10142
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-10142
technical-description
https://www.vulncheck.com/advisories/kafka-python-prior-to-denial-of-service-via-protocol-parser-frame-length
issue-tracking
https://github.com/dpkp/kafka-python/pull/3019
issue-tracking
https://github.com/dpkp/kafka-python/pull/3026
patch
https://github.com/dpkp/kafka-python/commit/6e4831444f972d169cdd11f5c8d50333cea3f19b
More from kafka-python
7.5
CVE-2026-10143
kafka-python prior to 2.3.2 DoS via SCRAM Iteration Count in scram.py
