---
id: CVE-2026-106454
title: >-
  Twisted is an event-based framework for internet applications, supporting
  Python 3.6+
summary: >-
  Twisted is an event-based framework for internet applications, supporting
  Python 3.6+. In 25.5.0 and earlier, wildcardToRegexp() in
  twisted/mail/imap4.py translates the IMAP asterisk and percent wildcards but
  passes all other characters …
severity: medium
cvss: 4.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L'
cwe:
  - CWE-1333
vendor: twisted
product: twisted
affected:
  - twisted <= 25.5.0
published: '2026-10-06'
updated: '2026-10-07'
sourceUpdated: '2026-10-07T17:16:48.133'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-106454'
references:
  - url: >-
      https://github.com/twisted/twisted/commit/2f8a3c29246f4eb324690e06a9767a11dc4aec9f
    label: security-advisories@github.com
  - url: 'https://github.com/twisted/twisted/pull/12788'
    label: security-advisories@github.com
  - url: 'https://github.com/twisted/twisted/security/advisories/GHSA-8pqf-f4m5-798g'
    label: security-advisories@github.com
  - url: 'https://github.com/twisted/twisted/security/advisories/GHSA-8pqf-f4m5-798g'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-106454.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-106454'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2547133'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-106454'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-106454'
  - url: 'https://github.com/advisories/GHSA-8pqf-f4m5-798g'
  - url: 'https://github.com/twisted/twisted'
  - url: 'https://pypi.org/project/twisted'
tags:
  - nvd
  - cve.org
  - exploit-available
  - csaf
  - vex
  - red-hat
  - ghsa
  - pip
  - osv
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-10-07T16:25:51.139114Z'
epss: 0.00417
epssPercentile: 0.35767
aliases:
  - GHSA-8pqf-f4m5-798g
  - PYSEC-2026-4304
ecosystem: pip
ingestedAt: '2026-10-06T20:16:42.469Z'
---

## Overview

Twisted is an event-based framework for internet applications, supporting Python 3.6+. In 25.5.0 and earlier, wildcardToRegexp() in twisted/mail/imap4.py translates the IMAP asterisk and percent wildcards but passes all other characters from an authenticated client's LIST or LSUB pattern directly to re.compile(), allowing nested or otherwise expensive regular expression constructs to cause catastrophic backtracking when matched against mailbox names. Because Twisted uses a cooperative single-threaded reactor, the blocking match suspends all server input and output for the duration of the match. No fixed release is available as of this review.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-106454)

Affected packages:

- `Twisted <= 25.5.0`

Source: https://github.com/advisories/GHSA-8pqf-f4m5-798g

## Vendor advisories

- **Red Hat VEX** · Moderate · affected: Red Hat Ansible Automation Platform 2, Red Hat OpenShift Container Platform 4, Red Hat OpenStack Platform 16.2 · no fix planned: Red Hat Ansible Automation Platform 2, Red Hat OpenStack Platform 16.2, Red Hat OpenShift Container Platform 4 · updated 2026-10-07 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-106454.json)
