CVE-2024-4068 Details
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.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 13, 2024References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://devhub.checkmarx.com/cve-details/CVE-2024-4068/ | Checkmarx | Third Party Advisory |
| https://github.com/micromatch/braces/commit/415d660c3002d1ab7e63dbf490c9851da80596ff | Checkmarx | Patch |
| https://github.com/micromatch/braces/issues/35 | Checkmarx | Issue Tracking |
| https://github.com/micromatch/braces/pull/37 | Checkmarx | ExploitIssue TrackingPatch |
| https://github.com/micromatch/braces/pull/40 | Checkmarx | Issue TrackingPatch |
| https://devhub.checkmarx.com/cve-details/CVE-2024-4068/ | CVE | Third Party Advisory |
| https://github.com/micromatch/braces/commit/415d660c3002d1ab7e63dbf490c9851da80596ff | CVE | Patch |
| https://github.com/micromatch/braces/issues/35 | CVE | Issue Tracking |
| https://github.com/micromatch/braces/pull/37 | CVE | ExploitIssue TrackingPatch |
| https://github.com/micromatch/braces/pull/40 | CVE | Issue TrackingPatch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1050 | Excessive Platform Resource Consumption within a Loop | Checkmarx |
| CWE-400 | Uncontrolled Resource Consumption | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| jonschlinkert braces | < 3.0.3 |
CPE
Remediation
| |
Change History
8 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | Checkmarx |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Dec 31, 2025 | Modified Analysis | [email protected] |
| Aug 4, 2025 | Initial Analysis | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| Jul 3, 2024 | CVE Modified | CISA-ADP |
| May 22, 2024 | CVE Modified | Checkmarx |
| May 14, 2024 | New CVE Received | Checkmarx |