VDB

CVE-2024-4068

CVE-2024-4068 PUBLISHED CVSS 7.5 HIGH

Memory Exhaustion in braces

Reported by checkmarx · Published May 13, 2024

braces is fixed in 3.0.3 and 3.0.2 (npm)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
bracesnpm3.0.3, 3.0.2
argo-workflows-3.7Chainguard3.7.13-r2
opensearch-dashboards-2Chainguard2.15.0-r0
argo-workflowsChainguard3.6.5-r2
gitlab-rails-ce-19.2Chainguard19.2.5-r2
argo-workflows-3.7Wolfi3.7.13-r2
gitlab-rails-ce-19.0Chainguard19.0.10-r0, 19.0.3-r1
lernaChainguard8.1.4-r0
gitlab-rails-ce-19.3Chainguard19.3.1-r6
gitlab-rails-ce-fips-19.1Chainguard19.1.7-r7, 19.1.1-r1
kubeflow-pipelinesWolfi2.15.0-r1
gitlab-rails-ce-fips-18.9Chainguard18.9.8-r8

19 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
micromatchbraces0
chainguardargo-workflows-3.70
chainguardopensearch-dashboards-20
chainguardargo-workflows0
micromatchbraces0
chainguardgitlab-rails-ce-19.20
micromatchbraces0
wolfiargo-workflows-3.70
chainguardgitlab-rails-ce-19.00, 0
npmbraces0
chainguardlerna0
jonschlinkertbraces
chainguardgitlab-rails-ce-19.30
chainguardgitlab-rails-ce-fips-19.10, 0
wolfikubeflow-pipelines0
chainguardgitlab-rails-ce-fips-18.90
chainguardgitlab-rails-ce-fips-19.20
chainguardpy3-captum0
chainguardkubeflow-pipelines0
chainguardgitlab-rails-ce-18.110

…and 13 more

Timeline

  • May 13, 2024 CVE Published
  • May 14, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 4, 2024 Coalition ESS Score (11 in total, the first dated here)
  • Mar 9, 2026 Security Advisory (23 in total, the first dated here)
  • Oct 13, 2026 Distribution Patch (21 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-4068
vulnetix vdb fixes CVE-2024-4068

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-4068/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›