p PatchFirst

CVE-2026-132276

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

CVSS 5.9 · Medium · EPSS 0.5% · Public exploit · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="python-wcmatch"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Stack: system · python

Affected products and versions

  • wcmatch

    Versions
    • < 11.2: Affected

    No fix published

  • python-wcmatch Debian 12

    Versions
    • 10.0-1
    • 8.4-2
    • 8.5.1-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • python-wcmatch Debian 13

    Versions
    • 10.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • python-wcmatch Debian 14

    Versions
    • 10.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • wcmatch PyPI

    Versions
    • 1.0
    • 1.0.1
    • 1.0.2
    • 10.0
    • 10.1
    • 10.2
    All versions (53)
    • 10.2.1
    • 11.0
    • 11.0.1
    • 11.1
    • 2.0
    • 2.0.1
    • 2.0.2
    • 2.0.3
    • 2.1
    • 2.2
    • 2.2.1
    • 3.0
    • 3.0.1
    • 3.0.2
    • 4.0
    • 4.0.1
    • 4.1
    • 4.2
    • 4.3
    • 4.3.1
    • 5.0
    • 5.0.1
    • 5.0.2
    • 5.0.3
    • 5.1
    • 6.0
    • 6.0.1
    • 6.0.2
    • 6.0.3
    • 6.1
    • 7.0
    • 7.0.1
    • 7.1
    • 7.2
    • 8.0
    • 8.0.1
    • 8.1
    • 8.1.1
    • 8.1.2
    • 8.2
    • 8.3
    • 8.4
    • 8.4.1
    • 8.5
    • 8.5.1
    • 8.5.2
    • 9.0
    Affected ranges
    • ECOSYSTEM: < 11.2

    Update to 11.2

  • python-wcmatch Ubuntu 22.04 LTS

    Versions
    • 8.3-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • python-wcmatch Ubuntu 24.04 LTS

    Versions
    • 8.4-2
    • 8.4-2ubuntu0.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • python-wcmatch Ubuntu 26.10

    Versions
    • 10.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • python-wcmatch Ubuntu 26.04 LTS

    Versions
    • 10.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →