CVE-2024-4068

Memory Exhaustion in braces

Published May 13, 2024 CVSS 3.1 · 7.5 High EPSS 1.5% KEV · Not listed
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.

Remediation

Vendor Solution

Update to version 3.0.3 to mitigate the issue.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-1632 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.
Github GHSA Github GHSA GHSA-grv7-fg5c-xmjg Uncontrolled resource consumption in braces
History
Type Values Removed Values Added
CPEs cpe:2.3:a:jonschlinkert:braces:*:*:*:*:node.js:*:*:* cpe:2.3:a:jonschlinkert:braces:*:*:*:*:*:node.js:*:*
Type Values Removed Values Added
First Time appeared Jonschlinkert
Jonschlinkert braces
CPEs cpe:2.3:a:jonschlinkert:braces:*:*:*:*:node.js:*:*:*
Vendors & Products Jonschlinkert
Jonschlinkert braces
Type Values Removed Values Added
Metrics epss

{'score': 0.00157}

epss

{'score': 0.00142}

Type Values Removed Values Added
First Time appeared Redhat rhboac Hawtio
CPEs cpe:/a:redhat:rhboac_hawtio:4.0.0
Vendors & Products Redhat rhboac Hawtio
Type Values Removed Values Added
First Time appeared Redhat multicluster Engine
CPEs cpe:/a:redhat:acm:2.9::el8
cpe:/a:redhat:multicluster_engine:2.4::el8
cpe:/a:redhat:multicluster_engine:2.5::el8
Vendors & Products Redhat multicluster Engine
Type Values Removed Values Added
First Time appeared Redhat acm
CPEs cpe:/a:redhat:acm:2.10::el9
Vendors & Products Redhat acm
Type Values Removed Values Added
First Time appeared Micromatch
Micromatch braces
CPEs cpe:2.3:a:micromatch:braces:3.0.3:*:*:*:*:*:*:*
Vendors & Products Micromatch
Micromatch braces
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Redhat jboss Enterprise Application Platform
CPEs cpe:/a:redhat:jboss_enterprise_application_platform:7.4
cpe:/a:redhat:jboss_enterprise_application_platform:7.4::el7
cpe:/a:redhat:jboss_enterprise_application_platform:7.4::el8
cpe:/a:redhat:jboss_enterprise_application_platform:7.4::el9
Vendors & Products Redhat jboss Enterprise Application Platform
Type Values Removed Values Added
First Time appeared Redhat rhmt
CPEs cpe:/a:redhat:rhmt:1.8::el8
Vendors & Products Redhat rhmt
Type Values Removed Values Added
First Time appeared Redhat
Redhat service Mesh
CPEs cpe:/a:redhat:service_mesh:2.6::el8
cpe:/a:redhat:service_mesh:2.6::el9
Vendors & Products Redhat
Redhat service Mesh