{"id":"CVE-2024-4068","url":"https://www.cyber-defence.io/tools/cve/CVE-2024-4068","generatedAt":"2026-10-28T03:41:10.333Z","title":"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.","description":"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.","published":"2024-05-14T15:42:49.000Z","lastModified":"2026-06-17T08:01:03.000Z","status":"Analyzed","sourceIdentifier":"596c5446-0ce5-4ba2-aa66-48b3b757a647","cvss":{"version":"3.1","score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},"cwe":["CWE-1050","CWE-400"],"affected":["jonschlinkert/braces"],"epss":{"score":0.01471,"percentile":0.73631,"date":"2026-10-27","history":[]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"high","text":"High impact if exploited, but EPSS currently rates exploitation as unlikely (1.47%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit."},"changes":[],"references":[{"url":"https://devhub.checkmarx.com/cve-details/CVE-2024-4068/","tags":["Third Party Advisory"],"source":"596c5446-0ce5-4ba2-aa66-48b3b757a647"},{"url":"https://github.com/micromatch/braces/commit/415d660c3002d1ab7e63dbf490c9851da80596ff","tags":["Patch"],"source":"596c5446-0ce5-4ba2-aa66-48b3b757a647"},{"url":"https://github.com/micromatch/braces/issues/35","tags":["Issue Tracking"],"source":"596c5446-0ce5-4ba2-aa66-48b3b757a647"},{"url":"https://github.com/micromatch/braces/pull/37","tags":["Exploit","Issue Tracking","Patch"],"source":"596c5446-0ce5-4ba2-aa66-48b3b757a647"},{"url":"https://github.com/micromatch/braces/pull/40","tags":["Issue Tracking","Patch"],"source":"596c5446-0ce5-4ba2-aa66-48b3b757a647"},{"url":"https://devhub.checkmarx.com/cve-details/CVE-2024-4068/","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/micromatch/braces/commit/415d660c3002d1ab7e63dbf490c9851da80596ff","tags":["Patch"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/micromatch/braces/issues/35","tags":["Issue Tracking"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/micromatch/braces/pull/37","tags":["Exploit","Issue Tracking","Patch"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/micromatch/braces/pull/40","tags":["Issue Tracking","Patch"],"source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-4068","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}