CVE-2026-10142 json
kafka-python prior to 2.3.2 Denial of Service via Protocol Parser Frame Length
published 4mo ago modified yesterday also EUVD-2026-36123 , GHSA-m3px-q5gj-j9x7 , PYSEC-2026-2190
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 28%
- public exploits
- 0
- none known
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.
Patch / fix
- pypi kafka-python 2.3.2
- dpkp kafka-python 2.3.2
- python-kafka Debian 14 2.0.2-13
debian advisories DEBIAN-CVE-2026-10142
- python-kafka-python openSUSE Tumbleweed 2.3.2-1.1
opensuse advisories openSUSE-SU-2026:11004-1
- github.com/dpkp/kafka-python@6e48314 commit
- github.com/dpkp/kafka-python@9f92d0f commit
- github.com/dpkp/kafka-python#3019 pull request
- github.com/dpkp/kafka-python#3026 pull request
- github.com/dpkp/kafka-python/releases/tag/2.3.2 release
- vulncheck.com/advisories/kafka-python-prior-to-denial-of-service-via-pro… advisory
Is CVE-2026-10142 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-10142 updated cvss 5.9
kafka-python: kafka-python: Denial of Service due to crafted frame length in protocol parser
-
Red Hat Quay 3 quay/quay-rhel8, quay/quay-rhel9affected: workaround, no fix available “Upgrade to kafka-python 2.3.2 or later. As a workaround, ensure Kafka broker connections use TLS with mutual authentication to prevent man-in-the-middle attacks.”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 4mo ago
Exploit prediction
0.35% chance of exploitation in the next 30 days, higher than 28% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| CNA | 4.0 | 8.7 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| CNA | 4.0 | 8.7 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | kafka-python | <2.3.2 |
2.3.2 |
Affected products
- Dana Powers kafka-python
Classification
- Weakness
-
- CWE-789 Memory Allocation with Excessive Size Value
References
-
github.com
/dpkp/kafka-python/pull/3019
issue-tracking, patch, web
-
github.com
/dpkp/kafka-python/pull/3026
issue-tracking, patch, web
-
github.com
/dpkp/kafka-python/commit/6e4831444f972d169cdd11f5c8d50333cea3f19b
patch, web
-
vulncheck.com
/advisories/kafka-python-prior-to-denial-of-service-via-protocol-parser-frame-length
technical-description, third-party-advisory, web, patch
-
github.com
/dpkp/kafka-python/commit/9f92d0f53ecfee738c54638867c3d67f83017bca
web
-
nvd.nist.gov
/vuln/detail/CVE-2026-10142
advisory
-
github.com
/dpkp/kafka-python
package
-
github.com
/dpkp/kafka-python/releases/tag/2.3.2
web
-
github.com
/pypa/advisory-database/tree/main/vulns/kafka-python/PYSEC-2026-2190.yaml
web
-
github.com
/advisories/GHSA-m3px-q5gj-j9x7
advisory
Sources
- CVE List CVE-2026-10142
- GitHub Advisory GHSA-m3px-q5gj-j9x7
- NVD CVE-2026-10142
- OSV PYSEC-2026-2190
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.