Uncontrolled Memory Allocation Affecting python-kafka package, versions <2.0.2-12


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.35% (27th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIANUNSTABLE-PYTHONKAFKA-17328822
  • published13 Jun 2026
  • disclosed10 Jun 2026

Introduced: 10 Jun 2026

CVE-2026-10142  (opens in a new tab)
CWE-789  (opens in a new tab)

How to fix?

Upgrade Debian:unstable python-kafka to version 2.0.2-12 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream python-kafka package and not the python-kafka package as distributed by Debian. See How to fix? for Debian:unstable relevant fixed versions and status.

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 Base Scores

version 3.1