Skip to content

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

MediumCVSS 5.9 EPSS 0.52%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial
Technology
UbuntuDebian

Description

wcmatch is a Python library for wildcard file-name matching. Prior to 11.2, under the default flags, matching a non-matching attacker-controlled name against an application-supplied pattern containing several star wildcards separated by literals makes the lazy .? and [^/]? segments, including _STAR and _PATH_STAR emitted by _handle_star() in wcmatch/_wcparse.py, backtrack across possible splits, so a single comparison can consume prolonged CPU time. The pattern remains a developer-controlled constant and only the name is attacker-controlled; affected paths include fnmatch.fnmatch(), glob.globmatch(), and filesystem glob scans where another user can create names, without enabling extglob or any non-default flag. This issue is fixed in 11.2.

Upgrade path

9 packages: 1 fixed, 7 with no fix yet.

PackageAffectedFixed inStatus
debian/python-wcmatch(Debian 12) = 8.4-2; = 8.5.1-1; = 10.0-1; All versions No fix listed No fix yet
debian/python-wcmatch(Debian 13) = 10.0-1; All versions No fix listed No fix yet
debian/python-wcmatch(Debian 14) = 10.0-1; All versions No fix listed No fix yet
ubuntu/python-wcmatch(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/python-wcmatch(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/python-wcmatch(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/python-wcmatch(Ubuntu 26.10) All versions No fix listed No fix yet
pypi wcmatch(PyPI) < 11.2; <= 11.1; = 1.0; = 1.0.1 +51 more 11.2 Fixed
facelessuser wcmatch = < 11.2 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
facelessuser wcmatch = < 11.2 No fix listed
pypi wcmatch(PyPI) <= 11.1 No fix listed
pypi wcmatch(PyPI) < 11.2 11.2
pypi wcmatch(PyPI) = 1.0 No fix listed
pypi wcmatch(PyPI) = 1.0.1 No fix listed
pypi wcmatch(PyPI) = 1.0.2 No fix listed
pypi wcmatch(PyPI) = 10.0 No fix listed
pypi wcmatch(PyPI) = 10.1 No fix listed
pypi wcmatch(PyPI) = 10.2 No fix listed
pypi wcmatch(PyPI) = 10.2.1 No fix listed
pypi wcmatch(PyPI) = 11.0 No fix listed
pypi wcmatch(PyPI) = 11.0.1 No fix listed
pypi wcmatch(PyPI) = 11.1 No fix listed
pypi wcmatch(PyPI) = 2.0 No fix listed
pypi wcmatch(PyPI) = 2.0.1 No fix listed
pypi wcmatch(PyPI) = 2.0.2 No fix listed
pypi wcmatch(PyPI) = 2.0.3 No fix listed
pypi wcmatch(PyPI) = 2.1 No fix listed
pypi wcmatch(PyPI) = 2.2 No fix listed
pypi wcmatch(PyPI) = 2.2.1 No fix listed
pypi wcmatch(PyPI) = 3.0 No fix listed
pypi wcmatch(PyPI) = 3.0.1 No fix listed
pypi wcmatch(PyPI) = 3.0.2 No fix listed
pypi wcmatch(PyPI) = 4.0 No fix listed
pypi wcmatch(PyPI) = 4.0.1 No fix listed
Show 43 more
ProductAffected versionsFixed in
pypi wcmatch(PyPI) = 4.1 No fix listed
pypi wcmatch(PyPI) = 4.2 No fix listed
pypi wcmatch(PyPI) = 4.3 No fix listed
pypi wcmatch(PyPI) = 4.3.1 No fix listed
pypi wcmatch(PyPI) = 5.0 No fix listed
pypi wcmatch(PyPI) = 5.0.1 No fix listed
pypi wcmatch(PyPI) = 5.0.2 No fix listed
pypi wcmatch(PyPI) = 5.0.3 No fix listed
pypi wcmatch(PyPI) = 5.1 No fix listed
pypi wcmatch(PyPI) = 6.0 No fix listed
pypi wcmatch(PyPI) = 6.0.1 No fix listed
pypi wcmatch(PyPI) = 6.0.2 No fix listed
pypi wcmatch(PyPI) = 6.0.3 No fix listed
pypi wcmatch(PyPI) = 6.1 No fix listed
pypi wcmatch(PyPI) = 7.0 No fix listed
pypi wcmatch(PyPI) = 7.0.1 No fix listed
pypi wcmatch(PyPI) = 7.1 No fix listed
pypi wcmatch(PyPI) = 7.2 No fix listed
pypi wcmatch(PyPI) = 8.0 No fix listed
pypi wcmatch(PyPI) = 8.0.1 No fix listed
pypi wcmatch(PyPI) = 8.1 No fix listed
pypi wcmatch(PyPI) = 8.1.1 No fix listed
pypi wcmatch(PyPI) = 8.1.2 No fix listed
pypi wcmatch(PyPI) = 8.2 No fix listed
pypi wcmatch(PyPI) = 8.3 No fix listed
pypi wcmatch(PyPI) = 8.4 No fix listed
pypi wcmatch(PyPI) = 8.4.1 No fix listed
pypi wcmatch(PyPI) = 8.5 No fix listed
pypi wcmatch(PyPI) = 8.5.1 No fix listed
pypi wcmatch(PyPI) = 8.5.2 No fix listed
pypi wcmatch(PyPI) = 9.0 No fix listed
debian/python-wcmatch(Debian:12) All versions No fix listed
debian/python-wcmatch(Debian:12) = 10.0-1 No fix listed
debian/python-wcmatch(Debian:12) = 8.4-2 No fix listed
debian/python-wcmatch(Debian:12) = 8.5.1-1 No fix listed
debian/python-wcmatch(Debian:13) All versions No fix listed
debian/python-wcmatch(Debian:13) = 10.0-1 No fix listed
debian/python-wcmatch(Debian:14) All versions No fix listed
debian/python-wcmatch(Debian:14) = 10.0-1 No fix listed
ubuntu/python-wcmatch(Ubuntu:22.04) All versions No fix listed
ubuntu/python-wcmatch(Ubuntu:24.04) All versions No fix listed
ubuntu/python-wcmatch(Ubuntu:26.04) All versions No fix listed
ubuntu/python-wcmatch(Ubuntu:26.10) All versions No fix listed

References