CVE-2026-10142

NameCVE-2026-10142
Descriptionkafka-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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1139878

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
python-kafka (PTS)bookworm2.0.2-3vulnerable
trixie2.0.2-9vulnerable
forky, sid2.0.2-13fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
python-kafkasource(unstable)2.0.2-131139878

Notes

[trixie] - python-kafka <no-dsa> (Minor issue)
[bookworm] - python-kafka <postponed> (Minor issue)
[bullseye] - python-kafka <postponed> (Minor issue)
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/bdb46ab1fe4f090dd8bf710c7ddb778993bbc16b (3.0.0)
Fixed by: https://github.com/dpkp/kafka-python/commit/7250337f54ee60695f2a7faedd1ec2758fc7ac29 (3.0.0)

Search for package or bug name: Reporting problems