Skip to main content

wcmatch EUVDEUVD-2026-131679

| CVE-2026-132276 MEDIUM
Inefficient Regular Expression Complexity (ReDoS) (CWE-1333)
2026-11-20 security-advisories@github.com GHSA-53pm-wgxf-c6qf
5.9
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify endpoint matching untrusted names
  2. Delivery
    Submit crafted long non-matching filename
  3. Exploit
    Force backtracking across multi-star lazy regex
  4. Execution
    Exhaust single CPU core for minutes
  5. Impact
    Degrade or deny service

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Regex complexity limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the application call wcmatch under default flags - specifically fnmatch.fnmatch(), glob.globmatch(), or a filesystem glob/WcMatch scan - using a developer-supplied pattern that contains several * wildcards separated by literal characters (e.g. *_*_*_*_*.csv); single-star patterns and patterns without this structure are not affected. The attacker must be able to supply or create the name being matched (such as an uploaded file name, an object-store key, or a file another user can create in a scanned directory), ideally near the filesystem maximum of 255 bytes, consisting largely of the separator literal so the match fails after maximal backtracking. No extglob and no non-default flags are needed, and no authentication is required. Limiting factors: the pattern must be a multi-star developer constant (the attacker cannot control the pattern), impact is confined to CPU exhaustion on one core with no confidentiality or integrity effect, and applications using single-star patterns or the standard-library fnmatch are unaffected.

Impact

This is a genuine but moderate-priority denial-of-service issue, not a critical emergency. The CVSS vector (AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H, base 5.9) and CWE-1333 (inefficient regular expression) align with the GHSA advisory: impact is purely availability (A:H, with C:N/I:N) via polynomial-time ReDoS, and AC:H reflects that exploitation depends on the application itself using a multi-star pattern. The attacker controls only the matched name, never the pattern, which remains a developer constant - so the flaw is only reachable in applications that happen to use patterns like *_*_*_*_*.csv against untrusted names. The vuln.today Decision label is 'this_month' (not act_now/emergency), consistent with a serious-but-not-urgent DoS. No EPSS score, no CISA KEV entry, and no SSVC decision data were provided in the input, so breadth of real-world exploitation cannot be quantified from these signals. A detailed, runnable proof-of-concept is published inside the GHSA-53pm-wgxf-c6qf advisory demonstrating 72-86 second single-name processing times, which materially lowers the barrier to opportunistic abuse where a vulnerable code path exists. Net: a legitimate single-core CPU-exhaustion risk for a specific class of applications, worth patching on a normal cycle rather than treating as a widespread, automatable mass-exploitation threat.

Exploit ScenarioDerived

An application uses wcmatch under default flags to match untrusted, user-supplied file names against a constant pattern containing several star wildcards separated by literals (e.g. an upload handler or object-store key filter using *_*_*_*_*.csv). An attacker submits a crafted 255-byte non-matching name composed of the separator characters, forcing the lazy star segments to backtrack across every split and pinning one CPU core for over a minute per request. A public proof-of-concept is included in the GHSA-53pm-wgxf-c6qf advisory, showing fnmatch.fnmatch() and glob.globmatch() both reaching 70+ seconds on a single 255-byte input.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.9% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 20, 2026

Denial of service in the Python wcmatch library through 11.1 lets remote attackers pin a single CPU core for tens of seconds per request by feeding a crafted name to an application that matches it against a developer-supplied pattern containing several star wildcards separated by literals (for example *_*_*_*_*.csv), which is the ordinary default-flag path used by fnmatch.fnmatch(), glob.globmatch() and filesystem glob/WcMatch scans. Backtracking across the lazy star segments makes a single non-matching comparison run in polynomial time, and the advisory reports a 255-byte name taking roughly 73 seconds with fnmatch.fnmatch() and 86 seconds with glob.globmatch() where the standard library answers in under a millisecond. The issue is fixed in 11.2; no CISA KEV entry or confirmed in-the-wild exploitation is recorded, though a public PoC reference (a timing benchmark script) accompanies the GitHub advisory GHSA-53pm-wgxf-c6qf, and exploitation is constrained because the pattern itself must be a multi-star constant that the attacker cannot control.

RemediationAI

