CVE-2026-128089: Dnspython Dnspython Has Excessive Memory And Vulnerability

HIGH
Advisory Identifier: GHSA-vvf4-9x63-8xvv
CVSS 7.5
CWE-400 CWE-770
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2026-128089
GHSA Identifier GHSA-vvf4-9x63-8xvv
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Dnspython
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (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.

dnspython fixed: 2.9.2
pip install dnspython>=2.9.2
Verify Direct and Transitive Dependencies

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

### 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.

CVE-2026-128089 Affected Dnspython Versions

1 component(s)
Fixed Versions:
2.9.2
Product / Package Ecosystem Affected Versions Fixed Version
dnspython
PyPI
< 2.9.2
2.9.2

References

Frequently Asked Questions

What is CVE-2026-128089?
CVE-2026-128089 is a security vulnerability in Dnspython involving dnspython has excessive memory and CPU use under CWE-400: Uncontrolled Resource Consumption.
Which Dnspython versions are affected?
Affected versions include releases prior to 2.9.2 across affected packages: dnspython.
What version fixes CVE-2026-128089?
Upgrading to 2.9.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is dnspython affected?
Yes, dnspython is affected in releases prior to 2.9.2. Upgrade your dependency to 2.9.2 or later.
What is the CVSS score of CVE-2026-128089?
CVE-2026-128089 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2026-128089?
CVE-2026-128089 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check PyPI dependencies for CVE-2026-128089?
Run the dependency tree command: 'pip show dnspython'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}