Source: python-kafka
X-Debbugs-CC: [email protected]
Severity: important
Tags: security

Hi,

The following vulnerability was published for python-kafka.

CVE-2026-10142[0]:
| 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.

https://github.com/dpkp/kafka-python/pull/3019
https://github.com/dpkp/kafka-python/pull/3026
Fixed by: 
https://github.com/dpkp/kafka-python/commit/6e4831444f972d169cdd11f5c8d50333cea3f19b
 (3.0.0)
 

If you fix the vulnerability please also make sure to include the
CVE (Common Vulnerabilities & Exposures) id in your changelog entry.

For further information see:

[0] https://security-tracker.debian.org/tracker/CVE-2026-10142
    https://www.cve.org/CVERecord?id=CVE-2026-10142

Please adjust the affected versions in the BTS as needed.

Reply via email to