Skip to content
OpenAdvisories
High · 7.5 CVE-2026-10142 EUVD-2026-36123GHSA-m3px-q5gj-j9x7PYSEC-2026-2190

kafka-python prior to 2.3.2 Denial of Service via Protocol Parser Frame Length

Published Jun 10, 2026 · Updated Nov 8, 2026 · Assigned by VulnCheck

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.

Affected products

VendorProductAffectedFixed
Dana Powers kafka-python — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 python-kafka 2.0.2-13 —
Debian 13 python-kafka No fix yet —
Debian 12 python-kafka No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 python-kafka No fix yet —
Ubuntu 26.04 LTS python-kafka No fix yet —
Ubuntu 25.10 python-kafka No fix yet —
Ubuntu 24.04 LTS python-kafka No fix yet —
Ubuntu 22.04 LTS python-kafka No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS python-kafka No fix yet —
Ubuntu 18.04 LTS python-kafka No fix yet —
Ubuntu 16.04 LTS python-kafka No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-kafka-python 2.3.2-1.1 openSUSE-SU-2026:11004-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI kafka-python < 2.3.2 2.3.2 GHSA-m3px-q5gj-j9x7

Advisories 1

References