Advisory

PYSEC-2026-2191

Also known as: CVE-2026-10143, GHSA-2jcm-hq8r-84wx

Summary

The record has no summary.

Details

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.

Severity

Not rated by the source.

Dates

Published
2026-06-10 22:16 UTC
Modified
2026-09-10 11:15 UTC

Affected packages and fixes

kafka-python

PyPI · All systems

Affected

  • introduced 0, fixed 2.3.2 (ecosystem)

Fixed versions

2.3.2

Fix

  • Fixed version 2.3.2
    pip install --upgrade kafka-python==2.3.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences