CVE-2024-4068

May 14, 2024, 4:11 p.m.

Awaiting Analysis
CVE has been marked for Analysis. Normally once in this state the CVE will be analyzed by NVD staff within 24 hours.

Products

braces NPM package

Source

596c5446-0ce5-4ba2-aa66-48b3b757a647

Tags

CVE-2024-4068 details

Published : May 14, 2024, 3:42 p.m.
Last Modified : May 14, 2024, 4:11 p.m.

Description

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.

CVSS Score

1 2 3 4 5 6 7.5 8 9 10

Weakness

Weakness Name Description

CVSS Data

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

Base Score

7.5

Exploitability Score

Impact Score

Base Severity

HIGH

References

URL Source
https://devhub.checkmarx.com/cve-details/CVE-2024-4068/ 596c5446-0ce5-4ba2-aa66-48b3b757a647
https://github.com/micromatch/braces/blob/98414f9f1fabe021736e26836d8306d5de747e0d/lib/parse.js#L308 596c5446-0ce5-4ba2-aa66-48b3b757a647
https://github.com/micromatch/braces/issues/35 596c5446-0ce5-4ba2-aa66-48b3b757a647
This website uses the NVD API, but is not approved or certified by it.