CVE-2026-42304Twisted
High 7.5 No auth needed
Follow: this CVE · Twisted · Twisted We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- —
- Auth required
- No
- Published
- May 13, 2026
- Updated
- Nov 11, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Twisted.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | twisted |
< 26.4.0rc2 |
26.4.0rc2 |
pip install "twisted>=26.4.0rc2" |
| PyPI | twisted |
< 26.4.0 |
26.4.0 |
pip install "twisted>=26.4.0" |
Per OSV / GitHub Advisories (GHSA-grgv-6hw6-v9g4, PYSEC-2026-160). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| twisted | twisted | < 26.4.0 |
| twisted | twisted | 26.4.0 |
Official advisories
- Security update for python-Twisted · SUSE · SUSE-SU-2026:22004-1 · Jun 1, 2026 High
- python-Twisted-doc-26.4.0-1.1 on GA media · SUSE · openSUSE-SU-2026:10759-1 · May 12, 2026 High
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Mitigation Vendor Advisory