CVE-2024-4068
HIGH EPSS 70.5%
Published May 14, 20242y ago · Modified Jun 17, 20262w ago
7.5 CVSS 3.1
Published May 14, 2024 2y ago
Last Modified Jun 17, 2026 2w ago
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 Details
Base Score
Exploitability
Impact
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H Attack Vector Network
Attack Complexity Low
Privileges Required None
User Interaction None
Scope Unchanged
Confidentiality None
Integrity None
Availability High
Threat Intelligence
EPSS Exploit Probability
70.5% percentile
Exploit & Patch Status
Public Exploit Known
Patch Available
Weaknesses 2
CWE-1050
CWE-400 Uncontrolled Resource Consumption Resource Mgmt
Affected Products 1
| Vendor | Product | Version | Range |
|---|---|---|---|
| jonschlinkert | braces | * | <3.0.3 |
References 5
- devhub.checkmarx.com https://devhub.checkmarx.com/cve-details/CVE-2024-4068/
- github.com https://github.com/micromatch/braces/commit/415d660c3002d1ab7e63dbf490c9851da80596ff
- github.com https://github.com/micromatch/braces/issues/35
- github.com https://github.com/micromatch/braces/pull/37
- github.com https://github.com/micromatch/braces/pull/40
Remediation
- github.com https://github.com/micromatch/braces/commit/415d660c3002d1ab7e63dbf490c9851da80596ff
- github.com https://github.com/micromatch/braces/pull/37
- github.com https://github.com/micromatch/braces/pull/40