Uncontrolled Memory Allocation Affecting python-kafka package, versions *


Severity

Recommended
low

Based on Debian security rating.

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-DEBIAN13-PYTHONKAFKA-17328823
  • 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?

There is no fixed version for Debian:13 python-kafka.

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:13 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