CVE-2026-132276
Medium 5.9No known exploitationFix availablewcmatch: Polynomial-time ReDoS when matching untrusted names against multi-star patterns (default flags)
Vendor advisory: GHSA-53pm-wgxf-c6qf
Record last updated
CVSS score
Medium on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
No EPSS score available
CISA remediation deadline
Not in the KEV catalog
Description
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.
Weakness: CWE-1333
Patching and mitigation
- Patch status
- Fix available (source: GitHub Advisory Database)
- Fix documented (source date)
- Mitigation
- None documented
- Vendor guidance
- github.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| facelessuser | wcmatch | < 11.2 | Not documented | CVE Program |
| pip | wcmatch | all versions up to and including 11.1 | 11.2 | GitHub Advisory Database |
Timeline
Disclosure
CVE record published by GitHub_M
Source: CVE Program (opens in a new tab)
Patch
Fix documented by GitHub Advisory Database
Vendor guidance and references
- GitHub Advisory GHSA-53pm-wgxf-c6qf (opens in a new tab)github-advisory
- https://github.com/facelessuser/wcmatch/commit/83491aadde57780330f993620083e979f645c80c (opens in a new tab)x_refsource_misc
- https://github.com/facelessuser/wcmatch/releases/tag/11.2 (opens in a new tab)x_refsource_misc
- https://github.com/facelessuser/wcmatch/security/advisories/GHSA-53pm-wgxf-c6qf (opens in a new tab)x_refsource_confirm