Logo
-

Byte Open Security

(ByteOS Network)

Log In

Sign Up

ByteOS

Security
Vulnerability Details
Registries
Custom Views
Weaknesses
Attack Patterns
Filters & Tools
CVE Vulnerability Details :
CVE-2024-4068
PUBLISHED
More InfoOfficial Page
Assigner-Checkmarx
Assigner Org ID-596c5446-0ce5-4ba2-aa66-48b3b757a647
View Known Exploited Vulnerability (KEV) details
Published At-13 May, 2024 | 10:06
Updated At-06 Nov, 2024 | 13:10
Rejected At-
▼CVE Numbering Authority (CNA)
Memory Exhaustion in braces

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.

Affected Products
Vendor
micromatch
Product
braces
Collection URL
https://www.npmjs.com/package/micromatch
Package Name
braces
Repo
https://github.com/micromatch/braces
Program Files
  • lib/parse.js
Default Status
unknown
Versions
Affected
  • From 0 through 3.0.2 (git)
    • -> unaffectedfrom3.0.3
Problem Types
TypeCWE IDDescription
CWECWE-1050CWE-1050: Excessive Platform Resource Consumption within a Loop
Metrics
VersionBase scoreBase severityVector
3.17.5HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Update to version 3.0.3 to mitigate the issue.

Configurations

Workarounds

Exploits

Credits

finder
Mário Teixeira, Checkmarx Research Group
Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://github.com/micromatch/braces/issues/35
N/A
https://devhub.checkmarx.com/cve-details/CVE-2024-4068/
N/A
https://github.com/micromatch/braces/pull/37
N/A
https://github.com/micromatch/braces/pull/40
N/A
https://github.com/micromatch/braces/commit/415d660c3002d1ab7e63dbf490c9851da80596ff
N/A
▼Authorized Data Publishers (ADP)
1. CISA ADP Vulnrichment
Affected Products
Vendor
micromatch
Product
braces
CPEs
  • cpe:2.3:a:micromatch:braces:3.0.3:*:*:*:*:*:*:*
Default Status
unknown
Versions
Affected
  • From 0 before 3.0.3 (custom)
Problem Types
TypeCWE IDDescription
CWECWE-400CWE-400 Uncontrolled Resource Consumption
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
2. CVE Program Container
Affected Products
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://github.com/micromatch/braces/issues/35
x_transferred
https://devhub.checkmarx.com/cve-details/CVE-2024-4068/
x_transferred
https://github.com/micromatch/braces/pull/37
x_transferred
https://github.com/micromatch/braces/pull/40
x_transferred
https://github.com/micromatch/braces/commit/415d660c3002d1ab7e63dbf490c9851da80596ff
x_transferred
Details not found