kafka-python prior to 2.3.2 Denial of Service via Protocol Parser Frame Length
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 1 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-789.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | kafka-python (PyPI) | before 2.3.2 | 2.3.2 | Patch available | GHSA-m3px-q5gj-j9x7 |
- kafka-python (PyPI) Vendor— Affected before 2.3.2 Fixed in 2.3.2 Patch available GHSA-m3px-q5gj-j9x7
Remediation
- Fix · GHSA-m3px-q5gj-j9x7 kafka-python (PyPI) Fixed in 2.3.2 Advisory →
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
Dana Powers kafka-python 2.3.2
2 records Highest priority Priority MEDIUM 2 MEDIUM
Other records, highest priority first
- TI-2026-08887 kafka-python prior to 2.3.2 DoS via SCRAM Iteration Count in scram.pyPriority MEDIUM 44
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Quay 3 | Affected | No fix yet: Fix deferred |
Timeline
- 2026-10-02 Threatist record created from CVE-2026-10142
- 2026-10-03 Alias added: GHSA-m3px-q5gj-j9x7
References
Patch 3
More Dpkp Kafka-python vulnerabilities
- TI-2026-08887 kafka-python prior to 2.3.2 DoS via SCRAM Iteration Count in scram.py CVSS 4.0HIGH 8.7
Sources
- CVE-2026-10142 · CVE Program
- CVE-2026-10142 · NVD
- FIRST EPSS
- GHSA-m3px-q5gj-j9x7 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-10142 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences