wcmatch: Polynomial-time ReDoS on untrusted names
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-1333.
Summary
wcmatch, a Python library for wildcard file-name matching, is affected before 11.2. Under default flags, matching an attacker-controlled name that does not match against an application-supplied pattern with several star wildcards separated by literals causes backtracking in the lazy regex segments, a polynomial-time ReDoS (CWE-1333). An unauthenticated remote attacker who can create file names can make a single comparison consume prolonged CPU time, affecting fnmatch.fnmatch(), glob.globmatch() and filesystem glob scans. The sources report a proof of concept but no known exploitation in CISA KEV.
Written with Claude Haiku 5.5 from the sources below · 2026-11-21
Description from the CNA
wcmatch is a Python library for wildcard file-name matching. Prior to 11.2, under the default flags, matching a non-matching attacker-controlled name against an application-supplied pattern containing several star wildcards separated by literals makes the lazy .? and [^/]? segments, including _STAR and _PATH_STAR emitted by _handle_star() in wcmatch/_wcparse.py, backtrack across possible splits, so a single comparison can consume prolonged CPU time. The pattern remains a developer-controlled constant and only the name is attacker-controlled; affected paths include fnmatch.fnmatch(), glob.globmatch(), and filesystem glob scans where another user can create names, without enabling extglob or any non-default flag. This issue is fixed in 11.2.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| facelessuser | wcmatch | before 11.2 | 11.2 | Patch available | CNA |
| — | wcmatch (PyPI) | before 11.2 | 11.2 | Patch available | GHSA-53pm-wgxf-c6qf |
- wcmatch Vendorfacelessuser Affected before 11.2 Fixed in 11.2 Patch available CNA
- wcmatch (PyPI) Vendor— Affected before 11.2 Fixed in 11.2 Patch available GHSA-53pm-wgxf-c6qf
Remediation
Upgrade wcmatch on PyPI to version 11.2. The sources list no fixed version for other products.
Written with Claude Haiku 5.5 from the sources below · 2026-11-21
- Fix · CNA wcmatch (facelessuser) Fixed in 11.2
- Fix · GHSA-53pm-wgxf-c6qf wcmatch (PyPI) Fixed in 11.2 Advisory →
Timeline
- 2026-11-20 Threatist record created from CVE-2026-132276
- 2026-11-20 CISA SSVC decision points changed
- 2026-11-21 Alias added: GHSA-53pm-wgxf-c6qf
- 2026-11-21 Fix available: PyPI/[email protected] · GHSA-53pm-wgxf-c6qf
- 2026-11-21 CVSS score added · GHSA-53pm-wgxf-c6qf
- 2026-11-21 Weakness changed · GHSA-53pm-wgxf-c6qf
- 2026-11-21 5 new references · GHSA-53pm-wgxf-c6qf
- 2026-11-25 EPSS moved to the below the 50th percentile
References
More facelessuser vulnerabilities
- TI-2026-90415 Soup Sieve exponential ReDoS in selector compilation via \9-run CVSS 3.1HIGH 7.5
- TI-2026-47703 pymdown-extensions: Exponential-backtracking ReDoS in caret, tilde, betterem, and magiclink inline processors CVSS 3.1HIGH 7.5
- TI-2026-36631 Soup Sieve: Regular Expression Denial of Service (ReDoS) in soupsieve Selector Parser CVSS 3.1HIGH 7.5
- TI-2026-36630 Soup Sieve: Memory Exhaustion via Large Comma-Separated Selector Lists in soupsieve CVSS 3.1HIGH 7.5
- TI-2023-15603 Arbitrary file inclusion with the pymdowm-snippets extension CVSS 3.1HIGH 7.5
- TI-2026-90424 Uncontrolled recursion in Soup Sieve CSS parser CVSS 3.1MEDIUM 5.3
Sources
- CVE-2026-132276 · CVE Program
- CVE-2026-132276 · NVD
- FIRST EPSS
- GHSA-53pm-wgxf-c6qf · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences