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

CVE-2026-106454: Twisted: IMAP wildcardToRegexp() ReDoS

October 7, 2026 (updated October 15, 2026)

wildcardToRegexp() in twisted/mail/imap4.py converts IMAP LIST/LSUB wildcard patterns to Python regular expressions. It substitutes the two IMAP wildcards (* → (?:.*?) and % → (?:(?:[^\\/])*?)) but passes every other character through unchanged to re.compile(). This means that an authenticated IMAP client can send a quoted pattern string containing arbitrary regex syntax - including catastrophic-backtracking constructs such as (a+)+z.

Because Twisted runs a cooperative, single-threaded reactor, a blocking regex match freezes all I/O on the server for the duration of the match.


References

  • github.com/advisories/GHSA-8pqf-f4m5-798g
  • github.com/twisted/twisted/commit/2f8a3c29246f4eb324690e06a9767a11dc4aec9f
  • github.com/twisted/twisted/pull/12788
  • github.com/twisted/twisted/security/advisories/GHSA-8pqf-f4m5-798g
  • nvd.nist.gov/vuln/detail/CVE-2026-106454

Code Behaviors & Features

Detect and mitigate CVE-2026-106454 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 up to 26.4.0

Solution

Unfortunately, there is no solution available yet.

Impact 4.3 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-1333: Inefficient Regular Expression Complexity

Source file

pypi/Twisted/CVE-2026-106454.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:23 +0000.