{"id":"CVE-2024-4068","published":"2024-05-13T10:06:38Z","modified":"2024-11-06T13:10:11Z","title":"Memory Exhaustion in braces","vendor":"micromatch","product":"braces","tier":"tail","description":{"text":"The NPM package `braces`, versions prior to 3.0.3, fails to limit the number of characters it can handle, which could lead to Memory Exhaustion. In `lib/parse.js,` if a malicious user sends \"imbalanced braces\" as input, the parsing will enter a loop, which will cause the program to start allocating heap memory without freeing it at any moment of the loop. Eventually, the JavaScript heap limit is reached, and the program will crash.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01471,"percentile":0.7441,"provenance":"source"},"cwes":[{"id":"CWE-1050","name":"Excessive Platform Resource Consumption within a Loop"},{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/micromatch/braces/issues/35","tags":[]},{"url":"https://devhub.checkmarx.com/cve-details/CVE-2024-4068/","tags":[]},{"url":"https://github.com/micromatch/braces/pull/37","tags":[]},{"url":"https://github.com/micromatch/braces/pull/40","tags":[]},{"url":"https://github.com/micromatch/braces/commit/415d660c3002d1ab7e63dbf490c9851da80596ff","tags":[]}],"priority":{"score":20.1,"factors":[{"name":"EPSS percentile","points":14.88},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"micromatch","affectedVersions":[{"vendor":"micromatch","product":"braces","versions":["<= 3.0.2"]}],"fixedVersions":[{"vendor":"micromatch","product":"braces","versions":["3.0.3"]}],"solutions":{"items":["Update to version 3.0.3 to mitigate the issue."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2024-05-13T11:10:08.649102Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"braces","vulnerableRanges":["<3.0.3"],"patched":["3.0.3"],"from":["GHSA-grv7-fg5c-xmjg"],"provenance":"source"}],"summary":{"text":"The flaw is in the braces NPM package (micromatch vendor) prior to 3.0.3, in lib/parse.js, where input is not limited in length or handled safely. Sending \"imbalanced braces\" as input causes the parser to loop while continuously allocating heap memory without releasing it, so an attacker who can supply such input over the network without authentication or user interaction can exhaust the JavaScript heap and crash the process.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:15:20Z"},"euvd":{"id":"EUVD-2024-1632","exploited":false,"provenance":"source"}}