CVE catalog

CVE-2026-10142

kafka-python prior to 2.3.2 contains a denial-of-service vulnerability in the protocol parser that allows a malicious broker or machine-in-the-middle attacker to exhaust memory or hang connections by

[CVE catalog]

Severity
High · CVSS 8.7CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Published
Source
[NVD] · [CVE record]
EPSS
0.35% · Oct 25, 2026

kafka-python prior to 2.3.2 contains a denial-of-service vulnerability in the protocol parser that allows a malicious broker or machine-in-the-middle attacker to exhaust memory or hang connections by sending a crafted 4-byte frame length value without bounds validation. Attackers can send a specially crafted frame length through the receive_bytes() function to trigger either a multi-gigabyte memory allocation or an uncaught ValueError that leaves the connection in a broken state, causing requests to hang and consumers to stop heartbeating until restart.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianpython-kafkasid2.2.3-1fixed
Debianpython-kafkaforky2.2.3-1fixed
Debianpython-kafkatrixie2.0.2-9vulnerable
Debianpython-kafkabookworm2.0.2-3vulnerable
Cpepython-kafkaNot reportedNot reportedvulnerable
Cpekafka-pythonNot reported2.3.2fixed
Pipkafka-pythonNot reported2.3.2fixed
Cpekafka-pythonNot reported2.3.2fixed
Opensusepython-kafka-pythontumbleweed2.3.2-1.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpython-kafkasourcesid2.0.2-13not yet assignedNot reported[1139878]
Debianpython-kafkasourceforky2.0.2-13not yet assignedNot reported[1139878]
Debianpython-kafkasourcetrixie(unfixed)not yet assignedNot reported[1139878]
Debianpython-kafkasourcebookworm(unfixed)not yet assignedNot reported[1139878]
Cpekafka-pythoncpeNot reported2.3.2Not reportedNot reportedNot reported
Pipkafka-pythonpipNot reported2.3.2Not reportedGHSA-M3PX-Q5GJ-J9X7Not reported
Cpekafka-pythoncpeNot reported2.3.2Not reportedNVD-CVE-2026-10142Not reported
Opensusepython-kafka-pythonrpmtumbleweed2.3.2-1.1Not reportedOPENSUSE-SU-2026:11004-1Not reported

[Debian bug #1139878]

Notes

[trixie] python-kafka: Minor issue [bookworm] python-kafka: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [python3-kafka]Affected

    Source package: [python-kafka]

    Details (2)
    • 2.0.2-3 · all · bookworm

      Affected

      nvd · python-kafka · debian · bookworm; nvd · python-kafka · debian · 12

    • 2.0.2-3 · all · bookworm

      Affected

      nvd · python-kafka · debian · bookworm; nvd · python-kafka · debian · 12

  • Source package: [python-kafka]

    Details (2)
    • 2.0.2-3 · all · bookworm

      Affected

      nvd · python-kafka · debian · bookworm; nvd · python-kafka · debian · 12

    • 2.0.2-3 · all · bookworm

      Affected

      nvd · python-kafka · debian · bookworm; nvd · python-kafka · debian · 12

[Debian 13 (Trixie)]

  • [python3-kafka]Affected

    Source package: [python-kafka]

    Details (2)
    • 2.0.2-9 · all · trixie

      Affected

      nvd · python-kafka · debian · 13

    • 2.0.2-9 · all · trixie

      Affected

      nvd · python-kafka · debian · 13

  • Source package: [python-kafka]

    Details (2)
    • 2.0.2-9 · all · trixie

      Affected

      nvd · python-kafka · debian · 13

    • 2.0.2-9 · all · trixie

      Affected

      nvd · python-kafka · debian · 13

[openSUSE Tumbleweed]

  • Source package: [python-kafka-python]

    Details (1)
    • 3.0.11-1.1 · noarch · tumbleweed

      Unknown · Fixed: 2.3.2-1.1

      Version impact unknown

      nvd · python-kafka-python · opensuse · tumbleweed

  • Source package: [python-kafka-python]

    Details (1)
    • 3.0.11-1.1 · noarch · tumbleweed

      Unknown · Fixed: 2.3.2-1.1

      Version impact unknown

      nvd · python-kafka-python · opensuse · tumbleweed

Observed:

References