CVE-2024-4068

Memory Exhaustion in braces

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.

Remediation

Solution:

  • Update to version 3.0.3 to mitigate the issue.

Categories

7.5
CVSS
Severity: High
CVSS 3.1 •
EPSS 0.47%
Affected: micromatch braces
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2024-4068?
CVE-2024-4068 has been scored as a high severity vulnerability.
How to fix CVE-2024-4068?
To fix CVE-2024-4068: Update to version 3.0.3 to mitigate the issue.
Is CVE-2024-4068 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2024-4068 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2024-4068?
CVE-2024-4068 affects micromatch braces.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.