home / blog
2026-11-21 · medium
CVE-2026-132276: wcmatch backtracking vulnerability risks Python apps
Backtracking in wcmatch causes prolonged CPU consumption with multiple wildcard patterns. Patch in version 11.2.

CVE-2026-132276 concerns a backtracking vulnerability in Python's wcmatch library used for wildcard file-name matching. When a pattern containing multiple wildcards separated by literal characters is matched against an attacker-controlled filename, the process can consume CPU resources for prolonged periods, potentially causing a denial-of-service. The vulnerability affects all paths using wcmatch, including fnmatch.fnmatch(), glob.globmatch(), and filesystem glob scans.
The vulnerability severity is classified as medium with a CVSS score of 5.9. The vulnerability was officially published on November 20, 2026, in the National Vulnerability Database (NVD). Technical reports confirm the practical impact of the vulnerability, indicating that a simple pattern like '*_*_*_*_*.csv' takes approximately 86 seconds to process a 255-byte filename, compared to less than a millisecond in the patched version.
To defend against this vulnerability, immediately apply the patch by updating wcmatch to version 11.2 or later. If an immediate update is not feasible, implement mitigations such as additional filename validation or limiting wildcard pattern length in applications using wcmatch. It is also recommended to monitor system resources to detect any attempts to exploit this vulnerability.
At a glance
- What
- Backtracking vulnerability in Python's wcmatch library that causes prolonged CPU consumption when matching filenames with patterns containing multiple wildcards separated by literal characters.
- Severity
- CVSS 5.9 (medium)
- Affected versions
- wcmatch versions prior to 11.2
- Fix
- Update to version 11.2 or later
- Status
- Officially published in NVD on 20/11/2026
- Action
- Apply the patch and consider temporary mitigations if immediate update is not possible
Sources: NVD, CVE-2026-132276