NetSight
high7.5

CVE-2026-128089

dnspython has excessive memory and CPU use

Impact

dnspython is a DNS toolkit for Python. Prior to version 2.9.2, the from_text() parser for WKS records does not require the service number to be between 0 and 65535 before using it as a bitmap offset. An attacker-controlled zone file can supply a larger number, causing the service bitmap to grow to an extremely large size through inefficient repeated extension, consuming excessive memory and CPU and potentially terminating the process. Applications are affected only when they parse zone-file text whose record type and rdata are attacker controlled. This issue is fixed in version 2.9.2.

An attacker can exploit this over the network, without logging in, without any action by a user. If it succeeds: high risk of outages.

Affected packages

EcosystemPackageAffectedFixed in
pipdnspython< 2.9.22.9.2

Affected products · Rthalley

ProductAffected versions
Dnspython
before 2.9.2
Version < 2.9.2

Weakness classification

References