CVE-2026-141598 PUBLISHED

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

Assigner: VulnCheck
Reserved: 02.12.2026 Published: 02.12.2026 Updated: 02.12.2026

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.

Metrics

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
CVSS Score: 8.2

Product Status

Vendor facelessuser
Product wcmatch
Versions Default: unaffected
  • affected from 0 to 13.0 (excl.)

Credits

  • Genius Wallaby finder
  • msoltanov finder
  • facelessuser remediation developer

References

Problem Types

  • Inefficient Regular Expression Complexity CWE