Skip to content
Fencer Vulns
high 7.5

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

  • reaper CBL-Mariner 2.0 3.1.1-9

azure linux advisories AZL-42034

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

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 braces
    affected: workaround, no fix available
  • Red Hat Migration Toolkit for Applications 7 mta/mta-ui-rhel9
    affected: 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-rhel9
    affected: 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-rhel7
    affected: workaround, no fix planned “Will not fix”
  • Red Hat Ansible Automation Platform 2 automation-controller, ansible-automation-platform-25/lightspeed-rhel8
    affected: workaround, no fix available
  • Red Hat build of Apache Camel - HawtIO 4 braces
    affected: workaround, no fix planned “Will not fix”
  • Red Hat build of Apicurio Registry 2 braces Red Hat Build of Keycloak braces
    affected: workaround, no fix available
  • Red Hat build of OptaPlanner 8 braces Red Hat Data Grid 8 braces Red Hat Discovery 1 discovery-server-container
    affected: workaround, no fix planned “Will not fix”
show 14 more
  • Red Hat Enterprise Linux 6 firefox, thunderbird Red Hat Enterprise Linux 7 firefox, thunderbird
    affected: 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-nodemon
    affected: workaround, no fix planned “Will not fix”
  • Red Hat Enterprise Linux 10 nodejs-nodemon
    affected: workaround, no fix available
  • Red Hat Fuse 7 braces Red Hat Integration Camel K 1 braces
    affected: workaround, no fix planned “Will not fix”
  • Red Hat JBoss Data Grid 7 braces Red Hat JBoss Enterprise Application Platform 7 braces
    affected: workaround, no fix planned “Out of support scope”
  • Red Hat JBoss Enterprise Application Platform 8 braces
    affected: 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-rhel9
    affected: 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-rhel8
    affected: workaround, no fix available
  • Red Hat OpenShift distributed tracing 2 rhosdt/jaeger-agent-rhel8 Red Hat OpenShift distributed tracing 3 rhosdt/jaeger-agent-rhel8
    affected: 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-rhel8
    affected: 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 braces
    affected: workaround, no fix planned “Will not fix”
  • Red Hat Satellite 6 rubygem-rabl, nodejs-webpack
    affected: workaround, no fix available, no fix planned “Will not fix”
  • Red Hat Single Sign-On 7 braces Red Hat Software Collections rh-nodejs14-nodejs-nodemon
    affected: 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-rhel8
    under 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

Weakness
  • CWE-1050 Excessive Platform Resource Consumption within a Loop
  • CWE-400 Uncontrolled Resource Consumption

References

Sources

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.