Skip to main content
← All vulnerabilities
CVE-2026-10142PYSEC-2026-2190GHSA-M3PX-Q5GJ-J9X7

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.3.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • Dana Powers kafka-python

    fixed in 2.3.2

  • kafka-pythonPyPI

    fixed in 2.3.2

References 4

vulncheck.com

GitHub · dpkp/kafka-python