CVE-2026-141598: wcmatch before 13.0 ReDoS via multiple globstar segments in _handle_star()
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.
Affected Software
Event History
Frequently Asked Questions
Which applications are realistically exposed?
Applications using wcmatch before 13.0 are exposed when they match attacker-supplied paths against patterns containing three or more globstar segments. Relevant interfaces include glob.globmatch, glob.globfilter, glob.compile matchers, and pathlib.PurePath.globmatch.
What does an attacker need to trigger the issue?
The attacker needs to be able to supply a non-matching path of only a few KB to a vulnerable matching operation. No privileges or user interaction are required, but the applicable pattern must contain three or more globstar segments.
How can I determine whether my deployment is affected?
Check whether the installed wcmatch version is earlier than 13.0 and whether the application uses the affected matching interfaces with patterns containing three or more globstar segments. Affected matching can cause a single CPU core to be consumed for minutes when processing a crafted non-matching path.