Vendor-released patch: wcmatch 11.2 - upgrade with pip install --upgrade 'wcmatch>=11.2' and confirm the installed version, since 11.2 is the release that emits non-final star segments as atomic groups and rejects the advisory's 255-byte test name in under a millisecond (see https://github.com/facelessuser/wcmatch/releases/tag/11.2 and the fix commit https://github.com/facelessuser/wcmatch/commit/83491aadde57780330f993620083e979f645c80c). Because 11.2 requires Python 3.11 or newer and drops 3.10 support, hosts still running Python 3.10 cannot take the fixed build without first upgrading the interpreter; until that is possible, the actionable compensating controls are to rewrite the application-supplied patterns so they contain at most one * per segment or are expressed as explicit regexes (removes the polynomial blow-up but changes pattern semantics and needs regression testing), to reject or truncate candidate names that approach the 255-byte filesystem maximum before calling fnmatch/globmatch (bounded but not eliminated cost - a few hundred bytes is already enough to be expensive, so the cap must be tight and validated against your own patterns), to run matching inside a worker process or thread pool with a hard timeout so a pathological comparison is abandoned rather than blocking the request handler (costs a process/thread per match and adds latency), and to switch to the standard-library fnmatch/fnmatchcase where the extended wcmatch features are not actually used, since CPython already applies the atomic-group fix. Restrict untrusted users from writing arbitrary file names into directories that are scanned with multi-star patterns, or filter those scans through a pre-check on the candidate names, as a further stopgap.

Affected VersionsENISA

wcmatch < 11.2

Affected Packages

pypi wcmatch fix: 11.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

wcmatch compiles glob patterns to regular expressions in wcmatch/_wcparse.py, where every * becomes a lazy .*? (_STAR) or [^/]*? (_PATH_STAR) emitted by _handle_star() around lines 1405-1424; a pattern like *_*_*_*_*.csv therefore translates to ^(?s:(?=.)(?![.]).*?_.*?_.*?_.*?_.*?\.csv)$. When the subject is a long run of the separator literal that does not end in .csv, the regex engine enumerates every possible split of the input between the lazy stars, giving O(n^k) behaviour for k stars - the CWE-1333 inefficient regular expression complexity class. CPython addressed the identical problem in its own fnmatch (bpo-40480) by making every star segment except the last atomic. The upstream fix in 11.2 does the same: star segments are wrapped in atomic groups using (?>.*?_) on Python 3.11 and later, or the equivalent lookahead/backreference construct on 3.10, and the accompanying tests show the atomic wrapping is deliberately skipped for segments that contain variable-length extglob groups (e.g. @(...), ?(...), +(...), !(...)) so that match semantics are preserved. The trigger requires only default flags and no extglob; the affected call paths are fnmatch.fnmatch(), glob.globmatch(), and directory scans such as glob.glob() over directories where another user can create names.

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 5.9 MEDIUM
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 5.9 MEDIUM

Network-reachable untrusted name with no auth or interaction (AV:N/PR:N/UI:N); AC:H because the app must use a multi-star pattern; availability-only CPU DoS, so C:N/I:N/A:H.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

1
Patch available
Nov 20, 2026 - 19:19 EUVD

DescriptionCVE.org

wcmatch is a Python library for wildcard file-name matching. Prior to 11.2, under the default flags, matching a non-matching attacker-controlled name against an application-supplied pattern containing several star wildcards separated by literals makes the lazy .? and [^/]? segments, including _STAR and _PATH_STAR emitted by _handle_star() in wcmatch/_wcparse.py, backtrack across possible splits, so a single comparison can consume prolonged CPU time. The pattern remains a developer-controlled constant and only the name is attacker-controlled; affected paths include fnmatch.fnmatch(), glob.globmatch(), and filesystem glob scans where another user can create names, without enabling extglob or any non-default flag. This issue is fixed in 11.2.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 135 pypi packages depend on wcmatch (14 direct, 123 indirect)

Ecosystem-wide dependent count for version 11.2.

Threat Intelligence Overview

EPSS Score
0.9%
Top 40% exploitable
Prevalence
Medium
popular Python wildcard-matching library, but only exploitable in multi-star-pattern code paths
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
4 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.9%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

51
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +30
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy