Skip to content
OpenAdvisories
High · 7.5 CVE-2026-10143 EUVD-2026-36128GHSA-2jcm-hq8r-84wxPYSEC-2026-2191

kafka-python prior to 2.3.2 DoS via SCRAM Iteration Count in scram.py

Published Jun 10, 2026 · Updated Nov 8, 2026 · Assigned by VulnCheck

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.

Affected products

VendorProductAffectedFixed
Dana Powers kafka-python — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 python-kafka 2.0.2-12 —
Debian 13 python-kafka No fix yet —
Debian 12 python-kafka No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 python-kafka No fix yet —
Ubuntu 26.04 LTS python-kafka No fix yet —
Ubuntu 25.10 python-kafka No fix yet —
Ubuntu 24.04 LTS python-kafka No fix yet —
Ubuntu 22.04 LTS python-kafka No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS python-kafka No fix yet —
Ubuntu 18.04 LTS python-kafka No fix yet —
Ubuntu 16.04 LTS python-kafka No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI kafka-python < 2.3.2 2.3.2 GHSA-2jcm-hq8r-84wx

References