Advisory

GHSA-vvf4-9x63-8xvv

Also known as: CVE-2026-128089

Summary

dnspython has excessive memory and CPU use

Details

Summary

A maliciously crafted zone file could use a WKS record to consume excessive memory and CPU, possibly causing the process to exit due to memory exhaustion.

Details

The from_text() parser does not check that a WKS record service number is between 0 and 65535 inclusive. It then uses this number to resize the bitmap to accommodate a bit with that offset. This can cause extremely large memory allocations, and also extends the array very inefficiently, wasting CPU.

Proof of concept

This demonstrates the failure to limit the service number, though with a value that does not cause excessive memory or CPU consumption.

rd = dns.rdata.from_text("IN", "WKS", "10.0.0.1 udp 65536")

Impact

If dnspython is used to read zonefile format where the attacker can control the type and rdata text, the program may consume excessive memory or CPU, denying service.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-11-13 20:19 UTC
Modified
2026-11-13 20:30 UTC

Affected packages and fixes

dnspython

PyPI · All systems

Affected

  • introduced 0, fixed 2.9.2 (ecosystem)

Fixed versions

2.9.2

Fix

  • Fixed version 2.9.2
    pip install --upgrade dnspython==2.9.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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences