# CVE-2026-42304: Twisted: Denial of Service (DoS) in twisted.names via Crafted DNS Compression Pointer Chains

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 39% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-05T21:12:37.000Z
- Modified: 2026-11-11T20:10:00.273Z
- Also known as: GHSA-grgv-6hw6-v9g4, PYSEC-2026-160
- Weaknesses: CWE-400, CWE-407
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- twisted twisted: < 26.4.0rc2; before 26.4.0; 26.4.0
- twisted (PyPI): before 26.4.0rc2; before 26.4.0

## Every score

- GitHub_M: 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`
- GitHub: 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`
- PyPA Advisory Database: 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`

## References

- <https://github.com/twisted/twisted/security/advisories/GHSA-grgv-6hw6-v9g4> (exploit, evidence, mitigation, vendor-advisory, web)
- <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)

## Sources

- CVE List: [CVE-2026-42304](https://www.cve.org/CVERecord?id=CVE-2026-42304), CVE Terms of Use, modified 2026-05-14
- GitHub Advisory Database: [GHSA-grgv-6hw6-v9g4](https://github.com/advisories/GHSA-grgv-6hw6-v9g4), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-42304](https://nvd.nist.gov/vuln/detail/CVE-2026-42304), Public domain, modified 2026-11-11
- PyPA Advisory Database: [PYSEC-2026-160](https://osv.dev/vulnerability/PYSEC-2026-160), CC-BY-4.0, modified 2026-05-20

---

Page: https://cve.day/CVE-2026-42304 · Whole record: https://cve.day/CVE-2026-42304.json · Rebuilt by cve.day 2026-11-25T22:59:21.661Z
