# CVE-2026-10142: kafka-python prior to 2.3.2 Denial of Service via Protocol Parser Frame Length

- Severity: High 8.7 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 30% of CVEs (2026-12-01)
- Published: 2026-06-10T20:13:11.286Z
- Modified: 2026-11-08T14:00:41.132Z
- Also known as: GHSA-m3px-q5gj-j9x7, PYSEC-2026-2190
- Weaknesses: CWE-789
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- Dana Powers kafka-python: before 2.3.2
- kafka-python (PyPI): before 2.3.2
- dpkp kafka-python: before 2.3.2

## Every score

- VulnCheck: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- VulnCheck: CVSS:4.0 8.7 High `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: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 High `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`
- PyPA Advisory Database: CVSS:4.0 `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`

## References

- <https://www.vulncheck.com/advisories/kafka-python-prior-to-denial-of-service-via-protocol-parser-frame-length> (fix, patch, technical-description, third-party-advisory, web)
- <https://github.com/dpkp/kafka-python/pull/3019> (fix, issue-tracking, patch, web)
- <https://github.com/dpkp/kafka-python/pull/3026> (fix, issue-tracking, patch, web)
- <https://github.com/dpkp/kafka-python/commit/6e4831444f972d169cdd11f5c8d50333cea3f19b> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-10142> (advisory)
- <https://github.com/dpkp/kafka-python/commit/9f92d0f53ecfee738c54638867c3d67f83017bca> (web)
- <https://github.com/dpkp/kafka-python> (package)
- <https://github.com/dpkp/kafka-python/releases/tag/2.3.2> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/kafka-python/PYSEC-2026-2190.yaml> (web)
- <https://github.com/advisories/GHSA-m3px-q5gj-j9x7> (advisory)

## Sources

- CVE List: [CVE-2026-10142](https://www.cve.org/CVERecord?id=CVE-2026-10142), CVE Terms of Use, modified 2026-11-08
- GitHub Advisory Database: [GHSA-m3px-q5gj-j9x7](https://github.com/advisories/GHSA-m3px-q5gj-j9x7), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-10142](https://nvd.nist.gov/vuln/detail/CVE-2026-10142), Public domain, modified 2026-10-08
- PyPA Advisory Database: [PYSEC-2026-2190](https://osv.dev/vulnerability/PYSEC-2026-2190), CC-BY-4.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2026-10142 · Whole record: https://cve.day/CVE-2026-10142.json · Rebuilt by cve.day 2026-11-25T22:59:24.368Z
