A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-42304

CVE-2026-42304: Twisted DNS Module DoS Vulnerability

CVE-2026-42304 is a denial of service flaw in Twisted's DNS module that allows attackers to exhaust resources via crafted TCP packets with chained compression pointers. This article covers technical details, affected versions, and mitigations.

Published: May 14, 2026

CVE-2026-42304 Overview

CVE-2026-42304 is a Denial of Service (DoS) vulnerability in the twisted.names module of the Twisted framework, an event-based networking library for Python 3.6+. Versions prior to 26.4.0rc2 improperly handle DNS message decompression, allowing a remote unauthenticated attacker to send a crafted TCP DNS packet containing deeply chained compression pointers. The flaw bypasses prior loop-prevention logic and forces the single-threaded Twisted reactor into millions of recursive lookups, freezing the server. The issue is tracked as [CWE-400] Uncontrolled Resource Consumption and is fixed in 26.4.0rc2.

Critical Impact

A single crafted TCP DNS packet can hang the Twisted reactor, halting all event-driven processing in the affected service and causing complete service unavailability.

Affected Products

  • Twisted framework versions prior to 26.4.0rc2
  • Applications using the twisted.names DNS module
  • Python 3.6+ services built on the Twisted reactor

Discovery Timeline

  • 2026-05-13 - CVE-2026-42304 published to NVD
  • 2026-05-13 - Last updated in NVD database

Technical Details for CVE-2026-42304

Vulnerability Analysis

The vulnerability resides in the DNS name decompression logic of twisted.names. DNS messages use a compression scheme defined in RFC 1035, where labels can reference earlier positions in the packet via two-byte pointers. The Twisted implementation traverses these pointers when reconstructing fully qualified domain names from compressed wire-format data.

An attacker crafts a TCP DNS packet whose compression pointers form a deeply chained, but non-looping, sequence. Existing loop-detection logic flags only cyclic references, so a chain that progresses linearly through millions of pointer hops passes validation. The reactor processes each pointer dereference synchronously, exhausting CPU time on a single name field.

Because Twisted is single-threaded and cooperatively scheduled, blocking the reactor halts every other coroutine, deferred, and network handler in the process. The attack requires no authentication and no user interaction.

Root Cause

The root cause is insufficient bounding of pointer traversal depth during name decompression. Loop-prevention logic checks for revisited offsets but does not cap the total number of pointer dereferences per name. The fix in 26.4.0rc2 introduces a hard limit on recursion depth during decompression.

Attack Vector

Exploitation requires only network reachability to a Twisted-based service that parses DNS messages over TCP. The attacker sends one crafted DNS packet with a chain of compression pointers, each referencing an earlier offset that itself contains another pointer. The reactor enters a long-running decompression loop and stops servicing other connections until the operation completes or the process is restarted. Refer to the GitHub Security Advisory for additional protocol-level details.

Detection Methods for CVE-2026-42304

Indicators of Compromise

  • Sudden and sustained CPU saturation on a single core hosting the Twisted reactor process
  • Stalled responses across all network endpoints served by the same Twisted process, not only DNS
  • TCP DNS packets where the name fields contain unusually long chains of compression pointers (0xC0 prefix bytes)
  • Process traces showing repeated calls within twisted.names.dns name-decoding functions

Detection Strategies

  • Inspect inbound TCP/53 traffic for DNS messages containing an abnormal count of compression pointer octets within a single name field.
  • Monitor process-level CPU and reactor latency metrics for Twisted services and alert on sustained single-thread saturation.
  • Use IDS signatures that flag DNS messages exceeding reasonable label-pointer counts per query or response.

Monitoring Recommendations

  • Track request-handling latency for all Twisted-backed services and alert when latency exceeds baseline by an order of magnitude.
  • Log connection counts and queue depth on TCP DNS listeners to detect stalls caused by reactor hangs.
  • Capture packet samples from suspect sources for offline analysis of DNS name structures.

How to Mitigate CVE-2026-42304

Immediate Actions Required

  • Upgrade Twisted to version 26.4.0rc2 or later on all hosts running twisted.names or services that parse DNS messages.
  • Inventory Python environments and container images to identify pinned Twisted versions below 26.4.0rc2.
  • Restrict network exposure of TCP DNS listeners to trusted clients until patching is complete.

Patch Information

The vulnerability is fixed in Twisted 26.4.0rc2. Upgrade using the Python package manager, for example pip install --upgrade "twisted>=26.4.0rc2". See the GitHub Security Advisory GHSA-grgv-6hw6-v9g4 for release details.

Workarounds

  • Place a DNS-aware proxy or firewall in front of Twisted services to validate and normalize DNS messages before they reach the reactor.
  • Block or rate-limit TCP/53 traffic from untrusted sources at the perimeter.
  • Run multiple Twisted worker processes behind a load balancer so a single hang does not eliminate all capacity, while still prioritizing the upgrade.
bash
# Upgrade Twisted to the patched release
pip install --upgrade "twisted>=26.4.0rc2"

# Verify the installed version
python -c "import twisted; print(twisted.__version__)"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechTwisted

  • SeverityHIGH

  • CVSS Score7.5

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-400
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2024-41671: Twisted Web Information Disclosure Flaw

  • CVE-2024-41810: Twisted Web Framework XSS Vulnerability

  • CVE-2022-24801: Twisted Web HTTP Request Smuggling Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English