CVE-2026-128089: Dnspython Dnspython Has Excessive Memory And Vulnerability
HIGHCVE-2026-128089 is a HIGH (CVSS 7.5) dnspython has excessive memory and vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Dnspython libraries in the PyPI ecosystem. The issue involves dnspython has excessive memory and cpu use. Remediation is available by upgrading affected packages to version 2.9.2.
CVE-2026-128089 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2026-128089
To remediate this vulnerability, upgrade all affected Dnspython dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install dnspython>=2.9.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show dnspython
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-128089, inspect your installed packages using pip:
pip show dnspython
Analyze the terminal output to locate any version of Dnspython in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.9.2), your application is affected.
Note: The pip show dnspython command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Dnspython, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-128089 Affected Dnspython Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
dnspython
|
PyPI |
< 2.9.2
|
2.9.2
|
References
Frequently Asked Questions
What is CVE-2026-128089?
Which Dnspython versions are affected?
What version fixes CVE-2026-128089?
Is dnspython affected?
What is the CVSS score of CVE-2026-128089?
What CWE is associated with CVE-2026-128089?
How can I check PyPI dependencies for CVE-2026-128089?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vvf4-9x63-8xvv",
"modified" : "2026-11-13T20:19:13Z",
"published" : "2026-11-13T20:19:13Z",
"aliases" : [ "CVE-2026-128089" ],
"summary" : "dnspython has excessive memory and CPU use",
"details" : "### Summary\n\nA 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.\n\n### Details\n\nThe `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.\n\n### Proof of concept\n\nThis demonstrates the failure to limit the service number, though with a value that does not cause excessive memory or CPU consumption.\n\n```\nrd = dns.rdata.from_text(\"IN\", \"WKS\", \"10.0.0.1 udp 65536\")\n```\n\n### Impact\n\nIf 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" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "dnspython"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.9.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/rthalley/dnspython/security/advisories/GHSA-vvf4-9x63-8xvv"
}, {
"type" : "WEB",
"url" : "https://github.com/rthalley/dnspython/commit/388db14ee9923288f6e73f86e482c77706e59d73"
}, {
"type" : "WEB",
"url" : "https://github.com/rthalley/dnspython/commit/a62e1be066da0ed71b5b59f37435bb17cfa0070f"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/rthalley/dnspython"
}, {
"type" : "WEB",
"url" : "https://github.com/rthalley/dnspython/releases/tag/v2.9.2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-400", "CWE-770" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-11-13T20:19:13Z",
"nvd_published_at" : null
}
}