CVE-2026-42304

High

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.

SeverityHigh
CVSS7.5
Exploit probability—
ProductTwisted
PublishedMay 13, 2026
First seenMay 13, 2026

How to fix

Update
  • twisted twisted26.4.0 or later
  • twisted26.4.0rc2, 26.4.0 or later

Affected products

ProductAffected versionsFixed in
twisted twistedv < 26.4.0, 26.4.026.4.0
twistedPyPIv < 26.4.0rc2, v < 26.4.026.4.0rc2, 26.4.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.