CVE-2026-42304
HIGH 7.5CVSS 3.1Twisted has a Denial of Service (DoS) in twisted.names via Crafted DNS Compression Pointer Chains
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.
- Published
- 13 May 2026
- Last modified
- 11 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-400CWE-407
- Also known as
- GHSA-grgv-6hw6-v9g4PYSEC-2026-160
- Sources
- NVDJSONOSV GHSA-grgv-6hw6-v9g4JSONOSV PYSEC-2026-160JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | twisted | twistedcpe:2.3:a:twisted:twisted:*:*:*:*:*:*:*:* |
< 26.4.0 | 26.4.0 |
| NVD | twisted | twistedcpe:2.3:a:twisted:twisted:26.4.0:rc1:*:*:*:*:*:* |
= 26.4.0 | |
| OSV | PyPI | twisted | < 26.4.0rc2 | 26.4.0rc2 |
| OSV | PyPI | twisted | < 26.4.0 | 26.4.0 |
References
- https://github.com/twisted/twisted/security/advisories/GHSA-grgv-6hw6-v9g4 · Exploit, Mitigation, Vendor Advisory, WEB, EVIDENCE
- https://nvd.nist.gov/vuln/detail/CVE-2026-42304 · ADVISORY
- https://github.com/twisted/twisted/commit/e11cd82bdd79b3ebbb0e8635cbb9c76df2b5af09 · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/twisted/PYSEC-2026-160.yaml · WEB
- https://github.com/twisted/twisted · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 13 May 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 May 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 5 May 2026)