cve.bz

CVE-2026-42304 twisted twisted: Uncontrolled Resource Consumption

7.5 highExploit referenceEPSS 0.4%Fix available

High (7.5) in twisted twisted. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in twisted 26.4.0, 26.4.0rc2.

On this page
Twisted is an event-based framework for internet applications, supporting Python 3.6+. Prior to 26.4.0rc2, the twisted.names module is vulnerable to a Denial of Service (DoS) attack via resource exhaustion during DNS name decompression. A remote, unauthenticated attacker can exploit this by sending a crafted TCP DNS packet containing deeply chained compression pointers. This flaw bypasses previous loop-prevention logic, causing the single-threaded Twisted reactor to hang while processing millions of recursive lookups, effectively freezing the server. This vulnerability is fixed in 26.4.0rc2.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 38th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2026-05-14. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-400 Uncontrolled Resource Consumption
CWE-407 Inefficient Algorithmic Complexity
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-42304 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-42304?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-42304?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-42304 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
twisted:twistedbefore 26.4.0
twisted:twisted26.4.0:rc1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-grgv-6hw6-v9g4PyPItwisted<26.4.0rc226.4.0rc2
PYSEC-2026-160PyPItwisted<26.4.026.4.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13twistedno fix listedDEBIAN-CVE-2026-42304
Debian14twisted26.4.0-1DEBIAN-CVE-2026-42304
Ubuntu20.04:LTS, Pro:14.04:LTS, Pro:16.04:LTS and 1 moretwistedno fix listedUBUNTU-CVE-2026-42304
Ubuntu22.04:LTStwisted22.1.0-2ubuntu2.7UBUNTU-CVE-2026-42304 USN-8380-1
Ubuntu24.04:LTStwisted24.3.0-1ubuntu0.2UBUNTU-CVE-2026-42304 USN-8380-1
Ubuntu25.10twisted24.11.0-1ubuntu0.1UBUNTU-CVE-2026-42304 USN-8380-1
Ubuntu26.04:LTStwisted25.5.0-5ubuntu0.1UBUNTU-CVE-2026-42304 USN-8380-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0python-Twisted24.10.0-160000.3.1SUSE-SU-2026:22004-1
openSUSETumbleweedpython-Twisted26.4.0-1.1openSUSE-SU-2026:10759-1
Azure Linux3python-twisted22.10.0-5AZL-86751
Alpaquita23py3-twisted22.10.0-r2BELL-CVE-2026-42304
Alpaquita25py3-twisted24.11.0-r1BELL-CVE-2026-42304
Alpaquitastreampy3-twisted26.4.0-r0BELL-CVE-2026-42304

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Important.

Red Hat's statement

A flaw was found in the twisted.names DNS module of the Python Twisted framework. A remote unauthenticated attacker can send a single crafted TCP DNS packet containing deeply chained compression pointers and thousands of question records to hang the single-threaded Twisted reactor, effectively freezing the server. The visited set that prevents infinite loops has no limit on total pointer dereferences and is reset per question record, allowing resource exhaustion.

Red Hat Ansible Automation Platform components (automation-controller, EDA controller, Lightspeed) bundle python-twisted but use it via Daphne as an ASGI server. These components do not import or execute twisted.names, so the vulnerable DNS decompression code is never reached.

Red Hat Enterprise Linux 6 ships python-twisted but is out of support scope (ELS does not cover python-twisted).

Red Hat's mitigation

There is no mitigation for this issue. Applications using twisted.names for DNS resolution or as a DNS server should update to a fixed version of Twisted when available.

Upgrade to a patched version (>= 26.4.0rc2).

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/lightspeed-rhel8Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-26/controller-rhel9Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-26/eda-controller-rhel9Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-26/lightspeed-rhel9Not affected
Red Hat Ansible Automation Platform 2automation-controllerNot affected
Red Hat Ansible Automation Platform 2python-twistedNot affected
Red Hat Enterprise Linux 6python-twistedOut of support scope
Red Hat Hardened Imagespython-jsonschemaNot affected
Red Hat OpenStack Platform 16.2python-twistedNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-42304.

Attack patterns (CAPEC)

  • CAPEC-147 XML Ping of the Death Likelihood: Low · Severity: Medium
  • CAPEC-227 Sustained Client Engagement
  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON