All vulnerabilities

PyPI

CVE-2026-141598

wcmatch before 13.0 ReDoS via multiple globstar segments in _handle_star()

Severity
High 8.2
Published
2 Dec 2026
Last changed
2 Dec 2026
Added to UpHeron
2 Dec 2026
Fixed in
13.0
Weakness
Regular expression denial of service (ReDoS) (CWE-1333)
Attack
Over the network · Only under certain conditions · No login needed · No user action needed
Attacker can
Take it down
CVSS vector
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
Sources
CVE Program

Description

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.

From the CVE Program.

Affected software

SoftwareAffected versions
wcmatchPyPI · osv:PyPI:wcmatch
  • Every version before 13.0

About wcmatch

Vulnerabilities in wcmatch

In our list
2
Published in the last 12 months
2
Critical, last 12 months
0
High, last 12 months
1
Known exploited
0
Search the list for wcmatch

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-141598