Skip to content
OpenAdvisories
High · 7.5 CVE-2026-42304 EUVD-2026-30158GHSA-grgv-6hw6-v9g4PYSEC-2026-160

Twisted: Denial of Service (DoS) in twisted.names via Crafted DNS Compression Pointer Chains

Published May 13, 2026 · Updated May 14, 2026 · 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.

Affected products

VendorProductAffectedFixed
twisted twisted < 26.4.0rc2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 twisted 26.4.0-1 —
Debian 13 twisted No fix yet —
Debian 12 twisted No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS twisted 25.5.0-5ubuntu0.1 USN-8380-1
Ubuntu 25.10 twisted 24.11.0-1ubuntu0.1 USN-8380-1
Ubuntu 24.04 LTS twisted 24.3.0-1ubuntu0.2 USN-8380-1
Ubuntu 22.04 LTS twisted 22.1.0-2ubuntu2.7 USN-8380-1
Ubuntu 20.04 LTS twisted No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS twisted No fix yet —
Ubuntu Pro 16.04 LTS twisted No fix yet —
Ubuntu Pro 14.04 LTS twisted No fix yet —
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 python-Twisted 24.10.0-160000.3.1 SUSE-SU-2026:22004-1
SLES 16.0 python-Twisted 24.10.0-160000.3.1 SUSE-SU-2026:22004-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-Twisted 26.4.0-1.1 openSUSE-SU-2026:10759-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 python3-twisted +1 22.4.0-129.amzn2023.0.6 ALAS2023-2026-1734

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 python-twisted 22.10.0-5 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI twisted < 26.4.0rc2 26.4.0rc2 GHSA-grgv-6hw6-v9g4
PyPI twisted < 26.4.0 26.4.0 PYSEC-2026-160

Advisories 5

References