CVE-2024-4068: Memory Exhaustion in braces
Vulnerability summary
CVE-2024-4068 is a high (CVSS 7.5) vulnerability in jonschlinkert braces. EPSS estimates a 1.47% chance of exploitation in the next 30 days, higher than 73.8% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (GitHub, Date unknown)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 9 · Related 13Timeline
- 13-05-2024PublishedVulnerability first disclosed.
- 06-11-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
7 scores · 7 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · WolfiEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · NpmEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · ChainguardEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
1.47%
Chance of exploitation in the next 30 days
Percentile
74%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.47% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundBraces
Maturity: poc
Weaknesses
CWE · root cause- CWE-1050Excessive Platform Resource Consumption within a LoopThe product has a loop body or loop condition that contains a control element that directly or indirectly consumes platform resources, e.g. messaging, sessions, locks, or file descriptors.
- CWE-400Uncontrolled Resource ConsumptionThe product does not properly control the allocation and maintenance of a limited resource.
Affected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard64 products
- arangodb-3.11< 3.11.14.4-r17
- argo-workflows< 3.6.5-r2
- argo-workflows-ui-3.7< 3.7.13-r2
- gitlab-rails-ce-18.1All versions (No fix recorded)
- gitlab-rails-ce-18.10All versions (No fix recorded)
Wolfi4 products
- argo-workflows< 3.6.5-r2
- argo-workflows-ui-3.7< 3.7.13-r2
- kubeflow-pipelines-frontend< 2.15.0-r1
- lerna< 8.1.4-r0
Debian1 product
- node-bracesAll versions (No fix recorded) | < 3.0.3+~3.0.4-1
Jonschlinkert1 product
- braces< 3.0.3
Micromatch1 product
- braces≤ 3.0.2
Npm1 product
- braces< 3.0.3
Ubuntu1 product
- node-bracesAll versions (No fix recorded)
7 vendors · 73 products
References
14 linksShow all 14 references
- github.com/micromatch/bracesPACKAGE