Inefficient Regular Expression Complexity Affecting semgrep package, versions <1.186.0-r6


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.52% (38th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-WOLFILATEST-SEMGREP-22806062
  • published24 Nov 2026
  • disclosed20 Nov 2026

Introduced: 20 Nov 2026

NewCVE-2026-132276  (opens in a new tab)
CWE-1333  (opens in a new tab)

How to fix?

Upgrade Wolfi semgrep to version 1.186.0-r6 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream semgrep package and not the semgrep package as distributed by Wolfi. See How to fix? for Wolfi relevant fixed versions and status.

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.