CVE-2024-4068 Affecting opensearch-dashboards-2 package, versions <2.15.0-r0
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-WOLFILATEST-OPENSEARCHDASHBOARDS2-7424672
- published 5 Jul 2024
- disclosed 14 May 2024
Introduced: 14 May 2024
CVE-2024-4068 Open this link in a new tabHow to fix?
Upgrade Wolfi
opensearch-dashboards-2
to version 2.15.0-r0 or higher.
NVD Description
Note: Versions mentioned in the description apply only to the upstream opensearch-dashboards-2
package and not the opensearch-dashboards-2
package as distributed by Wolfi
.
See How to fix?
for Wolfi
relevant fixed versions and status.
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.
References
- https://devhub.checkmarx.com/cve-details/CVE-2024-4068/
- https://github.com/micromatch/braces/blob/98414f9f1fabe021736e26836d8306d5de747e0d/lib/parse.js#L308
- https://github.com/micromatch/braces/issues/35
- https://github.com/micromatch/braces/commit/415d660c3002d1ab7e63dbf490c9851da80596ff
- https://github.com/micromatch/braces/pull/37
- https://github.com/micromatch/braces/pull/40