CVE-2026-10142: Dana Powers kafka-python · Excessive Memory Allocation
Affects Dana Powers kafka-pythonSource CVE Database V5
Not known to be exploited · CVSS 7.5 High : upgrade to 2.3.2 soon.
Data as of 30 Oct 2026, 11:52 UTC
- 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:HExploitation evidence
Disclosed: evidence found.
CVE published 10 Jun 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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 30 Oct 2026.
What to do
Upgrade Dana Powers kafka-python to 2.3.2.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Dana Powerskafka-python | Affected
| Fixed in
|
GitHubkafka-pythonpkg:github/kafka-pythonOther threats | Affected
| Fixed in
|
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
- vulncheck.com/advisories/kafka-python-prior-to-denial-of-service-via-protocol-parser-frame-length (opens in a new tab)
- github.com/dpkp/kafka-python/pull/3019 (opens in a new tab)
- github.com/dpkp/kafka-python/pull/3026 (opens in a new tab)
- github.com/dpkp/kafka-python/commit/6e4831444f972d169cdd11f5c8d50333cea3f19b (opens in a new tab)