CVE-2024-4068

HIGH
Published May 14, 2024 Modified Dec 31, 2025 CWE-1050 CWE-400

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 v3.1 Score

7.5
HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Weakness Type (CWE)

CWE-1050 CWE-1050
CWE-400 Uncontrolled Resource Consumption

Affected Products

Vendor Product
jonschlinkert braces

References

Frequently Asked Questions

What is CVE-2024-4068? +
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. It has a CVSS v3.1 base score of 7.5 (HIGH).
How severe is CVE-2024-4068? +
CVE-2024-4068 has a CVSS v3.1 score of 7.5 out of 10, rated HIGH. This is a high-severity vulnerability that should be prioritized for patching.
What products are affected by CVE-2024-4068? +
CVE-2024-4068 affects products from jonschlinkert, specifically: braces. Check the affected products table above for specific version ranges.
How do I check if I'm vulnerable to CVE-2024-4068? +
You can use Secably's free Website Scanner to check your website for known vulnerabilities. For infrastructure scanning, use the Port Scanner to identify exposed services that may be affected. Check the vendor advisories linked above for specific patch and version information.

Related Vulnerabilities

Don't wait for an exploit

Scan your website for vulnerabilities like CVE-2024-4068 — free, no signup required.

Start Free Scan