Skip to main content

wcmatch EUVDEUVD-2026-140784

| CVE-2026-141598 HIGH
Inefficient Regular Expression Complexity (ReDoS) (CWE-1333)
2026-12-02 VulnCheck GHSA-vvgr-fj3f-x236
8.2
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Submit long non-matching path via app input
  2. Delivery
    Path reaches glob.globmatch/globfilter/compile or PurePath.globmatch with GLOBSTAR
  3. Exploit
    Multiple '**' segments trigger O(n^k) regex backtracking
  4. Execution
    CPU core saturated for seconds to minutes
  5. Impact
    Service availability degraded or denied

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

Three concrete conditions must all hold, per the vendor advisory: (1) the application enables the GLOBSTAR flag (glob.GLOBSTAR or pathlib.GLOBSTAR), which is NOT enabled by default; (2) it matches attacker-controlled paths via glob.globmatch, glob.globfilter, a compiled glob.compile matcher, or pathlib.PurePath.globmatch - e.g. archive member names, object-store keys, upload paths, or request-derived router/filter paths; and (3) the application's pattern contains three or more '' globstar segments separated by other text (the pattern is normally author-written, not attacker-supplied). Limiting factors: GLOBSTAR being off by default and the three-plus-globstar pattern requirement sharply narrow exposure. Path length matters - around 1 KB is enough for four '', and filesystem paths are capped at 4,096 bytes on Linux, though archive/object-store names are not. If the REALPATH flag is set, the path must actually exist to reach the flaw, further limiting attacker control.

Impact

The input CVSS 4.0 score of 8.2 is driven entirely by availability impact (VA:H) with no confidentiality or integrity effect, and the vector itself tempers urgency: AC:H and AT:P (attack requirements present) reflect that exploitation depends on a non-default configuration rather than a default-reachable code path. AV:N/PR:N/UI:N are correct - an attacker supplies a path with no authentication and no interaction - but the AT:P requirement maps directly to the advisory's preconditions: GLOBSTAR must be enabled (it is off by default) and the application pattern must contain three or more '**' segments separated by text. No EPSS score is provided in the input, so probabilistic exploitation likelihood cannot be weighed here. KEV status is not listed (treat as not present), so there is no confirmed active exploitation. A full proof-of-concept exists in the GHSA advisory, but a working DoS PoC is not the same signal as active exploitation - the two must not be conflated. The vuln.today decision label is 'this_week', consistent with a serious but availability-only, config-gated issue rather than an emergency. Net: this is a genuine, patch-worthy ReDoS, but its real-world priority is bounded by the non-default GLOBSTAR requirement and the application-controlled pattern shape, not a universally remote-exploitable critical.

Exploit ScenarioDerived

An application enables GLOBSTAR and matches attacker-controlled path strings (archive member names, object-store keys, upload paths, or request-derived router/filter paths) against a pattern containing three or more '' segments such as '/src//test//*.py'. The attacker submits a few kilobytes of carefully constructed non-matching path, forcing roughly O(n^k) regex backtracking that pins a CPU core for seconds to minutes per request. A full working proof-of-concept is published in the GHSA advisory, requiring no network, install, or file access to reproduce.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available

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

Alert me

AnalysisAIv1 – Dec 02, 2026

wcmatch, the Python wildcard-matching library, can be driven into polynomial-time regular expression backtracking when a pattern containing three or more ** (GLOBSTAR) segments is matched against a long, non-matching attacker-controlled path, pinning a CPU core for seconds to minutes. Exposure requires a non-default configuration: GLOBSTAR must be explicitly enabled (glob.GLOBSTAR or pathlib.GLOBSTAR) and the application must feed untrusted strings - archive member names, object-store keys, upload paths, request-derived routes - into glob.globmatch, glob.globfilter, a compiled glob.compile matcher, or pathlib.PurePath.globmatch, while the offending multi-globstar pattern is normally written by the application rather than supplied by the attacker. Availability-only impact (CVSS 4.0 base 8.2, VA:H with AC:H/AT:P and no confidentiality or integrity effect); the vendor advisory includes a public proof-of-concept snippet, but there is no indication of active exploitation, and the flaw is fixed in wcmatch 13.0.

RemediationAI

