CVE-2026-132276
wcmatch: Polynomial-time ReDoS when matching untrusted names against multi-star patterns (default flags)
- CVSS
- 5.9
- EPSS
- 0.52% (p37)
- Published
- 2026-11-20
- Age
- 11d old
- Modified
- 2026-11-28
- Product
- facelessuser wcmatch
- Aliases
- GHSA-53pm-wgxf-c6qf
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
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.
Fixed in
11.2
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| PyPI | wcmatch | <= 11.1 | 11.2 |
| PyPI | wcmatch | >=0, <11.2 | 11.2 |
Sources
- NVD · first seen 11d ago · NVD terms of use
- OSV · first seen 11d ago · CC-BY 4.0
- GitHub Advisory Database · first seen 11d ago · CC-BY 4.0
- CVE List · first seen 11d ago · CVE Terms of Use
References
- https://github.com/facelessuser/wcmatch/security/advisories/GHSA-53pm-wgxf-c6qf x_refsource_CONFIRM
- https://github.com/facelessuser/wcmatch/commit/83491aadde57780330f993620083e979f645c80c x_refsource_MISC
- https://github.com/facelessuser/wcmatch/releases/tag/11.2 x_refsource_MISC
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/132xxx/CVE-2026-132276.json advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-132276 advisory
- https://github.com/advisories/GHSA-53pm-wgxf-c6qf other
- https://github.com/facelessuser/wcmatch package