CVE-2024-4068

Aliases:GHSA-grv7-fg5c-xmjg
Analyzed
Published: 13 May 2024, 10:06
Last modified:06 Nov 2024, 13:10

Vulnerability Summary

Overall Risk (default)
medium
40/100
CVSS Score
7.5 HIGH
v3.1 (cve.org)
EPSS Score
1.47% LOW
1% probability +1.25%
KEV
Not listed
Ransomware
No reports
Public exploits
1 found
Dark Web
Not detected

Timeline

13 May 2024, 10:06
Published
Vulnerability first disclosed
06 Nov 2024, 13:10
Last Modified
Vulnerability information updated

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.

CVSS Metrics

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

EPSS Trends

Current EPSS score: 1.47% Percentile: 71%

Techniques & Countermeasures

  • CWE-1050Excessive Platform Resource Consumption within a Loop

    The product has a loop body or loop condition that contains a control element that directly or indirectly consumes platform resources, e.g. messaging, sessions, locks, or file descriptors.

  • CWE-400Uncontrolled Resource Consumption

    The product does not properly control the allocation and maintenance of a limited resource.

Affected Systems

  • jonschlinkertbraces

    < 3.0.3

  • micromatchbraces

    ≤ 3.0.2

  • Npmbraces

    < 3.0.3

References (9)