GitHub Advisoryadvisory · PyPI

GHSA-2jcm-hq8r-84wx kafka-python vulnerable to denial of service through an unbounded SCRAM iteration count

HIGH Published 2026-06-11 Modified 2026-09-01 Official page ↗
Aliases
CVE-2026-10143
Ecosystem
PyPI
Packages
kafka-python
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weaknesses
CWE-400, CWE-606
Reviewed
2026-09-01

Affected packages

• PyPI kafka-python: < 2.3.2 → fixed in 2.3.2

Description

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.

Related

Alias · CVE (1)

  • CVE-2026-10143 kafka-python prior to 2.3.2 contains a denial-of-service vulnerability in SCRAM authentication handling that allows a malicious or… vulnerability

Weakness · CWE (2)

  • CWE-400 Uncontrolled Resource Consumption weakness
  • CWE-606 Unchecked Input for Loop Condition weakness

References