python-kafka — security advisory
kafka-python prior to 2.3.2 contains a denial-of-service vulnerability in SCRAM authentication handling that allows a malicious or machine-in-the-middle broker to freeze the client event loop by supplying an excessively large iteration count. In scram.py, ScramClient.process_server_first_message() passes the broker-controlled SCRAM iteration count directly to hashlib.pbkdf2_hmac() without validation, blocking producer sends, consumer polls, admin operations, and heartbeats, which can cause consumer group eviction and repeated reconnect failures.
- Products
- python-kafka
- Affected versions
- 0.9.3-2, 1.3.2-0ubuntu1, 1.4.3-1, 1.4.6-1, 2.0.1-2, 2.0.2-10, 2.0.2-11, 2.0.2-12, 2.0.2-2, 2.0.2-4, 2.0.2-5, 2.0.2-9
- Fixed versions
- Not specified
- CVEs
- CVE-2026-10143
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 01:57 UTC · Revision 1
Source evidence
kafka-python prior to 2.3.2 contains a denial-of-service vulnerability in SCRAM authentication handling that allows a malicious or machine-in-the-middle broker to freeze the client event loop by supplying an excessively large iteration count. In scram.py, ScramClient.process_server_first_message() passes the broker-controlled SCRAM iteration count directly to hashlib.pbkdf2_hmac() without validation, blocking producer sends, consumer polls, admin operations, and heartbeats, which can cause consumer group eviction and repeated reconnect failures.
osv:UBUNTU-CVE-2026-10143
python-kafka
Fixed versions: Not specified
python-kafka
Fixed versions: Not specified
python-kafka
Fixed versions: Not specified
python-kafka
Fixed versions: Not specified
python-kafka
Fixed versions: Not specified
python-kafka
Fixed versions: Not specified
python-kafka
Fixed versions: Not specified
python-kafka
Fixed versions: Not specified
Complete source record
{
"id": "965b40316742bea13117666a2b1eef08f7c36911a1d0c2d69f07e6b642691dde",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-10143",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2026-10143",
"summary": "kafka-python prior to 2.3.2 contains a denial-of-service vulnerability in SCRAM authentication handling that allows a malicious or machine-in-the-middle broker to freeze the client event loop by supplying an excessively large iteration count. In scram.py, ScramClient.process_server_first_message() passes the broker-controlled SCRAM iteration count directly to hashlib.pbkdf2_hmac() without validation, blocking producer sends, consumer polls, admin operations, and heartbeats, which can cause consumer group eviction and repeated reconnect failures.",
"evidence": "osv:UBUNTU-CVE-2026-10143",
"products": [
{
"name": {
"value": "python-kafka",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.9.3-2",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "python-kafka",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.3.2-0ubuntu1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "python-kafka",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.4.3-1",
"evidence": "/affected/2/versions"
},
{
"value": "1.4.6-1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "python-kafka",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.0.1-2",
"evidence": "/affected/3/versions"
},
{
"value": "2.0.2-2",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "python-kafka",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.0.2-4",
"evidence": "/affected/4/versions"
},
{
"value": "2.0.2-5",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "python-kafka",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.0.2-9",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "python-kafka",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.0.2-11",
"evidence": "/affected/6/versions"
},
{
"value": "2.0.2-12",
"evidence": "/affected/6/versions"
}
]
},
{
"name": {
"value": "python-kafka",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.0.2-9",
"evidence": "/affected/7/versions"
},
{
"value": "2.0.2-10",
"evidence": "/affected/7/versions"
},
{
"value": "2.0.2-11",
"evidence": "/affected/7/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2026-10143",
"aliases": [
"UBUNTU-CVE-2026-10143"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
},
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
},
{
"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"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "python-kafka",
"purl": "pkg:deb/ubuntu/python-kafka?arch=source&distro=xenial",
"ecosystem": "Ubuntu:16.04:LTS"
},
"versions": [
"0.9.3-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-10143.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python-kafka",
"binary_version": "0.9.3-2"
},
{
"binary_name": "python3-kafka",
"binary_version": "0.9.3-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "python-kafka",
"purl": "pkg:deb/ubuntu/python-kafka?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"1.3.2-0ubuntu1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-10143.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python-kafka",
"binary_version": "1.3.2-0ubuntu1"
},
{
"binary_name": "python3-kafka",
"binary_version": "1.3.2-0ubuntu1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "python-kafka",
"purl": "pkg:deb/ubuntu/python-kafka?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"1.4.3-1",
"1.4.6-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-10143.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-kafka",
"binary_version": "1.4.6-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "python-kafka",
"purl": "pkg:deb/ubuntu/python-kafka?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"2.0.1-2",
"2.0.2-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-10143.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-kafka",
"binary_version": "2.0.2-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "python-kafka",
"purl": "pkg:deb/ubuntu/python-kafka?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"2.0.2-4",
"2.0.2-5"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-10143.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-kafka",
"binary_version": "2.0.2-5"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "python-kafka",
"purl": "pkg:deb/ubuntu/python-kafka?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"2.0.2-9"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-10143.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-kafka",
"binary_version": "2.0.2-9"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "python-kafka",
"purl": "pkg:deb/ubuntu/python-kafka?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"2.0.2-11",
"2.0.2-12"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-10143.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-kafka",
"binary_version": "2.0.2-12"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "python-kafka",
"purl": "pkg:deb/ubuntu/python-kafka?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"2.0.2-9",
"2.0.2-10",
"2.0.2-11"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-10143.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-kafka",
"binary_version": "2.0.2-11"
}
]
}
}
],
"modified": "2026-10-17T12:57:55.066763581Z",
"provider": "osv",
"upstream": [
"CVE-2026-10143"
],
"references": [
"https://ubuntu.com/security/CVE-2026-10143",
"https://www.cve.org/CVERecord?id=CVE-2026-10143",
"https://bugzilla.redhat.com/show_bug.cgi?id=2487722"
]
},
"related_cves": [
{
"value": "CVE-2026-10143",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/2/score"
},
"source_id": "core-osv",
"document_id": 357720,
"published_at": "2026-06-10T22:16:00+00:00"
}