Vendor-released patch: upgrade to wcmatch 13.0 (pip install --upgrade wcmatch), which wraps a and the text up to the next in an atomic group so that segment is matched once, making rejection time linear for patterns built from literals, ?, classes, stars, number ranges and extended groups; details are in the advisory at https://github.com/facelessuser/wcmatch/security/advisories/GHSA-5fhc-4v76-7q52 and the fix commit https://github.com/facelessuser/wcmatch/commit/fffd25336b52b19fa75dcea21f4b8c179c735e0e. If upgrading is not immediately possible, the vendor-listed risk reductions are: bound the length of untrusted paths before matching (on 12.0.4 a ~1 KB path costs under 0.1 s with three and about 0.5 s with four); allow at most two in patterns applied to untrusted input (roughly 16 ms for a 3 KB path); avoid enabling GLOBSTAR where is unnecessary; and run matching inside a worker with a wall-clock limit so a single request cannot hold a core, at the cost of one process or thread per match and a bounded-but-nonzero latency for legitimate long inputs. On 13.0, enable DOTMATCH together with NODOTDIR to eliminate the remaining hidden-name and .*/./.. cases, keep at most one followed by dot-capable text in patterns applied to untrusted paths, and note that with REALPATH every ** counts and only existing paths reach the matcher.

Affected VersionsENISA

wcmatch 0 <13.0

Affected Packages

euvd wcmatch fix: 13.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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

Technical ContextAI · show details

wcmatch translates glob patterns into regular expressions, and each becomes a lazy repetition able to consume any number of path directories; literal or wildcard text between two globstars must then be rediscovered somewhere after each repetition, so a non-matching path causes the regex engine to enumerate roughly n^k placements for k globstars over a path of length n. This is CWE-1333 (inefficient regular expression complexity), the ReDoS class, and specifically a leftover of GHSA-53pm-wgxf-c6qf, which since release 11.2 wrapped each non-final single * plus the text up to the next star in an atomic group so only the first match is attempted - the same treatment was never applied to . The 13.0 fix extends the atomic grouping to a followed by another , covering literal text, ?, character classes, stars, number ranges and extended glob groups, and applies to REALPATH matching as well. Documented residual cases keep super-linear behavior: text that can match a hidden name (an extended group with a dot-leading alternative such as /@(src|.cache)//test//*.py, or a dot after groups that can match nothing such as ?(a).git), .* under DOTMATCH that can match . and .., and with REALPATH an existing path that crosses a symlink consumed by a . Enabling DOTMATCH together with NODOTDIR absorbs the first three cases; the symlink case and configurations without DOTMATCH remain power-law bounded, and with REALPATH every ** contributes. Notably the vendor measured microseconds for identical inputs when GLOBSTAR is off, because a single * cannot cross a path separator, and the regex translation is effectively linear when the dot-related preconditions do not apply.

Know when Wcmatch 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 (VulnCheck) PRIMARY 8.2 HIGH
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
vuln.today AI 5.9 MEDIUM

AV:N as paths arrive remotely and PR:N/UI:N as no auth or interaction is needed; AC:H because exploitation depends on non-default GLOBSTAR plus a three-plus-globstar pattern; impact is availability-only (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:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

wcmatch before 13.0 contains a regular expression denial of service vulnerability that allows attackers to exhaust CPU by matching paths against patterns with three or more globstar segments. Attackers can supply a few KB of non-matching path to glob.globmatch, glob.globfilter, glob.compile matchers or pathlib.PurePath.globmatch, triggering roughly O(n^k) backtracking that consumes a CPU core for minutes.

Executive ViewAI

Why It Matters

A high-severity availability flaw in the wcmatch Python wildcard-matching library can allow attacker-controlled input to consume a full CPU core for an extended period, potentially degrading or stalling any service that performs pattern matching against untrusted strings such as uploaded file names, archive members, or object-store keys. Because exposure depends on a non-default GLOBSTAR configuration, only teams that have deliberately enabled this feature and route untrusted data through these functions are at risk, but those that are should treat this as a priority service-availability concern for production capacity and customer-facing reliability.

Business Impact: Medium
Compensating Controls

Vendor-released patch is available per the advisory; where immediate upgrade is not possible, disable GLOBSTAR, restrict matching patterns to trusted application-defined allowlists, cap input length on untrusted strings, and enforce per-request CPU/time limits.

Threat Intelligence Overview

Prevalence
Medium
popular Python glob library, but exploitable GLOBSTAR path is non-default
Social Media
3
Sightings
Data Quality
4 sources
Confidence: Medium

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 HIGH
CISA KEV No
Public POC No
EPSS N/A
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Medium

Priority Score

41
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +41
PoC: 0
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.

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