Back
CVE-2024-4068
Memory Exhaustion in braces
High7.5EPSS 1.5%
- Published
- Updated
- Reserved
- Assigned by
- Checkmarx
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| CheckmarxCNA (assigner) | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVDNVD · Analyzed | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 1.5% · top 26% of all CVEs (6 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: yes · Technical impact: partial
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
Weakness
Affected products
- affected ≤ 3.0.2
Affected packages
From reviewed advisories of the GitHub Advisory Database.
What to do
Solution: Update to version 3.0.3 to mitigate the issue.
References (5)
- https://github.com/micromatch/braces/issues/35 (opens in a new tab)x_transferred
- https://devhub.checkmarx.com/cve-details/CVE-2024-4068/ (opens in a new tab)x_transferred
- https://github.com/micromatch/braces/pull/37 (opens in a new tab)x_transferred
- https://github.com/micromatch/braces/pull/40 (opens in a new tab)x_transferred
- https://github.com/micromatch/braces/commit/415d660c3002d1ab7e63dbf490c9851da80596ff (opens in a new tab)x_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-grv7-fg5c-xmjg (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2024-4068)Record last updated .