Threat Advisory

Crafted File Names Trigger Polynomial-Time ReDoS in Wcmatch

Threat: Vulnerability
Targeted Region: Global
Targeted Sector: Technology & IT
Criticality: Medium
[subscribe_to_unlock_form]

EXECUTIVE SUMMARY:

CVE-2026-132276 with a CVSS score of 5.9 is a polynomial-time regular expression denial of service vulnerability in the wcmatch Python package, specifically in its fnmatch and glob matching components when default flags are used. The affected software is wcmatch (pip) versions <= 11.1. The flaw occurs when a developer-supplied pattern containing multiple star wildcards, such as a constant file-name filter, is matched against an attacker-controlled file name or path. The attacker does not need to control the pattern, authenticate, or perform complex actions; supplying a crafted name with many underscores that fails to match can cause the regex engine to explore many split combinations. Because each star is translated into a lazy segment, rejection time grows polynomially with the number of stars and input length, allowing a single 255-byte name to consume a CPU core for minutes. Business impact is availability loss in upload handlers, archive or object-store key filters, and directory scans where other users can create files, causing service delays, resource exhaustion, degraded responsiveness, and potential denial of service.

RECOMMENDATION:

We recommend you to update wcmatch to version 11.2.[/subscribe_to_unlock_form]

EXECUTIVE SUMMARY:

CVE-2026-132276 with a CVSS score of 5.9 is a polynomial-time regular expression denial of service vulnerability in the wcmatch Python package, specifically in its fnmatch and glob matching components when default flags are used. The affected software is wcmatch (pip) versions <= 11.1. The flaw occurs when a developer-supplied pattern containing multiple star wildcards, such as a constant file-name filter, is matched against an attacker-controlled file name or path. The attacker does not need to control the pattern, authenticate, or perform complex actions; supplying a crafted name with many underscores that fails to match can cause the regex engine to explore many split combinations. Because each star is translated into a lazy segment, rejection time grows polynomially with the number of stars and input length, allowing a single 255-byte name to consume a CPU core for minutes. Business impact is availability loss in upload handlers, archive or object-store key filters, and directory scans where other users can create files, causing service delays, resource exhaustion, degraded responsiveness, and potential denial of service.

RECOMMENDATION:

We recommend you to update wcmatch to version 11.2.[emaillocker id="1283"]

REFERENCES:

The following reports contain further technical details:

[/emaillocker]
crossmenu