Repository navigation
Update dependency wcmatch to v11.2 [SECURITY] - #284
renovate[bot] wants to merge 1 commit into
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 24b91c9190
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| [[package]] | ||
| name = "bracex" | ||
| version = "3.0.1" | ||
| version = "3.2.4" |
There was a problem hiding this comment.
Keep bracex behind the configured release-age gate
At this commit's timestamp (2026-11-21 02:00 UTC), bracex 3.2.4 had been uploaded only about 13 hours earlier, as the adjacent lockfile metadata confirms. This bypasses the three-day quarantine in renovate.json5:17-19, which explicitly exists to let compromised releases be withdrawn. Since wcmatch 11.2 permits any bracex>=3.2 and the eligible 3.2.3 release had existed since November 14, lock an older 3.2.x release or wait until 3.2.4 passes the configured age gate. (wcmatch 11.2 dependency declaration, bracex 3.2.3 release)
Useful? React with 👍 / 👎.
This PR contains the following updates:
11.0.1→11.2wcmatch: Polynomial-time ReDoS when matching untrusted names against multi-star patterns (default flags)
CVE-2026-132276 / GHSA-53pm-wgxf-c6qf
More information
Details
Summary
With default flags, a pattern that contains several
*wildcards takes polynomial time, O(n^k) for k stars, to reject a crafted file name. The pattern is an ordinary developer constant such as*_*_*_*_*.csv; only the string being matched comes from the attacker. A 255-byte file name (the maximum on common filesystems) takes 73 s withfnmatch.fnmatch()and 86 s withglob.globmatch(). The standard library'sfnmatchhandles the same input in under a millisecond.This is different from GHSA-84v8-qmgq-9g88: that advisory covers extglob patterns, while this case needs no flags and no attacker-controlled pattern.
Details
Every
*is translated to a lazy.*?(_STAR,wcmatch/_wcparse.py:212;_PATH_STAR[^/]*?,:218), which is emitted in_handle_star(:1405-1424):When the subject consists of many
_and does not end in.csv, the regex engine tries every way of splitting it between the stars. CPython fixed the same problem in its ownfnmatch(bpo-40480) by making every star segment except the last one atomic.PoC
wcmatch 11.1, CPython 3.13, macOS:
glob.glob('*_*_*_*.csv', root_dir=d)on a real directory that contains one file named'_' * 255takes 1.7 s.Impact
Applications that match untrusted names against multi-star patterns can be blocked on a single CPU core for minutes per name. Examples: upload handlers, archive or object-store key filters, and
glob/WcMatchscans of directories where other users can create files. No authentication is needed.Fix
Emit every star segment except the last one as an atomic group, as the standard library does. On Python 3.11 and later use
(?>.*?_); on 3.10 use the lookahead/backreference form fromfnmatch._join_translated_parts. For example:This rejects the 255-byte name in under 1 ms. On my spot-check inputs it gives the same results as the current regex. The same change applies to
_PATH_STAR.Severity
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:HReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
facelessuser/wcmatch (wcmatch)
v11.2Compare Source
11.2
bracex3.2 for various bug fixes.numpyarrays (@Lushiyao5).
*are used for file name matching. Performance is only improved incases where variable length
EXTGLOBpatterns would not interfere with matching. Issue found by (@gistrec).globandiglob, and preserveunlimited expansion across multiple patterns with negative limits.
WcMatchinstead of 32.finite limits when exclusions consume the entire pattern budget.
EXTGLOB/EXTMATCHinverse group,!(...), is followedby an extended group that contains another extended group, e.g.
!(a)@(b|*(c)).EXTGLOB/EXTMATCHstar group,*(...), being matched as literal text when it directly followsanother
*, e.g.a**(b).globandiglobreturning the same path twice when two patterns find it and case is ignored, e.g.['A*', '*b']withIGNORECASEand a file namedAb. Files that only differ by case are no longer treated asduplicates when the file system is case sensitive.
.or...such as
?(a)*, and avoid returning.and..from these directory scans.rglobtreating a pattern that starts with**or***as if it started with*, e.g.**/a.txtwith
GLOBSTARmisseda.txtin the searched folder and returneda.txtfrom inside a symlinked folder.v11.1Compare Source
11.1
WindowsPathsubclass construction on Python 3.12+ (#238).GLOBSTARcaptures (#239).Configuration
📅 Schedule: (in timezone UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.