Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. wcmatch
  4. ›
  5. CVE-2026-132276

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

November 20, 2026

With default flags, a pattern that contains several * wildcards takes polynomial time, O(n^k) for k stars, to reject a crafted file name. The pattern is an ordinary developer constant such as *_*_*_*_*.csv; only the string being matched comes from the attacker. A 255-byte file name (the maximum on common filesystems) takes 73 s with fnmatch.fnmatch() and 86 s with glob.globmatch(). The standard library’s fnmatch handles the same input in under a millisecond.

This is different from GHSA-84v8-qmgq-9g88: that advisory covers extglob patterns, while this case needs no flags and no attacker-controlled pattern.

References

  • github.com/advisories/GHSA-53pm-wgxf-c6qf
  • github.com/facelessuser/wcmatch/commit/83491aadde57780330f993620083e979f645c80c
  • github.com/facelessuser/wcmatch/releases/tag/11.2
  • github.com/facelessuser/wcmatch/security/advisories/GHSA-53pm-wgxf-c6qf
  • nvd.nist.gov/vuln/detail/CVE-2026-132276

Code Behaviors & Features

Detect and mitigate CVE-2026-132276 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 11.2.0

Fixed versions

  • 11.2.0

Solution

Upgrade to version 11.2.0 or above.

Impact 5.9 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-1333: Inefficient Regular Expression Complexity

Source file

pypi/wcmatch/CVE-2026-132276.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 21 Nov 2026 12:16:00 +0000.