CVE-2026-10142

High

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.

SeverityHigh
CVSS7.5
Exploit probability—
ProductDpkp Kafka-python
PublishedJun 10, 2026
First seenJun 10, 2026
Weakness typeCWE-789CWE-789

How to fix

Update
  • dpkp kafka-python2.3.2 or later
  • kafka-python2.3.2 or later

Affected products

ProductAffected versionsFixed in
dpkp kafka-pythonv < 2.3.22.3.2
kafka-pythonPyPIv < 2.3.22.3.2

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2026-10142 · Dpkp Kafka-python · Dark Radar