Skip to main content
CVE-2026-132276VulnerabilityPublished

wcmatch: Polynomial-time ReDoS when matching untrusted names against multi-star patterns (default flags)

Affects wcmatchSource GCVE Database

0
Compare
Authoritative record:CVE-2026-132276· Medium 5.9

Not known to be exploited · CVSS 5.9 Medium : upgrade to 11.2 when convenient.

Data as of 21 Nov 2026, 00:32 UTC

CVSS 3.1 base score
5.9Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 3.15.9
Patch
Available – fixed in 11.2
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 20 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 20 Nov 2026.

What to do

Upgrade wcmatch to 11.2.

Affected software

ProductAffectedFixed in
PyPIwcmatchAffected
  • <11.2
Fixed in
  • 11.2

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A patch is available in wcmatch version 11.2 that fixes this ReDoS vulnerability by changing the regex translation to use atomic groups for all but the last star segment. Users should upgrade to version 11.2 or later to remediate this issue. Until upgraded, avoid matching untrusted input against multi-star patterns with default flags or consider alternative matching methods. No other mitigations are indicated by the vendor advisory.

Description

The wcmatch Python library versions prior to 11.2 contain a Regular Expression Denial of Service (ReDoS) vulnerability when matching untrusted file names against patterns with multiple '*' wildcards using default flags. This causes polynomial-time complexity in rejecting crafted file names, leading to excessive CPU usage and potential blocking for minutes on a single core. The issue arises because each '*' wildcard is translated into a lazy match that allows the regex engine to try many splits, unlike the standard library's fnmatch which uses atomic groups to prevent this. The vulnerability affects scenarios such as upload handlers and directory scans where untrusted file names are matched against multi-star patterns. A fix is available in version 11.2 that changes the regex to use atomic groups for all but the last star segment, drastically improving performance and preventing the ReDoS.

References

Community reviews

Loading reviews…