python-kafka — security advisory
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.
- Products
- python-kafka
- Affected versions
- 2.0.2-10, 2.0.2-11, 2.0.2-12, 2.0.2-13, 2.0.2-3, 2.0.2-4, 2.0.2-5, 2.0.2-6, 2.0.2-7, 2.0.2-8, 2.0.2-9, 2.2.3-1
- Fixed versions
- 2.0.2-13
- CVEs
- CVE-2026-10142
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 28 Oct 2026, 11:09 UTC · Revision 1
Source evidence
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.
osv:DEBIAN-CVE-2026-10142
python-kafka
Fixed versions: Not specified
python-kafka
Fixed versions: Not specified
python-kafka
Fixed versions: 2.0.2-13
Complete source record
{
"id": "d6048fbc024c86e9a4e36290e59446b85d5108fb0a73500ae43e81ed0500a525",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-10142",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2026-10142",
"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.",
"evidence": "osv:DEBIAN-CVE-2026-10142",
"products": [
{
"name": {
"value": "python-kafka",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.0.2-10",
"evidence": "/affected/0/versions"
},
{
"value": "2.0.2-11",
"evidence": "/affected/0/versions"
},
{
"value": "2.0.2-12",
"evidence": "/affected/0/versions"
},
{
"value": "2.0.2-13",
"evidence": "/affected/0/versions"
},
{
"value": "2.0.2-3",
"evidence": "/affected/0/versions"
},
{
"value": "2.0.2-4",
"evidence": "/affected/0/versions"
},
{
"value": "2.0.2-5",
"evidence": "/affected/0/versions"
},
{
"value": "2.0.2-6",
"evidence": "/affected/0/versions"
},
{
"value": "2.0.2-7",
"evidence": "/affected/0/versions"
},
{
"value": "2.0.2-8",
"evidence": "/affected/0/versions"
},
{
"value": "2.0.2-9",
"evidence": "/affected/0/versions"
},
{
"value": "2.2.3-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "python-kafka",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.0.2-10",
"evidence": "/affected/1/versions"
},
{
"value": "2.0.2-11",
"evidence": "/affected/1/versions"
},
{
"value": "2.0.2-12",
"evidence": "/affected/1/versions"
},
{
"value": "2.0.2-13",
"evidence": "/affected/1/versions"
},
{
"value": "2.0.2-9",
"evidence": "/affected/1/versions"
},
{
"value": "2.2.3-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "python-kafka",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2.0.2-13",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": [
{
"value": "2.0.2-10",
"evidence": "/affected/2/versions"
},
{
"value": "2.0.2-11",
"evidence": "/affected/2/versions"
},
{
"value": "2.0.2-12",
"evidence": "/affected/2/versions"
},
{
"value": "2.0.2-9",
"evidence": "/affected/2/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "DEBIAN-CVE-2026-10142",
"aliases": [
"DEBIAN-CVE-2026-10142"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "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": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "python-kafka",
"purl": "pkg:deb/debian/python-kafka?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"2.0.2-10",
"2.0.2-11",
"2.0.2-12",
"2.0.2-13",
"2.0.2-3",
"2.0.2-4",
"2.0.2-5",
"2.0.2-6",
"2.0.2-7",
"2.0.2-8",
"2.0.2-9",
"2.2.3-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-10142.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "python-kafka",
"purl": "pkg:deb/debian/python-kafka?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"versions": [
"2.0.2-10",
"2.0.2-11",
"2.0.2-12",
"2.0.2-13",
"2.0.2-9",
"2.2.3-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-10142.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.0.2-13"
}
]
}
],
"package": {
"name": "python-kafka",
"purl": "pkg:deb/debian/python-kafka?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"versions": [
"2.0.2-10",
"2.0.2-11",
"2.0.2-12",
"2.0.2-9"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-10142.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-09T10:01:00.184039298Z",
"provider": "osv",
"upstream": [
"CVE-2026-10142"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2026-10142"
]
},
"related_cves": [
{
"value": "CVE-2026-10142",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 111739,
"published_at": "2026-06-10T22:16:55.35+00:00"
}