PT-2026-37262 · Twisted+2 · Twisted+2

Published

2026-05-05

·

Updated

2026-06-08

·

CVE-2026-42304

CVSS v3.1

7.5

High

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions Twisted versions prior to 26.4.0
Description The twisted.names module is susceptible to a Denial of Service (DoS) attack caused by resource exhaustion during DNS name decompression. A remote, unauthenticated attacker can send a specially crafted TCP DNS packet containing deeply chained compression pointers to exploit this flaw. This bypasses existing loop-prevention logic, forcing the single-threaded Twisted reactor to perform millions of recursive lookups, which freezes the server and prevents it from handling new connections or processing I/O. The issue resides in the decode() function of twisted.names.dns.Name, where there is no limit on the number of pointer dereferences per message, and the visited set is reset for each Question record. This allows an attacker to include thousands of questions that refer to the same long chain of pointers, causing the parser to repeat complex searches.
Recommendations Update to version 26.4.0 or later. As a temporary mitigation, restrict access to the DNS server functionality or implement network-level filtering to limit the number of DNS questions per TCP packet.

Exploit

Fix

DoS

Resource Exhaustion

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CLEANSTART-2026-CR27895
CLEANSTART-2026-MJ28981
CLEANSTART-2026-UO66475
CVE-2026-42304
GHSA-GRGV-6HW6-V9G4
OESA-2026-2367
OESA-2026-2368
OESA-2026-2369
OESA-2026-2370
OESA-2026-2488
OPENSUSE-SU-2026:10759-1
PYSEC-2026-160
SUSE-SU-2026:22004-1
USN-8380-1

Affected Products

Linuxmint
Twisted
Ubuntu