CVE-2026-118764
ADVISORY - githubSummary
minimatch 10.2.6 contains an attacker-controlled pattern amplification in firstPhasePreProcess() when optimizationLevel >= 2.
researcher: Reid Downing (b1nv0id) files:
- src/index.ts: 690-770
- src/index.ts: 780-796
issue: input-controlled growth of globParts during first-phase preprocessing, followed by quadratic second-phase processing.
the **/../ transformation clones a globparts entry and appends the clone to the same globparts array:
parts.splice(gs, 1)
const other = parts.slice(0)
other[gs] = '**'
globParts.push(other)
this occurs inside a do...while (didSomething) fixpoint loop, allowing generated entries to be processed again.
the expanded globparts array is subsequently processed by secondPhasePreProcess(), which performs pairwise comparisons:
for (let i = 0; i < globParts.length - 1; i++) {
for (let j = i + 1; j < globParts.length; j++) {
this.partsMatch(...)
}
}
an attacker who can supply a glob pattern can therefore cause additional pattern entries to be generated during preprocessing, followed by quadratic pairwise processing, resulting in excessive cpu and memory consumption.
Common Weakness Enumeration (CWE)
Asymmetric Resource Consumption (Amplification)
Asymmetric Resource Consumption (Amplification)
Unchecked Input for Loop Condition
NIST
-
CVSS SCORE
6.9mediumGitHub
-
CVSS SCORE
6.9mediumDebian
-
Ubuntu
-
CVSS SCORE
N/AmediumAlma
-
CVSS SCORE
N/AhighRed Hat
3.9
CVSS SCORE
7.5highRocky
-
CVSS SCORE
N/AhighOracle
-
CVSS SCORE
N/AhighChainguard
CGA-334r-42w8-qv98
-
Docker Hardened Images
3.9
CVSS SCORE
6.9mediumminimos
MINI-6qp8-695r-xw55
-
minimos
MINI-8934-5hc2-8hvc
-
minimos
MINI-f2g3-hjp5-m679
-
minimos
MINI-j9cq-rpv3-44fv
-
minimos
MINI-p47m-49j8-c756
-
minimos
MINI-rrrf-hcgv-h5wc
-
minimos
MINI-v9hc-pgj6-f7rg
-
minimos
MINI-xjcr-cp74-56m2
-