CVE-2024-4068
Public on
Last Modified:
Description
A flaw was found in the NPM package braces. It 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, causing 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.
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.
Additional Information
- This content is not included.Bugzilla 2280600: braces: fails to limit the number of characters it can handle
- Content from cwe.mitre.org is not included.CWE-1050: Excessive Platform Resource Consumption within a Loop
- FAQ: Frequently asked questions about CVE-2024-4068
- Offline Security Data data is available for integration with other systems. See Offline Security Data API to get started.
External References
Content from www.cve.org is not included.https://www.cve.org/CVERecord?id=CVE-2024-4068
Content from nvd.nist.gov is not included.https://nvd.nist.gov/vuln/detail/CVE-2024-4068
Content from github.com is not included.https://github.com/micromatch/braces/issues/35
Affected Packages and Issued Red Hat Security Errata
| Products / Services | Components | State | Errata |
|---|---|---|---|
| Cryostat 2 | braces | Affected | |
| HawtIO 4.0.0 for Red Hat build of Apache Camel 4 | Fixed | RHSA-2024:11023 | |
| Logging Subsystem for Red Hat OpenShift | openshift-logging/kibana6-rhel8 | Under investigation | |
| Logging Subsystem for Red Hat OpenShift | openshift-logging/logging-view-plugin-rhel8 | Under investigation | |
| Migration Toolkit for Applications 7 | mta/mta-cli-rhel9 | Not affected | |
| Migration Toolkit for Applications 7 | mta/mta-ui-rhel9 | Will not fix | |
| Migration Toolkit for Runtimes | braces | Affected | |
| Migration Toolkit for Virtualization | migration-toolkit-virtualization/mtv-console-plugin-rhel9 | Affected | |
| Network Observability Operator | network-observability/network-observability-console-plugin-rhel9 | Will not fix | |
| Node HealthCheck Operator | workload-availability/node-remediation-console-rhel8 | Will not fix | |
| OpenShift Pipelines | openshift-pipelines/pipelines-console-plugin-rhel8 | Under investigation | |
| OpenShift Pipelines | openshift-pipelines/pipelines-hub-ui-rhel8 | Under investigation | |
| OpenShift Serverless | braces | Will not fix | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp-system-container | Will not fix | |
| Red Hat Advanced Cluster Management for Kubernetes 2.10 for RHEL 9 | rhacm2/console-rhel9 | Fixed | RHSA-2024:4464 |
| Red Hat Advanced Cluster Management for Kubernetes 2.9 for RHEL 8 | rhacm2/console-rhel8 | Fixed | RHBA-2024:3593 |
| Red Hat Advanced Cluster Security 3 | advanced-cluster-security/rhacs-main-rhel8 | Under investigation | |
| Red Hat Advanced Cluster Security 4 | advanced-cluster-security/rhacs-main-rhel8 | Under investigation | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-25/lightspeed-rhel8 | Affected | |
| Red Hat Ansible Automation Platform 2 | automation-controller | Affected | |
| Red Hat Ansible Automation Platform 2 | aap-cloud-ui-container | Not affected | |
| Red Hat Ansible Automation Platform 2 | automation-eda-controller | Not affected | |
| Red Hat Build of Keycloak | braces | Affected | |
| Red Hat Data Grid 8 | braces | Will not fix | |
| Red Hat Developer Hub 1.3 on RHEL 9 | rhdh/rhdh-hub-rhel9 | Fixed | RHBA-2024:7523 |
| Red Hat Discovery 1 | discovery-server-container | Will not fix | |
| Red Hat Enterprise Linux 10 | nodejs-nodemon | Affected | |
| Red Hat Enterprise Linux 6 | firefox | Out of support scope | |
| Red Hat Enterprise Linux 6 | thunderbird | Out of support scope | |
| Red Hat Enterprise Linux 7 | firefox | Out of support scope | |
| Red Hat Enterprise Linux 7 | thunderbird | Out of support scope | |
| Red Hat Enterprise Linux 8 | grafana | Not affected | |
| Red Hat Enterprise Linux 8 | mozjs60 | Not affected | |
| Red Hat Enterprise Linux 8 | nodejs:18/nodejs-nodemon | Will not fix | |
| Red Hat Enterprise Linux 8 | nodejs:20/nodejs-nodemon | Will not fix | |
| Red Hat Enterprise Linux 8 | pcs | Will not fix | |
| Red Hat Enterprise Linux 9 | gjs | Not affected | |
| Red Hat Enterprise Linux 9 | polkit | Not affected | |
| Red Hat Enterprise Linux 9 | nodejs:20/nodejs-nodemon | Will not fix | |
| Red Hat Enterprise Linux 9 | nodejs:22/nodejs-nodemon | Will not fix | |
| Red Hat Enterprise Linux 9 | pcs | Will not fix | |
| Red Hat Fuse 7 | braces | Will not fix | |
| Red Hat Integration Camel K 1 | braces | Will not fix | |
| Red Hat JBoss Data Grid 7 | braces | Out of support scope | |
| Red Hat JBoss Enterprise Application Platform 7 | braces | Out of support scope | |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8 | eap7-hal-console | Fixed | RHSA-2024:8076 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8 | eap7-hibernate-validator | Fixed | RHSA-2024:8076 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8 | eap7-insights-java-client | Fixed | RHSA-2024:8076 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8 | eap7-ironjacamar | Fixed | RHSA-2024:8076 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8 | eap7-jboss-cert-helper | Fixed | RHSA-2024:8076 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8 | eap7-jboss-ejb-client | Fixed | RHSA-2024:8076 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8 | eap7-jboss-server-migration | Fixed | RHSA-2024:8076 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8 | eap7-jbossws-cxf | Fixed | RHSA-2024:8076 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8 | eap7-jsoup | Fixed | RHSA-2024:8076 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8 | eap7-undertow-jastow | Fixed | RHSA-2024:8076 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8 | eap7-wildfly | Fixed | RHSA-2024:8076 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8 | eap7-xalan-j2 | Fixed | RHSA-2024:8076 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 9 | eap7-hal-console | Fixed | RHSA-2024:8077 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 9 | eap7-hibernate-validator | Fixed | RHSA-2024:8077 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 9 | eap7-insights-java-client | Fixed | RHSA-2024:8077 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 9 | eap7-ironjacamar | Fixed | RHSA-2024:8077 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 9 | eap7-jboss-cert-helper | Fixed | RHSA-2024:8077 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 9 | eap7-jboss-ejb-client | Fixed | RHSA-2024:8077 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 9 | eap7-jboss-server-migration | Fixed | RHSA-2024:8077 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 9 | eap7-jbossws-cxf | Fixed | RHSA-2024:8077 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 9 | eap7-jsoup | Fixed | RHSA-2024:8077 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 9 | eap7-undertow-jastow | Fixed | RHSA-2024:8077 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 9 | eap7-wildfly | Fixed | RHSA-2024:8077 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 9 | eap7-xalan-j2 | Fixed | RHSA-2024:8077 |
| Red Hat JBoss Enterprise Application Platform 7.4 on RHEL 7 | eap7-hal-console | Fixed | RHSA-2024:8075 |
| Red Hat JBoss Enterprise Application Platform 7.4 on RHEL 7 | eap7-hibernate-validator | Fixed | RHSA-2024:8075 |
| Red Hat JBoss Enterprise Application Platform 7.4 on RHEL 7 | eap7-insights-java-client | Fixed | RHSA-2024:8075 |
| Red Hat JBoss Enterprise Application Platform 7.4 on RHEL 7 | eap7-ironjacamar | Fixed | RHSA-2024:8075 |
| Red Hat JBoss Enterprise Application Platform 7.4 on RHEL 7 | eap7-jboss-cert-helper | Fixed | RHSA-2024:8075 |
| Red Hat JBoss Enterprise Application Platform 7.4 on RHEL 7 | eap7-jboss-ejb-client | Fixed | RHSA-2024:8075 |
| Red Hat JBoss Enterprise Application Platform 7.4 on RHEL 7 | eap7-jboss-server-migration | Fixed | RHSA-2024:8075 |
| Red Hat JBoss Enterprise Application Platform 7.4 on RHEL 7 | eap7-jbossws-cxf | Fixed | RHSA-2024:8075 |
| Red Hat JBoss Enterprise Application Platform 7.4 on RHEL 7 | eap7-jsoup | Fixed | RHSA-2024:8075 |
| Red Hat JBoss Enterprise Application Platform 7.4 on RHEL 7 | eap7-undertow-jastow | Fixed | RHSA-2024:8075 |
| Red Hat JBoss Enterprise Application Platform 7.4 on RHEL 7 | eap7-wildfly | Fixed | RHSA-2024:8075 |
| Red Hat JBoss Enterprise Application Platform 7.4 on RHEL 7 | eap7-xalan-j2 | Fixed | RHSA-2024:8075 |
| Red Hat JBoss Enterprise Application Platform 8 | braces | Fix deferred | |
| Red Hat JBoss Enterprise Application Platform Expansion Pack | braces | Will not fix | |
| Red Hat Migration Toolkit for Containers 1.8 | rhmtc/openshift-migration-ui-rhel8 | Fixed | RHSA-2024:7164 |
| Red Hat OpenShift Container Platform 3.11 | openshift3/ose-console | Under investigation | |
| Red Hat OpenShift Container Platform 4 | openshift4/nmstate-console-plugin-rhel9 | Will not fix | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-console | Will not fix | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-monitoring-plugin-rhel9 | Will not fix | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-networking-console-plugin-rhel9 | Will not fix | |
| Red Hat OpenShift Data Science (RHODS) | rhods/odh-dashboard-rhel8 | Affected | |
| Red Hat OpenShift Data Science (RHODS) | rhods/odh-operator-rhel8 | Affected | |
| Red Hat OpenShift Data Science (RHODS) | rhods/odh-rhel8-operator | Affected | |
| Red Hat OpenShift Dev Spaces | devspaces/code-rhel8 | Under investigation | |
| Red Hat OpenShift GitOps | openshift-gitops-1/argocd-rhel8 | Affected | |
| Red Hat OpenShift GitOps | openshift-gitops-1/console-plugin-rhel8 | Affected | |
| Red Hat OpenShift GitOps | openshift-gitops-1/gitops-operator-bundle | Under investigation | |
| Red Hat OpenShift GitOps | openshift-gitops-1/argo-rollouts-rhel8 | Will not fix | |
| Red Hat OpenShift Service Mesh 2.6 for RHEL 8 | openshift-service-mesh/grafana-rhel8 | Fixed | RHSA-2024:6211 |
| Red Hat OpenShift Service Mesh 2.6 for RHEL 8 | openshift-service-mesh/istio-cni-rhel8 | Fixed | RHSA-2024:6211 |
| Red Hat OpenShift Service Mesh 2.6 for RHEL 8 | openshift-service-mesh/istio-must-gather-rhel8 | Fixed | RHSA-2024:6211 |
| Red Hat OpenShift Service Mesh 2.6 for RHEL 8 | openshift-service-mesh/istio-rhel8-operator | Fixed | RHSA-2024:6211 |
| Red Hat OpenShift Service Mesh 2.6 for RHEL 8 | openshift-service-mesh/kiali-ossmc-rhel8 | Fixed | RHSA-2024:6211 |
| Red Hat OpenShift Service Mesh 2.6 for RHEL 8 | openshift-service-mesh/kiali-rhel8 | Fixed | RHSA-2024:6211 |
| Red Hat OpenShift Service Mesh 2.6 for RHEL 8 | openshift-service-mesh/kiali-rhel8-operator | Fixed | RHSA-2024:6211 |
| Red Hat OpenShift Service Mesh 2.6 for RHEL 8 | openshift-service-mesh/pilot-rhel8 | Fixed | RHSA-2024:6211 |
| Red Hat OpenShift Service Mesh 2.6 for RHEL 8 | openshift-service-mesh/ratelimit-rhel8 | Fixed | RHSA-2024:6211 |
| Red Hat OpenShift Service Mesh 2.6 for RHEL 9 | openshift-service-mesh/proxyv2-rhel9 | Fixed | RHSA-2024:6211 |
| Red Hat OpenShift Virtualization 4 | container-native-virtualization/kubevirt-console-plugin | Will not fix | |
| Red Hat OpenShift Virtualization 4 | container-native-virtualization/kubevirt-console-plugin-rhel9 | Will not fix | |
| Red Hat OpenShift distributed tracing 2 | rhosdt/jaeger-agent-rhel8 | Will not fix | |
| Red Hat OpenShift distributed tracing 3 | rhosdt/jaeger-agent-rhel8 | Will not fix | |
| Red Hat Openshift Container Storage 4 | ocs4/mcg-core-rhel8 | Affected | |
| Red Hat Openshift Data Foundation 4 | odf4/mcg-core-rhel8 | Not affected | |
| Red Hat Openshift Data Foundation 4 | odf4/odf-console-rhel9 | Not affected | |
| Red Hat Process Automation 7 | braces | Will not fix | |
| Red Hat Quay 3 | quay/quay-rhel8 | Under investigation | |
| Red Hat Satellite 6 | nodejs-webpack | Affected | |
| Red Hat Satellite 6 | satellite:el8/rubygem-rabl | Will not fix | |
| Red Hat Single Sign-On 7 | braces | Will not fix | |
| Red Hat Software Collections | rh-nodejs14-nodejs-nodemon | Will not fix | |
| Red Hat build of Apache Camel - HawtIO 4 | braces | Will not fix | |
| Red Hat build of Apicurio Registry 2 | braces | Affected | |
| Red Hat build of OptaPlanner 8 | braces | Will not fix | |
| multicluster engine for Kubernetes 2.4 for RHEL 8 | multicluster-engine/console-mce-rhel8 | Fixed | RHBA-2024:3555 |
| multicluster engine for Kubernetes 2.4 for RHEL 8 | multicluster-engine/multicluster-engine-console-mce-rhel8 | Fixed | RHBA-2024:3555 |
| multicluster engine for Kubernetes 2.5 for RHEL 9 | multicluster-engine/console-mce-rhel9 | Fixed | RHBA-2024:4458 |
| multicluster engine for Kubernetes 2.5 for RHEL 9 | multicluster-engine/multicluster-engine-console-mce-rhel9 | Fixed | RHBA-2024:4458 |
Common Vulnerability Scoring System (CVSS) Score Details
Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authorities (CNA) source for its products and services (see Red Hat classifications ).
| CVSS v3 Score Breakdown | Red Hat | NVD |
|---|---|---|
| CVSS v3 Base Score | 7.5 | |
| Attack Vector | Network | |
| Attack Complexity | Low | |
| Privileges Required | None | |
| User Interaction | None | |
| Scope | Unchanged | |
| Confidentiality Impact | None | |
| Integrity Impact | None | |
| Availability Impact | High |
CVSS v3 Vector
Red Hat CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Frequently Asked Questions
Why is Red Hat's CVSS v3 score or Impact different from other vendors?
For more information, see https://access.redhat.com/solutions/762393.
My product is listed as "Under investigation" or "Affected", when will Red Hat release a fix for this vulnerability?
- "Under investigation" doesn't necessarily mean that the product is affected by this vulnerability. It only means that our Analysis Team is still working on determining whether the product is affected and how it is affected.
- "Affected" means that our Analysis Team has determined that this product is affected by this vulnerability and might release a fix to address this in the near future.
What can I do if my product is listed as "Will not fix"?
Available options depend mostly on the Impact of the vulnerability and the current Life Cycle phase of your product. Overall, you have the following options:
- Upgrade to a supported product version that includes a fix for this vulnerability (recommended).
- Apply a mitigation (if one exists).
- Open a This content is not included.support case to request a prioritization of releasing a fix for this vulnerability.
What can I do if my product is listed as "Fix deferred"?
Available options depend mostly on the Impact of the vulnerability and the current Life Cycle phase of your product. Overall, you have the following options:
- Apply a mitigation (if one exists).
- Open a This content is not included.support case to request a prioritization of releasing a fix for this vulnerability.
- Red Hat Engineering focuses on addressing high-priority issues based on their complexity or limited lifecycle support. Therefore, lower-priority issues will not receive immediate fixes.
What is a mitigation?
I have a Red Hat product but it is not in the above list, is it affected?
Why is my security scanner reporting my product as vulnerable to this vulnerability even though my product version is fixed or not affected?
My product is listed as "Out of Support Scope". What does this mean?
Not sure what something means? Check out our Security Glossary.