{"answers":{"affected":"2 open source packages ship an affected version, including braces. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-4068 in the wild and no public exploit code.","fix":"Upgrade braces to 3.0.3 or later.","what":"CVE-2024-4068 is a high-severity denial of service vulnerability in micromatch braces, published on 13 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-4068 and fix it if it is affected.\n\nWhat it is: CVE-2024-4068 is a high-severity denial of service vulnerability in micromatch braces, published on 13 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-4068 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- braces (npm): affected all versions; fixed in 3.0.3\n- braces (npm): affected all versions; fixed in 3.0.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-4068/ (Markdown: https://insights.sbomify.com/CVE-2024-4068/index.md)","id":"CVE-2024-4068","markdown":"https://insights.sbomify.com/CVE-2024-4068/index.md","name":"CVE-2024-4068","record":{"aliases":["AZL-42034","AZL-44020","AZL-44562","CLEANSTART-2026-LF83973","CLEANSTART-2026-LX13962","CLSA-2026-1771546208","CLSA-2026-1771805413","CLSA-2026-1776731778","CLSA-2026-1777509592","CLSA-2026-1780879899","DEBIAN-CVE-2024-4068","GHSA-grv7-fg5c-xmjg","MINI-3wvg-p8qj-r3xw","MINI-mccj-2jhv-rpr2","MINI-p7g2-vj97-xhwq","ROOT-APP-NPM-CVE-2024-4068","UBUNTU-CVE-2024-4068"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript parsing library","requires_auth":"none","summary":"An attacker can cause a denial of service by sending imbalanced braces to the braces library, triggering infinite memory allocation and crashing the application.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Checkmarx","cpe":[{"product":"braces","vendor":"jonschlinkert"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-1050","name":"Excessive Platform Resource Consumption within a Loop"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Memory Exhaustion in braces","id":"CVE-2024-4068","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"denial_of_service","year":"2024"},"n_packages":2,"n_references":5,"next":{"headline":"Kashipara Online Furniture Shopping Ecommerce Website search.php sql injection","id":"CVE-2024-4069"},"packages":[{"ecosystem":"npm","fixed":["3.0.3"],"introduced":["0"],"last_affected":[],"package":"braces","purl":null,"source":"GHSA-grv7-fg5c-xmjg"},{"ecosystem":"npm","fixed":["3.0.3"],"introduced":["0"],"last_affected":[],"package":"braces","purl":"pkg:npm/braces","source":"GHSA-grv7-fg5c-xmjg"}],"prev":{"headline":"Regular Expression Denial of Service in micromatch","id":"CVE-2024-4067"},"products":["braces"],"published":"2024-05-13","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-11-06","vendors":["micromatch"]},"summary":"An attacker can cause a denial of service by sending imbalanced braces to the braces library, triggering infinite memory allocation and crashing the application.","url":"https://insights.sbomify.com/CVE-2024-4068/"}