CVE-2026-10142: CWE-789 Memory Allocation with Excessive Size Value in Dana Powers kafka-python
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.
AI Analysis
Technical Summary
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.
CVE-2026-10142: CWE-789 Memory Allocation with Excessive Size Value in Dana Powers 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
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.