CVE-2024-4068 json
Memory Exhaustion in braces
published 2024-05-13 2 y ago modified 2026-09-10 1 mo ago also GHSA-grv7-fg5c-xmjg , EUVD-2024-1632
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.5%
- EPSS 1.5% chance of exploitation in 30 days, percentile 73%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm braces 3.0.3
- micromatch braces 3.0.3
- node-braces Debian 14, Debian 13 3.0.3+~3.0.4-1
debian advisories DEBIAN-CVE-2024-4068
- eap7-jsoup jboss enterprise application platform 7.4 1.15.4-1.redhat_00003.1.el9eap
- eap7-wildfly jboss enterprise application platform 7.4 7.4.19-1.GA_redhat_00002.1.el9eap
- eap7-xalan-j2 jboss enterprise application platform 7.4 2.7.1-37.redhat_00015.1.el9eap
- eap7-hal-console jboss enterprise application platform 7.4 3.3.24-1.Final_redhat_00001.1.el9eap
- eap7-ironjacamar jboss enterprise application platform 7.4 1.5.18-1.Final_redhat_00001.1.el9eap
- eap7-jbossws-cxf jboss enterprise application platform 7.4 5.4.12-1.Final_redhat_00001.1.el9eap
- eap7-undertow-jastow jboss enterprise application platform 7.4 2.0.15-1.Final_redhat_00001.1.el9eap
- eap7-wildfly-modules jboss enterprise application platform 7.4 7.4.19-1.GA_redhat_00002.1.el9eap
red hat advisories RHSA-2024:8077RHSA-2024:8075RHSA-2024:8076
- pgadmin4 SLE Module for Python 3 15 SP6, SLE High Performance Computing 15 SP5-ESPOS, SLE High Performance Computing 15 SP4-ESPOS +12 more 4.30-150300.3.18.1
- pgadmin4 SLE Module for Python 3 15 SP6, openSUSE Leap 15.6 8.5-150600.3.6.1
suse advisories SUSE-SU-2025:01326-1SUSE-SU-2025:1326-1SUSE-SU-2024:3771-1
- velociraptor openSUSE Tumbleweed 0.7.0.4.git142.862ef23-1.1
- traefik openSUSE Tumbleweed 3.1.2-1.1
- traefik2 openSUSE Tumbleweed 2.11.8-1.1
opensuse advisories openSUSE-SU-2025:14663-1openSUSE-SU-2024:14257-1openSUSE-SU-2024:14258-1
- github.com/micromatch/braces@415d660 commit
- github.com/micromatch/braces#37 pull request
- github.com/micromatch/braces#40 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-4068 updated cvss 7.5
braces: fails to limit the number of characters it can handle
-
Red Hat Cryostat 2 bracesaffected: workaround, no fix available
-
Red Hat Migration Toolkit for Applications 7 mta/mta-ui-rhel9affected: workaround, no fix planned “Will not fix”
-
Red Hat Migration Toolkit for Runtimes braces Red Hat Migration Toolkit for Virtualization migration-toolkit-virtualization/mtv-console-plugin-rhel9affected: workaround, no fix available
-
Red Hat Network Observability Operator network-observability/network-observability-console-plugin-rhel9 Red Hat Node HealthCheck Operator workload-availability/node-remediation-console-rhel8 Red Hat OpenShift Serverless braces Red Hat 3scale API Management Platform 2 3scale-amp2/system-rhel7affected: workaround, no fix planned “Will not fix”
-
Red Hat Ansible Automation Platform 2 automation-controller, ansible-automation-platform-25/lightspeed-rhel8affected: workaround, no fix available
-
Red Hat build of Apache Camel - HawtIO 4 bracesaffected: workaround, no fix planned “Will not fix”
-
Red Hat build of Apicurio Registry 2 braces Red Hat Build of Keycloak bracesaffected: workaround, no fix available
-
Red Hat build of OptaPlanner 8 braces Red Hat Data Grid 8 braces Red Hat Discovery 1 discovery-server-containeraffected: workaround, no fix planned “Will not fix”
show 14 moreshow fewer
-
Red Hat Enterprise Linux 6 firefox, thunderbird Red Hat Enterprise Linux 7 firefox, thunderbirdaffected: workaround, no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 8 pcs, pcs-snmp, nodejs-nodemon Red Hat Enterprise Linux 9 pcs, pcs-snmp, nodejs-nodemonaffected: workaround, no fix planned “Will not fix”
-
Red Hat Enterprise Linux 10 nodejs-nodemonaffected: workaround, no fix available
-
Red Hat Fuse 7 braces Red Hat Integration Camel K 1 bracesaffected: workaround, no fix planned “Will not fix”
-
Red Hat JBoss Data Grid 7 braces Red Hat JBoss Enterprise Application Platform 7 bracesaffected: workaround, no fix planned “Out of support scope”
-
Red Hat JBoss Enterprise Application Platform 8 bracesaffected: workaround, no fix available “Fix deferred”
-
Red Hat JBoss Enterprise Application Platform Expansion Pack braces Red Hat OpenShift Container Platform 4 openshift4/ose-console, openshift4/ose-monitoring-plugin-rhel9, openshift4/nmstate-console-plugin-rhel9, openshift4/ose-networking-console-plugin-rhel9affected: workaround, no fix planned “Will not fix”
-
Red Hat Openshift Container Storage 4 ocs4/mcg-core-rhel8 Red Hat OpenShift Data Science (RHODS) rhods/odh-rhel8-operator, rhods/odh-dashboard-rhel8affected: workaround, no fix available
-
Red Hat OpenShift distributed tracing 2 rhosdt/jaeger-agent-rhel8 Red Hat OpenShift distributed tracing 3 rhosdt/jaeger-agent-rhel8affected: workaround, no fix planned “Will not fix”
-
Red Hat OpenShift GitOps openshift-gitops-1/argocd-rhel8, openshift-gitops-1/argo-rollouts-rhel8, openshift-gitops-1/console-plugin-rhel8affected: workaround, no fix available, no fix planned “Will not fix”
-
Red Hat OpenShift Virtualization 4 container-native-virtualization/kubevirt-console-plugin, container-native-virtualization/kubevirt-console-plugin-rhel9 Red Hat Process Automation 7 bracesaffected: workaround, no fix planned “Will not fix”
-
Red Hat Satellite 6 rubygem-rabl, nodejs-webpackaffected: workaround, no fix available, no fix planned “Will not fix”
-
Red Hat Single Sign-On 7 braces Red Hat Software Collections rh-nodejs14-nodejs-nodemonaffected: workaround, no fix planned “Will not fix”
-
Red Hat Logging Subsystem for Red Hat OpenShift openshift-logging/kibana6-rhel8, openshift-logging/logging-view-plugin-rhel9 Red Hat OpenShift Pipelines openshift-pipelines/pipelines-hub-ui-rhel8, openshift-pipelines/pipelines-console-plugin-rhel8 Red Hat Advanced Cluster Security 3 advanced-cluster-security/rhacs-main-rhel8under investigation
5 more under investigation, 13 more fixed, 13 more not affected in the full advisory
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
1.47% chance of exploitation in the next 30 days, higher than 73% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/micromatch/braces/pull/37 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | braces | <3.0.3 |
3.0.3 |
Affected products
- micromatch braces
Classification
References
-
github.com
/micromatch/braces/pull/37
web, exploit, issue-tracking, patch
-
github.com
/micromatch/braces/pull/40
web, issue-tracking, patch
-
github.com
/micromatch/braces/commit/415d660c3002d1ab7e63dbf490c9851da80596ff
web, patch
-
github.com
/micromatch/braces/issues/35
web, issue-tracking
-
devhub.checkmarx.com
/cve-details/CVE-2024-4068/
third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2024-4068
advisory
-
devhub.checkmarx.com
/cve-details/CVE-2024-4068
web
-
github.com
/micromatch/braces
package
-
github.com
/micromatch/braces/blob/98414f9f1fabe021736e26836d8306d5de747e0d/lib/parse.js#L308
web
Sources
- CVE List CVE-2024-4068
- GitHub Advisory GHSA-grv7-fg5c-xmjg
- NVD CVE-2024-4068
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.