{"id":"CVE-2026-10142","aliases":["GHSA-m3px-q5gj-j9x7","PYSEC-2026-2190"],"url":"https://o3.security/vulnerability/CVE-2026-10142","summary":"kafka-python prior to 2.3.2 Denial of Service via Protocol Parser Frame Length","details":"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.","published":"2026-06-10T20:13:11.286Z","modified":"2026-09-01T17:40:44.614830021Z","cvss":null,"epss":{"score":0.00348,"percentile":0.27616,"asOf":"2026-09-02"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"PyPI","name":"kafka-python","fixedVersion":"2.3.2"}],"fix":{"url":"https://github.com/dpkp/kafka-python/commit/6e4831444f972d169cdd11f5c8d50333cea3f19b","label":"dpkp/kafka-python@6e48314"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/10xxx/CVE-2026-10142.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-10142"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/kafka-python-prior-to-denial-of-service-via-protocol-parser-frame-length"},{"type":"REPORT","url":"https://github.com/dpkp/kafka-python/pull/3019"},{"type":"REPORT","url":"https://github.com/dpkp/kafka-python/pull/3026"},{"type":"FIX","url":"https://github.com/dpkp/kafka-python/commit/6e4831444f972d169cdd11f5c8d50333cea3f19b"},{"type":"PACKAGE","url":"https://github.com/dpkp/kafka-python"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-09-01T17:40:44.614830021Z"}}