CVE-2026-118764
minimatch has potential denial of service via globparts amplification
Description
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.
Affected Maven artifacts (3)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mvnpm » minimatchvia npm minimatch | >= 7.0.0, < 11.0.1 | 11.0.1 |
| org.webjars » minimatchvia npm minimatch | >= 7.0.0, < 11.0.1 | 11.0.1 |
| org.webjars.npm » minimatchvia npm minimatch | >= 7.0.0, < 11.0.1 | 11.0.1 |
Blast radius
57% of the dependent artifacts (4) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 76 |
Most used dependents
- org.mvnpm » glob-parent8 usages
- org.webjars.npm » editorconfig3 usages
- org.mvnpm » zudoku0 usages
- org.mvnpm.at.earendil-works » pi-coding-agent0 usages
- com.github.sbt » sbt-mocha_2.12_1.00 usages
- com.github.sbt » sbt-mocha_sbt20 usages
- com.github.sbt » sbt-mocha0 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
Other ecosystems
Also affects npm (1 package) . See all on OSV
References
| Advisory | NVD CVE-2026-118764 | nvd.nist.gov |
| Package | isaacs/minimatch | github.com |
| Web | isaacs/minimatch advisory GHSA-g3hv-75wg-m249 | github.com |
| Web | isaacs/minimatch commit 297b6c1 | github.com |
| Web | isaacs/minimatch commit 77a0f5c | github.com |
| Web | isaacs/minimatch commit fd0b3ab | github.com |
| Web | isaacs/minimatch release v11.0.1 | github.com |
