Skip to content
OpenAdvisories
Medium · 5.9 Public exploit CVE-2026-132276 EUVD-2026-131679GHSA-53pm-wgxf-c6qf

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

Published Nov 20, 2026 · Updated Nov 20, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
facelessuser wcmatch < 11.2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 python-wcmatch No fix yet —
Debian 13 python-wcmatch No fix yet —
Debian 12 python-wcmatch No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 python-wcmatch No fix yet —
Ubuntu 26.04 LTS python-wcmatch No fix yet —
Ubuntu 24.04 LTS python-wcmatch No fix yet —
Ubuntu 22.04 LTS python-wcmatch No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-wcmatch 12.0.4-1.1 openSUSE-SU-2026:12719-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling semgrep 1.186.0-r6 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

  • googlesky/CVE-2026-132276 ★ 0 · Nov 21, 2026

    wcmatch <=11.1: each '*' becomes lazy .*? — a developer-constant pattern '*_*_*_*_*.csv' backtracks O(n^k) on an attacker-controlled name (255 bytes ~86s vs stdlib <1ms). Real fnmatch 11.1 vs 11.2: p…

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI wcmatch < 11.2 11.2 GHSA-53pm-wgxf-c6qf

Advisories 1

References