At a glance
- CVE-2026-128089 affects the Python dnspython library.
- A malicious zone file can consume excessive memory and CPU, causing denial of service.
- pip dnspython versions below 2.9.2 are affected.
- Prioritize checking and upgrading to dnspython 2.9.2 or later.
dnspython CVE-2026-128089: upgrade to version 2.9.2 or later
GitHub Advisories reports CVE-2026-128089 in the Python dnspython library: parsing a malicious zone file can consume excessive memory and CPU, causing denial of service or process termination from memory exhaustion. pip dnspython versions below 2.9.2 are affected; check and upgrade to 2.9.2 or…
In this article
GitHub Advisories published alert GHSA-vvf4-9x63-8xvv for the DNS library dnspython. The vulnerability may occur when parsing a malicious zone file; the stated remediation is to upgrade to version 2.9.2 or later. View the GitHub advisory.
Overview and technical details
dnspython is a Python library for working with DNS. CVE-2026-128089 is assigned CWE-400 and CWE-770, with a CVSS score of 7.5 under CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
| Field | Details |
|---|---|
| Product | dnspython |
| Identifiers | CVE-2026-128089; GHSA-vvf4-9x63-8xvv |
| CWE | CWE-400; CWE-770 |
| CVSS | 7.5 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) |
| Source | GitHub Advisories |
Affected systems
| Product | Affected versions | Fixed version |
|---|---|---|
| pip:dnspython | < 2.9.2 | 2.9.2 |
The risk is particularly relevant if an application reads zone files containing data controlled by users or an untrusted source.
Mechanism and impact
The from_text() parsing function does not check whether the number of services in a WKS record is within the range 0–65535 before using that value to expand a bitmap. An attacker-controlled zone file can cause the library to allocate a very large amount of memory and consume CPU.
Possible consequences are denial of service or process termination due to memory exhaustion.
System checks
Check the dnspython version installed in the current Python environment:
python -m pip show dnspythonVersion 2.9.2 or later is fixed; versions below 2.9.2 need to be upgraded.
Remediation and mitigation
Upgrade the
pip:dnspythonpackage to version 2.9.2 or later, especially if the application reads zone files containing data controlled by users or an untrusted source.After upgrading, run
python -m pip show dnspythonagain and confirm the version is 2.9.2 or later.