THREAT OPS › Threat News › [GHSA] GHSA-8pqf-f4m5-798g (medium) — Twisted: IMAP wildcardToRegexp() ReDoS
[GHSA] GHSA-8pqf-f4m5-798g (medium) — Twisted: IMAP wildcardToRegexp() ReDoS
GHSA-8pqf-f4m5-798g Severity: medium CVE: CVE-2026-106454
Twisted: IMAP wildcardToRegexp() ReDoS
### Summary `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
MITRE ATT&CK techniques
- CredentialsT1589.001
Indicators of compromise
- CVE-2026-106454cve
Original source: https://github.com/advisories/GHSA-8pqf-f4m5-798g