CVE-2024-4068
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| braces | npm | 3.0.3, 3.0.2 |
| argo-workflows-3.7 | Chainguard | 3.7.13-r2 |
| opensearch-dashboards-2 | Chainguard | 2.15.0-r0 |
| argo-workflows | Chainguard | 3.6.5-r2 |
| gitlab-rails-ce-19.2 | Chainguard | 19.2.5-r2 |
| argo-workflows-3.7 | Wolfi | 3.7.13-r2 |
| gitlab-rails-ce-19.0 | Chainguard | 19.0.10-r0, 19.0.3-r1 |
| lerna | Chainguard | 8.1.4-r0 |
| gitlab-rails-ce-19.3 | Chainguard | 19.3.1-r6 |
| gitlab-rails-ce-fips-19.1 | Chainguard | 19.1.7-r7, 19.1.1-r1 |
| kubeflow-pipelines | Wolfi | 2.15.0-r1 |
| gitlab-rails-ce-fips-18.9 | Chainguard | 18.9.8-r8 |
19 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| micromatch | braces | 0 |
| chainguard | argo-workflows-3.7 | 0 |
| chainguard | opensearch-dashboards-2 | 0 |
| chainguard | argo-workflows | 0 |
| micromatch | braces | 0 |
| chainguard | gitlab-rails-ce-19.2 | 0 |
| micromatch | braces | 0 |
| wolfi | argo-workflows-3.7 | 0 |
| chainguard | gitlab-rails-ce-19.0 | 0, 0 |
| npm | braces | 0 |
| chainguard | lerna | 0 |
| jonschlinkert | braces | |
| chainguard | gitlab-rails-ce-19.3 | 0 |
| chainguard | gitlab-rails-ce-fips-19.1 | 0, 0 |
| wolfi | kubeflow-pipelines | 0 |
| chainguard | gitlab-rails-ce-fips-18.9 | 0 |
| chainguard | gitlab-rails-ce-fips-19.2 | 0 |
| chainguard | py3-captum | 0 |
| chainguard | kubeflow-pipelines | 0 |
| chainguard | gitlab-rails-ce-18.11 | 0 |
…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