PyPI
CVE-2026-132276
wcmatch: Polynomial-time ReDoS when matching untrusted names against multi-star patterns (default flags)
- Severity
- Medium 5.9
- Published
- 20 Nov 2026
- Last changed
- 21 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 11.2
- Exploit chance
- 0.9% in the next 30 daysHigher than 59% of CVEs. EPSS by FIRST, 24 Nov 2026
- Attack
- Over the network · Only under certain conditions · No login needed · No user action needed
- Attacker can
- Take it down
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H- Also known as
- GHSA-53pm-wgxf-c6qf
- Sources
- OSV.dev and GitHub
Description
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.
Every is translated to a lazy .? (_STAR, wcmatch/_wcparse.py:212; _PATH_STAR [^/]*?, :218), which is emitted in _handle_star (:1405-1424`):
When the subject consists of many _ and does not end in .csv, the regex engine tries every way of splitting it between the stars.
Affected software
| Software | Affected versions |
|---|---|
wcmatchPyPI · osv:PyPI:wcmatch |
|
About wcmatch
- Weekly downloads (PyPI)
- 14,748,738PyPI Stats, 24 Nov 2026
This is the only vulnerability in wcmatch in our list.
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-132276
- GitHub Advisory Database https://github.com/advisories/GHSA-53pm-wgxf-c6qf