Skip to main content
Public proof of conceptFix available

CVE-2024-4068

A public proof of concept exists; no exploitation attested.

  • Published2024-05-14
  • Fixed in3.0.3
  • WeaknessCWE-1050 · CWE-400

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2024-05-1415:42CVE publishedNVD

Versions per branch

NVD · OSV · CISA-ADP
Jonschlinkert braces
BranchAffectedFixed in
3.0< 3.0.33.0.3
Micromatch braces
BranchAffectedFixed in
3.0< 3.0.33.0.3

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As Checkmarx, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2024-11-06

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • @rootio/bracesRoot:npmall versions · fixed in 3.0.2-root.io.1
  • @rootio/bracesRoot:npmall versions · fixed in 2.3.2-root.io.1
  • @rootio/bracesRoot:npmall versions · fixed in 2.3.2-root.io.2
  • @rootio/bracesRoot:npmall versions · fixed in 2.3.2-root.io.3
  • @rootio/bracesRoot:npmall versions · fixed in 3.0.2-root.io.2
  • @rootio/bracesRoot:npmall versions · fixed in 3.0.2-root.io.3
  • @rootio/bracesRoot:npmall versions · fixed in 3.0.3-root.io.1
  • apache-superset-4.1MinimOSall versions · no fixed version listedand 2 other packages

107 more package ranges on OSV.dev

Vendor advisories

  • CVE-2024-4068 Red Hat Product Security191 products fixed · 67 known affected

    braces: fails to limit the number of characters it can handle

    braces as a component of Cryostat 2 · mta/mta-ui-rhel9 as a component of Migration Toolkit for Applications 7 · braces.src as a component of Migration Toolkit for Runtimes · +64 more

  • RHSA-2026:34342 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: Cluster Observability Operator 1.5.0

  • RHSA-2024:11023 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: HawtIO 4.1.0 for Red Hat build of Apache Camel 4 Release and security update.

  • RHSA-2024:8075 Red Hat Product Security40 products fixed

    Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.4.19 Security update

  • RHSA-2024:8076 Red Hat Product Security40 products fixed

    Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.4.19 Security update

  • RHSA-2024:8077 Red Hat Product Security40 products fixed

    Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.4.19 Security update

7 more advisories

Full record on NVD

Fix

  1. Update Jonschlinkert braces to 3.0.3
  2. Vendor fix Red Hat Product Security RHSA-2026:34342 · 4 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  3. Vendor fix Red Hat Product Security RHSA-2024:11023 · 1 productBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  4. Vendor fix Red Hat Product Security RHSA-2024:8075 · 40 productsBefore applying the update, make sure all previously released errata relevant to your system have been applied. Also, back up your existing installation, including all applications, configuration files, databases and database settings. For details on how to apply this update, refer to: https://acce…
  5. Vendor fix Red Hat Product Security RHSA-2024:4464 · 4 productsFor Red Hat Advanced Cluster Management for Kubernetes, see the following documentation, which will be updated shortly for this release: https://access.redhat.com/documentation/en-us/red_hat_advanced_cluster_management_for_kubernetes/2.10/html-single/install/index#installing
  6. Vendor fix Red Hat Product Security RHBA-2024:4458 · 8 productsFor multicluster engine for Kubernetes, see the following documentation for details on how to install the images: https://access.redhat.com/documentation/en-us/red_hat_advanced_cluster_management_for_kubernetes/2.10/html/clusters/cluster_mce_overview#mce-install-intro
  7. Vendor fix Red Hat Product Security RHBA-2024:3593 · 4 productsFor Red Hat Advanced Cluster Management for Kubernetes, see the following documentation, which will be updated shortly for this release: https://access.redhat.com/documentation/en-us/red_hat_advanced_cluster_management_for_kubernetes/2.9/html-single/install/index#installing

Advisories and patches

Detection

read 2026-11-01 01:02 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
2024-05-14
Last Modified
2026-06-17
NVD status
Analyzed
GitHub Advisory
GHSA-grv7-fg5c-xmjg

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.

Is CVE-2024-4068 actively exploited?

Active exploitation of CVE-2024-4068 has not been confirmed. Its EPSS score was 1.5% on 2026-11-08, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2024-4068?

CVE-2024-4068 has a CVSS v3 base score of 7.5 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.

Running braces? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record