CVE-2026-42304
Reported by github_m · Published May 13, 2026
Twisted is fixed in 26.4.0rc2 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| Twisted | PyPI | 26.4.0rc2 |
| python3-twisted+tls | Amazon Linux | 22.4.0-129.amzn2023.0.6 |
| py3-twisted | Alpine | 26.4.0-r0 |
| awx | Chainguard | 24.6.1-r49 |
| python3-twisted | Amazon Linux | 22.4.0-129.amzn2023.0.6 |
| twisted | twisted | 26.4.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| twisted | twisted | < 26.4.0rc2 |
| amazon:2023 | python3-twisted+tls | 0 |
| alpine | py3-twisted | 0 |
| chainguard | awx | 0 |
| amazon:2023 | python3-twisted | 0 |
| twisted | twisted | 0 |
| chainguard | synapse | 0 |
| PyPI | Twisted | 0 |
Timeline
- May 5, 2026 CVE Published
- May 14, 2026 CVE Updated
- May 15, 2026 Security Advisory (2 in total, the first dated here)
- May 18, 2026 EPSS Score (30 in total, the first dated here)
- Aug 4, 2026 Coalition ESS Score
- Aug 12, 2026 Distribution Patch
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-42304
vulnetix vdb fixes CVE-2026-42304
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-42304/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/twisted/twisted/security/advisories/GHSA-grgv-6hw6-v9g4 x_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2026-42304 advisory
- https://github.com/advisories/GHSA-grgv-6hw6-v9g4 advisory
- https://github.com/twisted/twisted/commit/e11cd82bdd79b3ebbb0e8635cbb9c76df2b5af09 patch
- https://github.com/pypa/advisory-database/tree/main/vulns/twisted/PYSEC-2026-160.yaml advisory
- https://github.com/twisted/twisted url