logo

CVE-2024-4068 braces

Package

Manager: npm
Name: braces
Vulnerable Version: >=0 <3.0.3

Severity

Level: High

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

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

EPSS: 0.00225 pctl0.45067

Details

Uncontrolled resource consumption in braces The NPM package `braces` 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.

Metadata

Created: 2024-05-14T18:30:54Z
Modified: 2024-06-10T20:17:26Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/05/GHSA-grv7-fg5c-xmjg/GHSA-grv7-fg5c-xmjg.json
CWE IDs: ["CWE-1050", "CWE-400"]
Alternative ID: GHSA-grv7-fg5c-xmjg
Finding: F067
Auto approve: 1