Skip to main content
VulnerabilityPublished Updated

CVE-2026-10142: Dana Powers kafka-python · Excessive Memory Allocation

Affects Dana Powers kafka-pythonSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 7.5 High : upgrade to 2.3.2 soon.

Data as of 30 Oct 2026, 11:34 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.3% chance of exploitation in 30 days – higher than 28% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 2.3.2
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 10 Jun 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Oct 2026.

What to do

Upgrade Dana Powers kafka-python to 2.3.2.

Affected software

ProductAffectedFixed in
Dana Powerskafka-pythonAffected
  • <2.3.2
Fixed in
  • 2.3.2
GitHubkafka-pythonpkg:github/kafka-pythonOther threatsAffected
  • <2.3.2
Fixed in
  • 2.3.2

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

In the meantime, avoid using kafka-python versions prior to 2.3.2 in environments exposed to untrusted brokers or networks. Restarting the client can temporarily restore functionality after an attack triggers the issue.

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.

References

Community reviews

Loading reviews…