Skip to main content
← All vulnerabilities
CVE-2026-115774EUVD-2026-109148GHSA-2QRF-PQGX-QH9V

Twisted: Denial of Service in the Twisted IMAP4 Server via a Negative Literal Size in SEARCH

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 26.10.0rc1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

The Twisted framework's IMAP4 server component, used by Python applications that host mail services, is affected. A remote, authenticated user can send a specially crafted SEARCH command that freezes the server's single process, halting all other IMAP connections and any SMTP or POP3 services running alongside it until the process is restarted.

Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.

Read the original description

Twisted is an event-based framework for internet applications, supporting Python 3.6+. Prior to 26.10.0rc1, twisted.mail.imap4.IMAP4Server reaches twisted.mail.imap4.parseNestedParens with a negative literal size in an authenticated SEARCH command after the client enters the selected mailbox state. The negative size moves the parser cursor below zero, and Python's negative indexing prevents the synchronous scanning loop from terminating. The loop freezes the single-threaded reactor, stopping other IMAP connections and any SMTP or POP3 services hosted in the same process until restart. This issue is fixed in version 26.10.0rc1.

Timeline

  1. CVE published
  2. First seen by cve.now
  3. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  4. Record last updated

Affected versions

  • twisted twisted

    fixed in 26.10.0rc1

  • twistedPyPI

    fixed in 26.10.0rc1

References 4

GitHub · twisted/twisted