minimatchに細工したglobで処理負荷が増大する脆弱性
Summary
minimatchの11.0.1より前のバージョンに、サービス運用妨害(DoS)の脆弱性が見つかっています。短い悪意あるglobパターンを処理させると、パターンのコンパイル中にCPUとメモリの消費が過大になるおそれがあります。修正版は11.0.1で、更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
minimatchの11.0.1より前のバージョンに、サービス運用妨害(DoS)の脆弱性が見つかっています。短い悪意あるglobパターンを処理させると、パターンのコンパイル中にCPUとメモリの消費が過大になるおそれがあります。修正版は11.0.1で、更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| isaacsminimatch | — | Not listed |
| npmminimatch |
≥ 7.0.0, < 11.0.1→ 11.0.1 |
11.0.1 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-118764 node-minimatch No fixed version in this record
- Ubuntu UBUNTU-CVE-2026-118764 node-minimatch No fixed version in this record
Original description The description as published by the source.
minimatch is a minimal matching utility for converting glob expressions into JavaScript RegExp objects. Starting in 7.0.0 and prior to 11.0.1, src/index.ts implements firstPhasePreProcess() so that, at optimizationLevel 2 or higher, it repeatedly expands attacker-controlled **/.. pattern segments inside a fixpoint loop, allowing generated globParts entries to be processed and expanded again. secondPhasePreProcess() then compares the expanded entries pairwise, so a short malicious glob can cause excessive CPU and memory consumption during pattern compilation. This issue is fixed in version 11.0.1.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- patch github.com
- REDHAT Red Hat
- web github.com
- web github.com