CVE-2026-128089: 
Python Analyse et atténuation de la vulnérabilité

Aperçu

CVE-2026-128089 is a denial-of-service vulnerability in dnspython, a DNS toolkit for Python, caused by missing bounds validation in the WKS record text parser. Prior to version 2.9.2, the from_text() parser accepts service numbers outside the valid 0–65535 range and uses them directly as bitmap offsets, enabling unbounded memory and CPU consumption. All dnspython versions before 2.9.2 are affected. It was discovered by researcher Jace (GitHub: @manus-use), published on November 4, 2026, and assigned a CVSS v3.1 base score of 7.5 (High) (GitHub Advisory, Github Advisory).

Détails techniques

The root cause is uncontrolled resource consumption (CWE-400) and allocation without limits or throttling (CWE-770) in dns/rdtypes/IN/WKS.py. The from_text() parser reads a WKS record's service number from zone-file text and uses it as a bit offset into a dynamically grown bytearray bitmap without first validating that the value falls within the legal 0–65535 range. A value such as 65536 or larger causes the bitmap to be extended byte-by-byte in a loop (one iteration per missing byte), resulting in both massive memory allocation and quadratic CPU usage. The fix adds an explicit range check (if serv < 0 or serv > 65535: raise ValueError) and replaces the inefficient per-byte loop with bitmap.extend(bytes(i + 1 - l)), and also caps the bitmap size at 8192 bytes in the constructor (GitHub Commit 388db14, GitHub Commit a62e1be).

Impact

Successful exploitation causes the affected Python process to consume excessive memory and CPU, potentially leading to process termination via memory exhaustion and resulting in a denial of service. There is no confidentiality or integrity impact — the vulnerability is purely an availability issue. Only applications that parse zone-file text where both the record type and rdata are attacker-controlled are affected; applications that process only trusted zone data are not at risk (Github Advisory, GitHub Advisory).

Exploitabilité

A proof-of-concept demonstrating the missing bounds check is publicly available in the GitHub Security Advisory: rd = dns.rdata.from_text("IN", "WKS", "10.0.0.1 udp 65536"). The vulnerability requires no authentication, no privileges, and no user interaction, making it trivially exploitable over the network against any application that parses attacker-supplied zone-file text. There is no evidence of in-the-wild exploitation at this time, no known threat actor attribution, and the EPSS score is 0.0. The vulnerability is not listed in the CISA KEV catalog (Github Advisory, GitHub Advisory).

Étapes d’exploitation

  1. Identify target applications: Locate Python applications that use dnspython (versions < 2.9.2) to parse zone-file text where the record type and rdata content are influenced by external or attacker-controlled input (e.g., DNS zone transfer processors, zone file validators, or custom DNS tools).
  2. Craft a malicious WKS record: Construct a zone-file entry containing a WKS record with a service number exceeding 65535, for example:
    example.com. IN WKS 10.0.0.1 udp 2147483647
    Larger values cause proportionally greater memory and CPU consumption.
  3. Deliver the malicious zone data: Supply the crafted zone-file text to the target application through whatever input channel it accepts — e.g., uploading a zone file, providing DNS data via an API, or serving it via a DNS zone transfer.
  4. Trigger parsing: The application calls dns.rdata.from_text("IN", "WKS", ...), which attempts to extend the bitmap bytearray to accommodate the out-of-range offset, consuming memory and CPU proportional to the supplied service number.
  5. Achieve denial of service: The process exhausts available memory or becomes CPU-bound, causing it to slow dramatically or terminate, denying service to legitimate users (Github Advisory, GitHub Advisory).

Indicateurs de compromis

  • Logs: Application logs showing MemoryError, OOMKilled, or unexpected process crashes in Python services that use dnspython; error traces originating from dns/rdtypes/IN/WKS.py in the from_text() function.
  • Process Behavior: Python processes consuming abnormally high memory (gigabytes) or sustained near-100% CPU utilization without a corresponding increase in legitimate workload; processes terminated by the OS out-of-memory killer (OOM killer on Linux).
  • Network/Input: Zone-file inputs or DNS data streams containing WKS record entries with service numbers greater than 65535; unexpected or malformed WKS rdata in zone transfer responses or uploaded zone files.

Atténuation et solutions de contournement

Upgrade dnspython to version 2.9.2 or later, which enforces that WKS service numbers are within the 0–65535 range and caps the bitmap size at 8192 bytes. If immediate patching is not possible, restrict the sources of zone-file text that your application processes and validate that zone-file inputs originate only from trusted sources before parsing. Applications that do not parse attacker-controlled zone-file text are not affected and require no immediate action (dnspython Release, Github Advisory).

Ressources supplémentaires

État de correction de la distribution Linux

Corrigez la disponibilité entre les grandes distributions Linux et leurs versions.

Debian

Affecté

bookworm

dnspython

Affecté

sid

dnspython

Affecté

trixie

dnspython

Affecté

Ubuntu

Inconnu

bionic (esm-infra)

dnspython

Inconnu

devel

dnspython

Inconnu

focal (esm-infra)

dnspython

Inconnu

jammy

dnspython

Inconnu

noble

dnspython

Inconnu

resolute

dnspython

Inconnu

trusty (esm-infra-legacy)

dnspython

Inconnu

xenial (esm-infra-legacy)

dnspython

Inconnu

RHEL / CentOS

Affecté

OpenShift

openshift4/ose-ironic-agent-rhel9

Affecté

RHEL 9

Non affecté

RHEL 10

Non affecté

Source: Ce rapport a été généré à l’aide de l’IA

Connexe Python Vulnérabilités :

CVE ID

Gravité

Partition

Technologies

Nom du composant

Exploit CISA KEV

A corrigé

Date de publication

GHSA-7j4m-2589-jfg9HIGH7.8
  • Python logoPython
  • graphlm
NonOuiNov 17, 2026
GHSA-5fv7-wh8q-cmfjHIGH7.6
  • Python logoPython
  • modoboa
NonOuiNov 17, 2026
GHSA-8cgq-x343-p74cMEDIUM6.5
  • Python logoPython
  • mail-parser
NonOuiNov 16, 2026
GHSA-24mq-4vc6-2prfMEDIUM6.5
  • Python logoPython
  • mail-parser
NonOuiNov 16, 2026
GHSA-xhrq-2mqv-q8wxMEDIUM5.3
  • Python logoPython
  • mail-parser
NonOuiNov 16, 2026

Évaluation gratuite des vulnérabilités

Évaluez votre posture de sécurité cloud

Évaluez vos pratiques de sécurité cloud dans 9 domaines de sécurité afin d’évaluer votre niveau de risque et d’identifier les lacunes dans vos défenses.

Évaluation de la demande

Ressources Wiz supplémentaires

Obtenez une démo personnalisée

Prêt(e) à voir Wiz en action ?

"La meilleure expérience utilisateur que j’ai jamais vue, offre une visibilité totale sur les workloads cloud."
David EstlickRSSI
"Wiz fournit une interface unique pour voir ce qui se passe dans nos environnements cloud."
Adam FletcherChef du service de sécurité
"Nous savons que si Wiz identifie quelque chose comme critique, c’est qu’il l’est réellement."
Greg PoniatowskiResponsable de la gestion des menaces et des vulnérabilités