wcmatch before 13.0 ReDoS via multiple globstar segments in _handle_star()
- CVE-2026-141598
- GHSA-vvgr-fj3f-x236
- EUVD-2026-140784
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.
Text from the CVE.org record.
Recommendation
facelessuser wcmatch
- If you run a version before 13.0update to 13.0 or later
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
facelessuser wcmatch
Affected versions Fixed in before 13.0 13.0
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.