Vulnerability
CVE-2026-132276
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.
20 advisories report this vulnerability, across 3 ecosystems.
Advisories
- CGA-2rmx-xjpv-444v
- CGA-3686-6rph-gxxg
- CGA-6g78-c73g-mw24
- CGA-7673-w2ff-4jjj
- CGA-93h9-67jg-5xmf
- CGA-c6fx-2m9q-r3qj
- CGA-c8w7-jc75-g6j7
- CGA-f7h5-v7q7-fpp3
- CGA-jcfh-mmrq-xmrj
- CGA-mh87-5j5w-mppx
- CGA-q463-65fq-mjwc
- CGA-qjw9-cc3f-fxfg
- CGA-rv94-9hjx-xhq7
- CGA-v7m2-q8c3-6h86
- CGA-vw2m-h836-p9hh
- CGA-w2g2-h79j-2cxr
- CGA-w475-x5m4-w3p7
- CGA-x7g5-35m5-vv3f
- CGA-xwrx-mp4m-wgxw
-
GHSA-53pm-wgxf-c6qf
wcmatch: Polynomial-time ReDoS when matching untrusted names against multi-star patterns (default flags)