PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-106454 twisted CVE debrief

The CVE record describes a vulnerability in Twisted's IMAP `wildcardToRegexp()` function, which can lead to a ReDoS (Regular Expression Denial of Service) attack. An authenticated IMAP client can send a malicious pattern string containing arbitrary regex syntax, including catastrophic-backtracking constructs, causing a blocking regex match that freezes all I/O on the server.

Vendor
twisted
Product
Unknown
CVSS
MEDIUM 4.3
CISA KEV
Not listed in stored evidence
Original CVE published
2026-10-07
Original CVE updated
2026-10-15
Advisory published
2026-10-07
Advisory updated
2026-10-15

Who should care

IMAP service administrators and defenders should assess exposure and prioritize verification and updates to prevent potential ReDoS attacks. This includes reviewing compensating controls for exposed systems, checking relevant monitoring, detection, and logs for exposed assets, and tracking exceptions and retesting remediated assets. Operators, platform administrators, vulnerability management teams, and security teams should be aware of the potential risks

Why it matters

The CVE-2026-106454 vulnerability in Twisted's IMAP `wildcardToRegexp()` function can lead to a ReDoS attack, causing a blocking regex match that freezes all I/O on the server. IMAP service administrators and defenders should prioritize verifying and updating their Twisted installations to prevent potential ReDoS attacks.

  • Denial of Service (DoS) due to frozen I/O
  • Potential for ReDoS attacks against IMAP services
  • Need for verification and updates to Twisted installations

Technical summary

The `wildcardToRegexp()` function in `twisted/mail/imap4.py` converts IMAP LIST/LSUB wildcard patterns to Python regular expressions. An authenticated IMAP client can send a quoted pattern string containing arbitrary regex syntax, including catastrophic-backtracking constructs, causing a blocking regex match that freezes all I/O on the server. This vulnerability can lead to a ReDoS (Regular Expression Denial of Service) attack. The function substitutes IMAP wildcards but passes other characters through unchanged to `re.compile()`, allowing an authenticated IMAP client to send malicious pattern strings. IMAP service administrators and defenders should prioritize verifying and updating their Twisted installations

Defensive priority

IMAP service administrators and defenders should prioritize verifying and updating their Twisted installations to prevent potential ReDoS attacks.

Recommended defensive actions

  • Verify and update Twisted installations to the latest version
  • Monitor IMAP service logs for suspicious activity
  • Implement additional security measures to prevent ReDoS attacks
  • Review compensating controls for exposed systems while remediation is scheduled and verified
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review
  • Track exceptions, retest remediated assets, and close the item only after evidence is documented
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up

Evidence notes

The vulnerability is caused by the `wildcardToRegexp()` function in `twisted/mail/imap4.py`, which converts IMAP LIST/LSUB wildcard patterns to Python regular expressions. The function substitutes IMAP wildcards but passes other characters through unchanged to `re.compile()`, allowing an authenticated IMAP client to send malicious pattern strings.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-106454 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-106454

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-106454 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-106454

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

  • Twisted: IMAP wildcardToRegexp() ReDoS

    Unverified legacy reference

    URL: https://storage.googleapis.com/osv-vulnerabilities/PyPI/GHSA-8pqf-f4m5-798g.json

    osv_dev

  • Source reference

    Unverified legacy reference

    URL: https://github.com/twisted/twisted/security/advisories/GHSA-8pqf-f4m5-798g

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://github.com/twisted/twisted/pull/12788

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://github.com/twisted/twisted/commit/2f8a3c29246f4eb324690e06a9767a11dc4aec9f

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://github.com/twisted/twisted

    Supplemental source

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.