CVE-2024-4068 Memory Exhaustion in braces
HighCVSS 7.5
EPSS 1.5%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
10 packages: 5 fixed, 5 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/node-braces(Debian 12) | = 3.0.2+~3.0.1-1; = 3.0.3+~3.0.4-1; = 3.0.3+~3.0.5-1; All versions | No fix listed | No fix yet |
| ubuntu/node-braces(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-braces(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-braces(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-braces(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| debian/node-braces(Debian 13) | < 3.0.3+~3.0.4-1 | 3.0.3+~3.0.4-1 | Fixed |
| debian/node-braces(Debian 14) | < 3.0.3+~3.0.4-1 | 3.0.3+~3.0.4-1 | Fixed |
| jonschlinkert braces | < 3.0.3 | 3.0.3 | Fixed |
| micromatch braces | < 3.0.3 | 3.0.3 | Fixed |
| npm braces(npm) | < 3.0.3 | 3.0.3 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm braces(npm) | < 3.0.3 | 3.0.3 |
| debian/node-braces(Debian:12) | All versions | No fix listed |
| debian/node-braces(Debian:12) | = 3.0.2+~3.0.1-1 | No fix listed |
| debian/node-braces(Debian:12) | = 3.0.3+~3.0.4-1 | No fix listed |
| debian/node-braces(Debian:12) | = 3.0.3+~3.0.5-1 | No fix listed |
| debian/node-braces(Debian:13) | < 3.0.3+~3.0.4-1 | 3.0.3+~3.0.4-1 |
| debian/node-braces(Debian:14) | < 3.0.3+~3.0.4-1 | 3.0.3+~3.0.4-1 |
| ubuntu/node-braces(Ubuntu:22.04) | All versions | No fix listed |
| micromatch braces | < 3.0.3 | 3.0.3 |
| ubuntu/node-braces(Ubuntu:24.04) | All versions | No fix listed |
| jonschlinkert braces | < 3.0.3 | 3.0.3 |
| ubuntu/node-braces(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/node-braces(Ubuntu:26.10) | All versions | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com issue-tracking
- devhub.checkmarx.com third-party-advisory
- github.com
- github.com exploit issue-tracking patch
- github.com issue-tracking patch
- github.com patch
- github.com
- Debian Security Tracker CVE-2024-4068 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking
- github.com product