SecurityContext

CVE-2024-4068: NPM braces - Denial of Service

  • Cve: CVE-2024-4068
  • Name: NPM braces - Denial of Service
  • Description: 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.
  • Impact: Attackers can cause denial of service by exhausting heap memory, leading to application crash or unavailability.
  • Remediation: Update to version 3.0.3 or later.
  • Vulnerability impact: denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Epss score: 0.01471
  • Epss percentile: 0.74448
  • Assignee: 596c5446-0ce5-4ba2-aa66-48b3b757a647
  • Published at: 2024-05-14T15:42:48Z
  • Age in days: 924
  • Modified at: 2026-06-17T08:01:02Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 5
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-4068
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: vulnerability type, requirements

Cwe

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

Hackerone

  • Reports: 2
  • Rank: 3806

Public exploits

UrlSourceAdded date
https://github.com/micromatch/braces/pull/37nvd2024-05-14

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/micromatch/braces/commit/415d660c3002d1ab7e63dbf490c9851da80596ffPatch
https://github.com/micromatch/braces/pull/37Exploit, Issue Tracking, Patch
https://github.com/micromatch/braces/pull/40Issue Tracking, Patch
https://devhub.checkmarx.com/cve-details/CVE-2024-4068/Third Party Advisory
https://github.com/micromatch/braces/issues/35Issue Tracking

Products

ProductAffectedPlatform boundSourcesUrl
jonschlinkert:braces< 3.0.3nonvd/v1/products/jonschlinkert/braces

Projects

RepositoryLink kindsIndexedUrl
micromatch/bracescommit, issues, package, pullyes/v1/repositories/micromatch/braces

Index

  • Repositories: 1670
  • Repositories high signal: 565
  • Packages: 1

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2024-05-14
  • Remote: yes
  • Hackerone reports: 2
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, exposed hosts