CVE-2026-42304
Description
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.
Weakness
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | yes |
| Technical impact | partial |
| Scored | 2026-05-14 |
Timeline
- 2026-05-05GitHub advisory published (GHSA-grgv-6hw6-v9g4)8 days before publication
- 2026-05-13Published by the CNA20:20 UTC
- 2026-05-14CISA SSVC decision recorded1 day after publication
Exploit and advisory records
GitHub advisory GHSA-grgv-6hw6-v9g4, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| PyPI twisted | before 26.4.0rc2 | 26.4.0rc2 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| twisted twisted | before 26.4.0fixed in 26.4.026.4.0no fix listed | 26.4.0not listed |
References
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-42304'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-42304'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-42304'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-42304'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).