Skip to content
DayZeroHub
Medium Not yet writtenCVSS 5.9GHSA-53pm-wgxf-c6qfCVE-2026-132276

CVE-2026-132276: wcmatch: Polynomial-time ReDoS when matching untrusted names against multi-star patterns (default flags)

facelessuser wcmatch

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-132276: medium-severity vulnerability (CVSS 5.9) in facelessuser wcmatch.

What happened

Original description from 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.

Why it matters

Medium severity, CVSS 5.9.

Affected products and versions

wcmatch <= 11.1 (fixed in 11.2); facelessuser wcmatch < 11.2

ProductVersionsFixed in
wcmatch<= 11.111.2
facelessuser wcmatch< 11.2—

Action recommended by the source

Upgrade to a fixed version: 11.2.

Fixed in: 11.2

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-1333

Relevant change history

  1. Published

    Preliminary advisory published.