{"cve":"CVE-2026-10142","nvd":{"published":"2026-06-10T22:16:55.350","modified":"2026-10-08T16:17:06.240","status":"Analyzed","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_v4":{"vector":"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","score":8.7},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5},"cwes":["CWE-789"],"references":["https://github.com/dpkp/kafka-python/commit/6e4831444f972d169cdd11f5c8d50333cea3f19b","https://github.com/dpkp/kafka-python/pull/3019","https://github.com/dpkp/kafka-python/pull/3026","https://www.vulncheck.com/advisories/kafka-python-prior-to-denial-of-service-via-protocol-parser-frame-length"],"products":["dpkp:kafka-python"],"source":"nvd","synced_at":"2026-10-19T22:38:48.522727527+00:00"},"epss":{"cve":"CVE-2026-10142","score":0.00348,"percentile":0.28083,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-m3px-q5gj-j9x7","url":"https://osv.dev/vulnerability/GHSA-m3px-q5gj-j9x7","summary":"kafka-python vulnerable to denial of service through an unvalidated protocol frame length","modified":"2026-09-10T03:51:08.925920927Z","packages":[{"ecosystem":"PyPI","name":"kafka-python","purl":"pkg:pypi/kafka-python","ranges":["<2.3.2"],"fixed":["2.3.2"]}]},{"id":"PYSEC-2026-2190","url":"https://osv.dev/vulnerability/PYSEC-2026-2190","summary":"","modified":"2026-09-10T11:15:08.157513646Z","packages":[{"ecosystem":"PyPI","name":"kafka-python","purl":"pkg:pypi/kafka-python","ranges":["<2.3.2"],"fixed":["2.3.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}