llamaCVEVulnerability Intelligence
/
Advisory · GitHub · npm · minimatch

GHSA-CF2H-PXJQ-68XW

Quadratic compile time for long wildcard patterns (regression in 11.0.0 `mergeRows`)

Parche disponible
Descargar PNG JSON
CVSS
—
medium
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche el mismo día de la divulgación
Exposición8 dDesde la divulgación, 10 nov 2026, 6:05 p. m.
Detección8 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Parche 11.0.7
Monitoreo
Detectada +1
10 nov 26
18 nov 26
19 nov 26
10 nov 26
13 nov 26
15 nov 26
17 nov 26
19 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-CF2H-PXJQ-68XW divulgada
Remediación Parche 11.0.7 minimatch · 0 d desde divulgación
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

Affected: minimatch 11.0.0–11.0.6.

Summary. `mergeRows()` (`src/index.ts` ~813-852, introduced in 2e1d896) iterates every part position and, for each row with a wildcard there, copies and joins the whole row to build a Map key. For a pattern made of many wildcard-only path parts this is quadratic in the number of parts, even with a single row. It runs in `new Minimatch`, so any uncached pattern pays it.

Measured on 11.0.6 with a pattern of `*` parts joined by `/`: 1000 parts 22 ms, 2000 parts 72 ms, 4000 parts 190 ms, 8000 parts 805 ms (about 4× per doubling). Extrapolated to the 64 KB pattern limit (~32,000 parts), one compile blocks for roughly 13 s. A leading brace group of distinct words multiplies the rows and the cost.

Suggested fix. Build merge keys incrementally (or hash per position) instead of joining the full row at each position, or skip merging when there is only one row; and count the work against `braceExpandMax` or a new limit.

Versiones

Rangos afectados

Afectada Corregida Última
minimatch≥ 11.0.0 ≤ 11.0.6
11.0.0
11.0.6
11.0.8
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
npmminimatch
Corregida 11.0.7 0 d 11.0.8 no afectada
Versiones corregidas11.0.7
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://github.com/isaacs/minimatch/security/advisories/GHSA-cf2h-pxjq-68xw

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.