{"id":"CVE-2026-10142","aliases":["CVE-2026-10142","GHSA-m3px-q5gj-j9x7","PYSEC-2026-2190"],"related":[],"kind":"vulnerability","state":"published","title":"kafka-python prior to 2.3.2 Denial of Service via Protocol Parser Frame Length","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"kafka-python anterior a 2.3.2 contiene una vulnerabilidad de denegación de servicio en el analizador de protocolo que permite a un intermediario malicioso o atacante de máquina-en-el-medio agotar la memoria o colgar las conexiones enviando un valor de longitud de trama de 4 bytes manipulado sin validación de límites. Los atacantes pueden enviar una longitud de trama especialmente manipulada a través de la función receive_bytes() para activar una asignación de memoria de varios gigabytes o un ValueError no capturado que deja la conexión en un estado roto, haciendo que las solicitudes se cuelguen y los consumidores dejen de enviar latidos hasta el reinicio.","source":"nvd"}],"published":"2026-06-10T20:13:11.286Z","modified":"2026-11-08T14:00:41.132Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","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,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS: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,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:4.0","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,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS: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,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","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/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"}],"cwes":["CWE-789"],"affected":[{"ranges":[{"type":"git","introduced":"0","fixed":"2.3.2","status":"affected"}],"vendor":"Dana Powers","product":"kafka-python","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.3.2"}],"ecosystem":"PyPI","package":"kafka-python","purl":"pkg:pypi/kafka-python","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.3.2"}],"vendor":"dpkp","product":"kafka-python","cpe":"cpe:2.3:a:dpkp:kafka-python:*:*:*:*:*:python:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.3.2"}],"ecosystem":"PyPI","package":"kafka-python","purl":"pkg:pypi/kafka-python","source":"pysec"}],"references":[{"url":"https://www.vulncheck.com/advisories/kafka-python-prior-to-denial-of-service-via-protocol-parser-frame-length","tags":["fix","patch","technical-description","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/dpkp/kafka-python/pull/3019","tags":["fix","issue-tracking","patch","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/dpkp/kafka-python/pull/3026","tags":["fix","issue-tracking","patch","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/dpkp/kafka-python/commit/6e4831444f972d169cdd11f5c8d50333cea3f19b","tags":["fix","patch","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-10142","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/dpkp/kafka-python/commit/9f92d0f53ecfee738c54638867c3d67f83017bca","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/dpkp/kafka-python","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/dpkp/kafka-python/releases/tag/2.3.2","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/kafka-python/PYSEC-2026-2190.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-m3px-q5gj-j9x7","tags":["advisory"],"sources":["pysec"]}],"credits":["Katriel Moses"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-06-11T14:12:48.592Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-10142","url":"https://www.cve.org/CVERecord?id=CVE-2026-10142","licence":"CVE Terms of Use","modified":"2026-11-08T14:00:41.132Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-m3px-q5gj-j9x7","url":"https://github.com/advisories/GHSA-m3px-q5gj-j9x7","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:08.925Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-10142","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-10142","licence":"Public domain","modified":"2026-10-08T16:17:06.240Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2190","url":"https://osv.dev/vulnerability/PYSEC-2026-2190","licence":"CC-BY-4.0","modified":"2026-09-10T11:15:08.157Z"}],"updatedAt":"2026-11-25T22:59:24.368Z","epss":{"score":0.00348,"percentile":0.30348,"date":"2026-12-01T12:00:22.000Z"}}