wcmatch: Polynomial-time ReDoS when matching untrusted names against multi-star patterns (default flags)
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| facelessuserwcmatch | — | Not listed |
| PyPIwcmatch |
< 11.2→ 11.2 |
11.2 |
| pipwcmatch |
< 11.2→ 11.2 |
11.2 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-132276 python-wcmatch No fixed version in this record
- Ubuntu UBUNTU-CVE-2026-132276 python-wcmatch No fixed version in this record
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- web github.com
- web github.com