Direct naar de inhoud
⚡ Kritieke cyberalerts voor jouw sector & systemen — direct in je inbox. Aanmelden →
cybernieuws.nl Cybersecurity en informatiebeveiling nieuws alerts live · 11 min 118 bronnen 1 kritiek 1 vandaag
CVE's Videos Dagbriefing

← Terug naar CVE-database

CVE-2026-14257

HIGH · 7.5 CVSS Gepubliceerd: CWE-400

Beschrijving NL

brace-expansie tot en met 5.0.7 is kwetsbaar voor denial of service via geheugenuitputting. De functie expand() beperkt het aantal resultaten met een maximale optie (standaard 100.000), maar begrenst niet de lengte van elke resultaatreeks. Door meerdere brace-groepen te koppelen, houdt een aanvaller de resultaattelling onder de limiet terwijl elk resultaat geleidelijk langer wordt, dus het totale geheugen wordt geschaald met zowel de telling als de tekenreekslengte totdat het proces een fatale, onvindbare fout uit het geheugen raakt. Ongeveer 7,5 kB invoer ('{a,b}'.repeat(1500)) crasht een standaard Node.js-proces. Elke toepassing die door aanvallers beïnvloede strings doorgeeft aan brace-expansion.expand () - direct of transitief via minimatch/ glob brace-patronen - kan worden gecrasht door een klein verzoek. Opgelost in 5.0.8 door een maxLength-optie (standaard 4.000.000) toe te voegen die de geaccumuleerde uitvoer en tussenliggende arrays begrenst.

Origineel (Engels) tonen

brace-expansion through 5.0.7 is vulnerable to denial of service via memory exhaustion. The expand() function limits the number of results with a max option (default 100,000) but does not bound the length of each result string. By chaining multiple brace groups, an attacker keeps the result count under the limit while making each result progressively longer, so total memory scales with both count and string length until the process hits a fatal, uncatchable out-of-memory error. About 7.5 KB of input ('{a,b}'.repeat(1500)) crashes a default Node.js process. Any application that passes attacker-influenced strings to brace-expansion.expand() - directly or transitively via minimatch / glob brace patterns - can be crashed by a small request. Fixed in 5.0.8 by adding a maxLength option (default 4,000,000) that bounds accumulated output and intermediate arrays.

Vendors

Juliangruber

Affected products

Brace-expansion

References