Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.3%top 73%

CVE-2026-10142: CWE-789 Memory Allocation with Excessive Size Value in Dana Powers kafka-python

0
High
VulnerabilityCVE-2026-10142cvecve-2026-10142cwe-789
Published: 06/10/2026 (06/10/2026, 20:13:11 UTC)
Source: CVE Database V5
Vendor/Project: Dana Powers
Product: kafka-python

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.

CVSS v3.1

Score 7.5high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected software

GitHub Actionsmore threats →cve
kafka-python
pkg:github/kafka-python
Affected versions
<2.3.2

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/15/2026, 10:59:37 UTC

Technical Analysis

CVE-2026-10142 is a denial-of-service vulnerability in kafka-python before version 2.3.2. The issue arises from the protocol parser's receive_bytes() function, which does not validate the 4-byte frame length value properly. An attacker can exploit this by sending a specially crafted frame length that triggers either a multi-gigabyte memory allocation or an uncaught ValueError, resulting in memory exhaustion or broken connections. This causes consumer requests to hang and stops heartbeats, disrupting normal operation until a restart occurs.

Potential Impact

The vulnerability can be exploited remotely without privileges or user interaction, allowing an attacker controlling a broker or positioned as a man-in-the-middle to cause a denial of service. This manifests as excessive memory consumption or hung connections, leading to service disruption for kafka-python clients. There is no impact on confidentiality or integrity reported, only availability is affected.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official fix or patch link is provided, users should monitor the vendor's communications for updates. 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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
VulnCheck
Date Reserved
2026-05-29T21:38:32.287Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a29d0220e53e738839869a4

Added to database: 06/10/2026, 20:59:14 UTC

Last enriched: 07/15/2026, 10:59:37 UTC

Last updated: 07/31/2026, 19:22:57 UTC

Views: 59

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses