CVE-2026-115774 · GHSA-2qrf-pqgx-qh9v
Twisted: Denial of Service in the Twisted IMAP4 Server via a Negative Literal Size in SEARCH
- Risk score
- 44/100
- CVSS
- 4.9 v3.1
- Exploit chance (30 days)
- 0.6%
- Published
- 23 Oct 2026
Open in the live forecast Today's forecast
What to know
- What it is
- 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 m…
- Affected
- Twisted (pip) <= 26.4.0
- Fix
- Upgrade Twisted to 26.10.0rc1 or later.
- Exploitation
- No known exploitation
Story map
At a glance
Twisted: Amber, patch this week. Twisted has a vulnerability in its XML parser that allows an unauthenticated remote peer to cause a denial of service by continuously adding child elements to an in-memory tree, exhausting server memory and terminating the process.
The flaws
- CVE-2026-115774: Denial of Service in the Twisted IMAP4 Server via a Negative Literal Size in SEARCH (CVSS 4.9 · EPSS 1%)
- CVE-2026-115775: Unauthenticated Remote Denial of Service in the Twisted words domish XML Element Stream via an Unbounded Element Tree (CVSS 8.7 · EPSS 1%)
- CVE-2026-115776: Unauthenticated Remote Denial of Service in the Twisted IRC Server via an Unbounded Line Buffer (CVSS 7.5 · EPSS 1%)
- CVE-2026-115778: Unauthenticated Remote Denial of Service in the Twisted conch Telnet Transport via an Unbounded Subnegotiation Buffer (CVSS 7.5 · EPSS 1%)
The fix
Upgrade Twisted: 26.10.0 or later on your release line
Who is exposed: {'products': ['Twisted'], 'packages': ['Twisted'], 'versions': ['<= 26.4.0']}
Where it stands
- No known exploitation
Connects to
- Same weakness: Denial of service (CWE-400). 250 other warnings in 30 days
Why it is Yellow
- CVSS 4.9 medium
- On your watchlist: PyPI
Affected packages
| Package | Ecosystem | Vulnerable | Fixed in |
|---|---|---|---|
| Twisted | pip | <= 26.4.0 | 26.10.0rc1 |
References
- https://github.com/advisories/GHSA-2qrf-pqgx-qh9v
- https://github.com/twisted/twisted/security/advisories/GHSA-2qrf-pqgx-qh9v
- https://github.com/twisted/twisted/pull/12764
- https://github.com/twisted/twisted/commit/3d125548bcbe955007cb97f480bb699a5e074741
- https://github.com/twisted/twisted/releases/tag/twisted-26.10.0rc1
- https://github.com/advisories/GHSA-2qrf-pqgx-qh9v
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.
Last activity 23 Oct 2026. Patch Forecast updates every hour.