CVE-2024-4068

Memory Exhaustion in braces

HIGH
7.5
CVSS Score
Published: May 13, 2024 at 10:06 AM UTC
Updated: June 17, 2026 at 08:01 AM UTC
2 products affected across 2 vendorsBracesBraces

Using braces by micromatch?

Get instant alerts when new vulnerabilities affect braces - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 1%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 3.0.3
Affected range stops below 3.0.3, so it looks safe — our inference, not a vendor statement
v ≤ 3.0.2v < 3.0.33.0.3
Affected range stops below 3.0.3, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (5)

Third Party Advisory
Source: 596c5446-0ce5-4ba2-aa66-48b3b757a647
https://devhub.checkmarx.com/cve-details/CVE-2024-4068/
Issue Tracking
Source: 596c5446-0ce5-4ba2-aa66-48b3b757a647
https://github.com/micromatch/braces/issues/35
ExploitIssue TrackingPatch
Source: 596c5446-0ce5-4ba2-aa66-48b3b757a647
https://github.com/micromatch/braces/pull/37
Issue TrackingPatch
Source: 596c5446-0ce5-4ba2-aa66-48b3b757a647
https://github.com/micromatch/braces/pull/40

SSVC — Action Prioritization

SSVCNo known exploitAutomatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.5HIGHCheckmarx
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-1050CWE-400

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card