fkie_cve-2024-4068
Vulnerability from fkie_nvd
Published
2024-05-14 15:42
Modified
2025-08-04 14:26
Severity ?
Summary
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
Impacted products
Vendor | Product | Version | |
---|---|---|---|
jonschlinkert | braces | * |
{ "configurations": [ { "nodes": [ { "cpeMatch": [ { "criteria": "cpe:2.3:a:jonschlinkert:braces:*:*:*:*:node.js:*:*:*", "matchCriteriaId": "C23E83C9-ED6E-4B16-AFC3-216861DD5C1E", "versionEndExcluding": "3.0.3", "vulnerable": true } ], "negate": false, "operator": "OR" } ] } ], "cveTags": [], "descriptions": [ { "lang": "en", "value": "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." }, { "lang": "es", "value": "El paquete NPM \"braces\" no limita la cantidad de caracteres que puede manejar, lo que podr\u00eda provocar agotamiento de la memoria. En `lib/parse.js`, si un usuario malintencionado env\u00eda \"imbalanced braces\" como entrada, el an\u00e1lisis entrar\u00e1 en un bucle, lo que har\u00e1 que el programa comience a asignar memoria de mont\u00f3n sin liberarla en ning\u00fan momento del bucle. Finalmente, se alcanza el l\u00edmite del mont\u00f3n de JavaScript y el programa fallar\u00e1." } ], "id": "CVE-2024-4068", "lastModified": "2025-08-04T14:26:34.200", "metrics": { "cvssMetricV31": [ { "cvssData": { "attackComplexity": "LOW", "attackVector": "NETWORK", "availabilityImpact": "HIGH", "baseScore": 7.5, "baseSeverity": "HIGH", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "privilegesRequired": "NONE", "scope": "UNCHANGED", "userInteraction": "NONE", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H", "version": "3.1" }, "exploitabilityScore": 3.9, "impactScore": 3.6, "source": "596c5446-0ce5-4ba2-aa66-48b3b757a647", "type": "Secondary" } ] }, "published": "2024-05-14T15:42:48.660", "references": [ { "source": "596c5446-0ce5-4ba2-aa66-48b3b757a647", "tags": [ "Third Party Advisory" ], "url": "https://devhub.checkmarx.com/cve-details/CVE-2024-4068/" }, { "source": "596c5446-0ce5-4ba2-aa66-48b3b757a647", "tags": [ "Patch" ], "url": "https://github.com/micromatch/braces/commit/415d660c3002d1ab7e63dbf490c9851da80596ff" }, { "source": "596c5446-0ce5-4ba2-aa66-48b3b757a647", "tags": [ "Issue Tracking" ], "url": "https://github.com/micromatch/braces/issues/35" }, { "source": "596c5446-0ce5-4ba2-aa66-48b3b757a647", "tags": [ "Exploit", "Issue Tracking", "Patch" ], "url": "https://github.com/micromatch/braces/pull/37" }, { "source": "596c5446-0ce5-4ba2-aa66-48b3b757a647", "tags": [ "Issue Tracking", "Patch" ], "url": "https://github.com/micromatch/braces/pull/40" }, { "source": "af854a3a-2127-422b-91ae-364da2661108", "tags": [ "Third Party Advisory" ], "url": "https://devhub.checkmarx.com/cve-details/CVE-2024-4068/" }, { "source": "af854a3a-2127-422b-91ae-364da2661108", "tags": [ "Patch" ], "url": "https://github.com/micromatch/braces/commit/415d660c3002d1ab7e63dbf490c9851da80596ff" }, { "source": "af854a3a-2127-422b-91ae-364da2661108", "tags": [ "Issue Tracking" ], "url": "https://github.com/micromatch/braces/issues/35" }, { "source": "af854a3a-2127-422b-91ae-364da2661108", "tags": [ "Exploit", "Issue Tracking", "Patch" ], "url": "https://github.com/micromatch/braces/pull/37" }, { "source": "af854a3a-2127-422b-91ae-364da2661108", "tags": [ "Issue Tracking", "Patch" ], "url": "https://github.com/micromatch/braces/pull/40" } ], "sourceIdentifier": "596c5446-0ce5-4ba2-aa66-48b3b757a647", "vulnStatus": "Analyzed", "weaknesses": [ { "description": [ { "lang": "en", "value": "CWE-1050" } ], "source": "596c5446-0ce5-4ba2-aa66-48b3b757a647", "type": "Secondary" }, { "description": [ { "lang": "en", "value": "CWE-400" } ], "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary" } ] }
Loading…
Loading…
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.
Loading…
Loading…