CVE-2026-132276: wcmatch: Polynomial-time ReDoS when matching untrusted names against multi-star patterns (default flags)
Published 2026-11-20 · Updated 2026-11-21 · Also known as GHSA-53pm-wgxf-c6qf
Summary
A polynomial-time Regular Expression Denial of Service (ReDoS) vulnerability exists in wcmatch when matching untrusted file names against patterns containing multiple star wildcards using default flags. Engineering teams maintaining applications that process untrusted filenames using wcmatch should upgrade to the fixed version.
Who is affected
Deployments that match untrusted names against multi-star patterns (such as upload handlers, archive filters, or object-store key filters) can experience severe CPU consumption, blocking a CPU core for minutes per name. The pattern can be an ordinary developer constant while only the matched string needs to be supplied by an attacker, and no authentication is required.
Exploitability
The vulnerability carries a CVSS base score of 5.9 (MEDIUM) with a vector of CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H, indicating network attack vector and high attack complexity. EPSS is not yet available, and CISA KEV shows no known active exploitation.
Remediation
- Upgrade the PyPI wcmatch package to version 11.2 or later.
How to check your project
- Check project dependency files (e.g., requirements.txt, pyproject.toml, poetry.lock) for wcmatch versions prior to 11.2.
Automated analysis of the published advisory data, generated 2026-11-21. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| PyPI | wcmatch |
>= 0, < 11.2 | 11.2 | python -m pip install 'wcmatch>=11.2' |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
| Attack vector | Network |
|---|---|
| Attack complexity | High |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | None |
| Integrity | None |
| Availability | High |
FAQ
What causes the ReDoS vulnerability in wcmatch?
Every star wildcard is translated to a lazy `.*?` pattern without atomic grouping. When a subject string does not match the trailing characters, the regex engine attempts every possible way of splitting the string between the stars, leading to polynomial time complexity.
Does the pattern need to be attacker-controlled to trigger the vulnerability?
No, the pattern can be an ordinary developer constant (e.g., `*_*_*_*_*.csv`), while only the string being matched needs to come from the attacker.
Is there any known active exploitation in the wild?
No, CISA Known Exploited Vulnerabilities indicates no active exploitation for this issue.
Original advisory description
References
- WEB https://github.com/facelessuser/wcmatch/security/advisories/GHSA-53pm-wgxf-c6qf
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-132276
- WEB https://github.com/facelessuser/wcmatch/commit/83491aadde57780330f993620083e979f645c80c
- PACKAGE https://github.com/facelessuser/wcmatch
- WEB https://github.com/facelessuser/wcmatch/releases/tag/11.2
Source records: GHSA-53pm-wgxf-c6qf (OSV.dev) · EPSS by FIRST, 2026-11-26.