---
id: CVE-2026-10143
title: >-
  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 c…
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 c…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-400
  - CWE-606
vendor: dpkp
product: kafka-python
affected:
  - kafka-python < 2.3.2
patched:
  - kafka-python 2.3.2
published: '2026-06-10'
updated: '2026-10-08'
sourceUpdated: '2026-10-08T16:17:06.413'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-10143'
references:
  - url: >-
      https://github.com/dpkp/kafka-python/commit/6e4831444f972d169cdd11f5c8d50333cea3f19b
    label: disclosure@vulncheck.com
  - url: 'https://github.com/dpkp/kafka-python/pull/3019'
    label: disclosure@vulncheck.com
  - url: 'https://github.com/dpkp/kafka-python/pull/3026'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/kafka-python-prior-to-dos-via-scram-iteration-count-in-scram-py
    label: disclosure@vulncheck.com
  - url: 'https://access.redhat.com/errata/RHSA-2026:28571'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/errata/RHSA-2026:30076'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/errata/RHSA-2026:33683'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/errata/RHSA-2026:41066'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/errata/RHSA-2026:42796'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/security/cve/CVE-2026-10143'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2487722'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-10143.json
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-10143'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-10143'
  - url: 'https://access.redhat.com/errata/RHSA-2026:70267'
  - url: 'https://access.redhat.com/errata/RHSA-2026:54395'
  - url: 'https://access.redhat.com/errata/RHSA-2026:74511'
  - url: 'https://github.com/advisories/GHSA-2jcm-hq8r-84wx'
  - url: >-
      https://github.com/dpkp/kafka-python/commit/74400d7ef1b54ad24d4b8170c23b58d1cab65e4f
  - url: >-
      https://github.com/pypa/advisory-database/tree/main/vulns/kafka-python/PYSEC-2026-2191.yaml
  - url: 'https://github.com/dpkp/kafka-python/releases/tag/2.3.2'
  - url: 'https://github.com/dpkp/kafka-python'
tags:
  - nvd
  - cve.org
  - csaf
  - vex
  - red-hat
  - osv
  - pip
ssvc:
  exploitation: none
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2026-06-11T13:10:04.299411Z'
epss: 0.00517
epssPercentile: 0.43801
aliases:
  - PYSEC-2026-2191
  - GHSA-2jcm-hq8r-84wx
ecosystem: pip
ingestedAt: '2026-07-13T18:58:07.955Z'
---

## Overview

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

- `kafka-python < 2.3.2`

## Remediation

Upgrade past the affected range:

- `kafka-python 2.3.2`

## Package advisory (CVE-2026-10143)

Affected packages:

- `kafka-python < 2.3.2`

Patched in:

- `kafka-python 2.3.2`

Source: https://osv.dev/vulnerability/PYSEC-2026-2191

## Vendor advisories

- **RHSA-2026:33683** · Red Hat · fixed in: Red Hat Quay 3.10 · released 2026-06-30 · [advisory](https://access.redhat.com/errata/RHSA-2026:33683)
- **RHSA-2026:30076** · Red Hat · fixed in: Red Hat Quay 3.12 · released 2026-06-25 · [advisory](https://access.redhat.com/errata/RHSA-2026:30076)
- **RHSA-2026:70267** · Red Hat · fixed in: Red Hat Quay 3.14 · released 2026-09-22 · [advisory](https://access.redhat.com/errata/RHSA-2026:70267)
- **RHSA-2026:42796** · Red Hat · fixed in: Red Hat Quay 3.15 · released 2026-07-21 · [advisory](https://access.redhat.com/errata/RHSA-2026:42796)
- **RHSA-2026:41066** · Red Hat · fixed in: Red Hat Quay 3.16 · released 2026-07-16 · [advisory](https://access.redhat.com/errata/RHSA-2026:41066)
- **RHSA-2026:54395** · Red Hat · fixed in: Red Hat Quay 3.17 · released 2026-08-12 · [advisory](https://access.redhat.com/errata/RHSA-2026:54395)
- **RHSA-2026:28571** · Red Hat · fixed in: Red Hat Quay 3.9 · released 2026-06-23 · [advisory](https://access.redhat.com/errata/RHSA-2026:28571)
- **RHSA-2026:74511** · Red Hat · fixed in: Red Hat Quay 3.17 · released 2026-10-01 · [advisory](https://access.redhat.com/errata/RHSA-2026:74511)
