cve.bz

CVE-2024-4068 jonschlinkert braces: Uncontrolled Resource Consumption

7.5 highExploit referenceEPSS 1.5%Fix available

High (7.5) in jonschlinkert braces. EPSS 1.5% estimated probability of exploitation activity in the next 30 days. Fixed in braces 3.0.3.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
1.5% (unchanged from 1.5% a week ago; 1.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 74th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2024-05-13. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-1050 Excessive Platform Resource Consumption within a Loop
CWE-400 Uncontrolled Resource Consumption
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-4068 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-4068?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-4068?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-4068 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
jonschlinkert:bracesbefore 3.0.3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-grv7-fg5c-xmjgnpmbraces<3.0.33.0.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12node-bracesno fix listedDEBIAN-CVE-2024-4068
Debian13, 14node-braces3.0.3+~3.0.4-1DEBIAN-CVE-2024-4068
Ubuntu18.04:LTS, 20.04:LTS, 22.04:LTS and 4 morenode-bracesno fix listedUBUNTU-CVE-2024-4068
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-hal-console0:3.3.24-1.Final_redhat_00001.1.el7eapRHSA-2024:8075
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-hibernate-validator, eap7-hibernate-validator-cdi0:6.0.23-2.SP1_redhat_00001.1.el7eapRHSA-2024:8075
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-ironjacamar, eap7-ironjacamar-jdbc, eap7-ironjacamar-core-api and 6 more0:1.5.18-1.Final_redhat_00001.1.el7eapRHSA-2024:8075
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-jboss-cert-helper, eap7-insights-java-client, eap7-jboss-cert-helper-debuginfo0:1.1.3-1.redhat_00001.1.el7eapRHSA-2024:8075
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-jboss-ejb-client0:4.0.55-1.Final_redhat_00001.1.el7eapRHSA-2024:8075
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-jboss-server-migration, eap7-jboss-server-migration-cli, eap7-jboss-server-migration-core0:1.10.0-39.Final_redhat_00039.1.el7eapRHSA-2024:8075
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-jbossws-cxf0:5.4.12-1.Final_redhat_00001.1.el7eapRHSA-2024:8075
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-jsoup0:1.15.4-1.redhat_00003.1.el7eapRHSA-2024:8075
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-undertow-jastow0:2.0.15-1.Final_redhat_00001.1.el7eapRHSA-2024:8075
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-wildfly, eap7-wildfly-modules, eap7-wildfly-javadocs and 2 more0:7.4.19-1.GA_redhat_00002.1.el7eapRHSA-2024:8075
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-xalan-j20:2.7.1-37.redhat_00015.1.el7eapRHSA-2024:8075
Red Hatjboss_enterprise_application_platform:7.4::el8eap7-hal-console0:3.3.24-1.Final_redhat_00001.1.el8eapRHSA-2024:8076
21 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 12 morepgadmin44.30-150300.3.18.1SUSE-SU-2025:1326-1
SUSELinux Enterprise Module for Python 3 15 SP6pgadmin44.30-150300.3.18.1SUSE-SU-2025:01326-1
SUSELinux Enterprise Module for Python 3 15 SP6pgadmin48.5-150600.3.6.1SUSE-SU-2024:3771-1
openSUSELeap 15.6pgadmin48.5-150600.3.6.1SUSE-SU-2024:3771-1
openSUSETumbleweedtraefik3.1.2-1.1openSUSE-SU-2024:14257-1
openSUSETumbleweedtraefik22.11.8-1.1openSUSE-SU-2024:14258-1
openSUSETumbleweedvelociraptor0.7.0.4.git142.862ef23-1.1openSUSE-SU-2025:14663-1
Azure Linux2nodejs-nodemonno fix listedAZL-44020
Azure Linux2reaper3.1.1-9AZL-42034
Azure Linux3nodejs-nodemonno fix listedAZL-44562

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Moderate impact: In Red Hat products and services that include the vulnerable NPM package `braces`, a remote, unauthenticated attacker can provide crafted input containing imbalanced braces. The parser may enter an unbounded loop and allocate heap memory without freeing it, exhausting the JavaScript heap and crashing the application, causing a denial of service. The CVSS 3.1 score is 7.5 (Important), with a network attack vector, low complexity, no privileges or user interaction, and high availability impact; Red Hat's score matches the CVE.org score. The current affects cover multiple Red Hat products and services and community projects. Some current product streams are marked not affected or won't fix; the record does not provide a technical justification for those distinctions.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
HawtIO 4.0.0 for Red Hat build of Apache Camel 4Fixed 2024-12-12RHSA-2024:11023
multicluster engine for Kubernetes 2.4 for RHEL 8multicluster-engine/console-mce-rhel8:v2.4.5-25Fixed 2024-06-03RHBA-2024:3555
multicluster engine for Kubernetes 2.4 for RHEL 8multicluster-engine/multicluster-engine-console-mce-rhel8:v2.4.5-25Fixed 2024-06-03RHBA-2024:3555
multicluster engine for Kubernetes 2.5 for RHEL 9multicluster-engine/console-mce-rhel9:v2.5.5-1Fixed 2024-07-10RHBA-2024:4458
multicluster engine for Kubernetes 2.5 for RHEL 9multicluster-engine/multicluster-engine-console-mce-rhel9:v2.5.5-1Fixed 2024-07-10RHBA-2024:4458
Red Hat Advanced Cluster Management for Kubernetes 2.10 for RHEL 9rhacm2/console-rhel9:v2.10.4-13Fixed 2024-07-10RHSA-2024:4464
Red Hat Advanced Cluster Management for Kubernetes 2.9 for RHEL 8rhacm2/console-rhel8:v2.9.4-22Fixed 2024-06-04RHBA-2024:3593
Red Hat Developer Hub 1.3 on RHEL 9rhdh/rhdh-hub-rhel9:1.3-100Fixed 2024-10-02RHBA-2024:7523
Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8eap7-hal-console-0:3.3.24-1.Final_redhat_00001.1.el8eapFixed 2024-10-14RHSA-2024:8076
Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8eap7-hibernate-validator-0:6.0.23-2.SP1_redhat_00001.1.el8eapFixed 2024-10-14RHSA-2024:8076
Cryostat 2bracesAffected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/kibana6-rhel8Under investigation
Logging Subsystem for Red Hat OpenShiftopenshift-logging/logging-view-plugin-rhel8Under investigation
Migration Toolkit for Applications 7mta/mta-cli-rhel9Not affected
Migration Toolkit for Applications 7mta/mta-ui-rhel9Will not fix
Migration Toolkit for RuntimesbracesAffected
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-console-plugin-rhel9Affected
Network Observability Operatornetwork-observability/network-observability-console-plugin-rhel9Will not fix
Node HealthCheck Operatorworkload-availability/node-remediation-console-rhel8Will not fix
OpenShift Pipelinesopenshift-pipelines/pipelines-console-plugin-rhel8Under investigation
108 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-4068.

Attack patterns (CAPEC)

  • CAPEC-147 XML Ping of the Death Likelihood: Low · Severity: Medium
  • CAPEC-227 Sustained Client Engagement
  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON