Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. Twisted
  4. ›
  5. CVE-2026-115774

CVE-2026-115774: Twisted: Denial of Service in the Twisted IMAP4 Server via a Negative Literal Size in SEARCH

October 23, 2026

An infinite-loop vulnerability (CWE-835) in the Twisted IMAP4 server lets an authenticated client freeze the whole process with one small command. twisted.mail.imap4.parseNestedParens reads an IMAP literal size with int() and never rejects a negative value. A negative size such as {-100} drives the parser cursor negative, and because a negative Python index wraps around the end of the string instead of raising, the scanning loop never terminates. It runs synchronously on the single-threaded reactor, so one SEARCH command holds the reactor at full CPU forever and every other connection stops being served.

References

  • github.com/advisories/GHSA-2qrf-pqgx-qh9v
  • github.com/twisted/twisted/commit/3d125548bcbe955007cb97f480bb699a5e074741
  • github.com/twisted/twisted/pull/12764
  • github.com/twisted/twisted/releases/tag/twisted-26.10.0rc1
  • github.com/twisted/twisted/security/advisories/GHSA-2qrf-pqgx-qh9v
  • nvd.nist.gov/vuln/detail/CVE-2026-115774

Code Behaviors & Features

Detect and mitigate CVE-2026-115774 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 26.10.0-rc.1

Fixed versions

  • 26.10.0-rc.1

Solution

Upgrade to version 26.10.0-rc.1 or above.

Impact 4.9 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption
  • CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')

Source file

pypi/Twisted/CVE-2026-115774.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:20 +0000.