{"answers":{"affected":"2 open source packages ship an affected version, including path-to-regexp.","exploited":"There is no known exploitation of CVE-2024-52798 in the wild and no public exploit code.","fix":"Upgrade path-to-regexp to 0.1.12 or later.","what":"CVE-2024-52798 is a high-severity denial of service vulnerability in pillarjs path-to-regexp, published on 5 Dec 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-52798 and fix it if it is affected.\n\nWhat it is: CVE-2024-52798 is a high-severity denial of service vulnerability in pillarjs path-to-regexp, published on 5 Dec 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-52798 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- path-to-regexp (npm): affected all versions; fixed in 0.1.12\n- path-to-regexp (npm): affected all versions; fixed in 0.1.12\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-52798/ (Markdown: https://insights.sbomify.com/CVE-2024-52798/index.md)","id":"CVE-2024-52798","markdown":"https://insights.sbomify.com/CVE-2024-52798/index.md","name":"CVE-2024-52798","record":{"aliases":["AZL-54017","AZL-54020","AZL-54036","CLEANSTART-2026-BK66130","CLEANSTART-2026-ZQ97544","CLSA-2026-1790520007","ECHO-8ffe-c246-e62c","GHSA-rhx6-c78j-4q9w","MINI-7x3p-c79f-r6j4","MINI-m4gw-jqhq-2qg2","ROOT-APP-NPM-CVE-2024-52798"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript path library","requires_auth":"none","summary":"Attackers can cause denial of service via ReDoS in path-to-regexp by providing malicious path strings that trigger excessive backtracking.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.7,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P","version":"4.0"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"description":"path-to-regexp turns path strings into a regular expressions. In certain cases, path-to-regexp will output a regular expression that can be exploited to cause poor performance. The regular expression that is vulnerable to backtracking can be generated in the 0.1.x release of path-to-regexp. Upgrade to 0.1.12. This vulnerability exists because of an incomplete fix for CVE-2024-45296.","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":"path-to-regexp Unpatched `path-to-regexp` ReDoS in 0.1.x","id":"CVE-2024-52798","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"denial_of_service","year":"2024"},"n_packages":2,"n_references":2,"next":{"headline":"Argo Workflows Chart: Excessive Privileges in Workflow Role","id":"CVE-2024-52799"},"packages":[{"ecosystem":"npm","fixed":["0.1.12"],"introduced":["0"],"last_affected":[],"package":"path-to-regexp","purl":null,"source":"GHSA-rhx6-c78j-4q9w"},{"ecosystem":"npm","fixed":["0.1.12"],"introduced":["0"],"last_affected":[],"package":"path-to-regexp","purl":"pkg:npm/path-to-regexp","source":"GHSA-rhx6-c78j-4q9w"}],"prev":{"headline":"Searching Opencast may cause a denial of service","id":"CVE-2024-52797"},"products":["path-to-regexp"],"published":"2024-12-05","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":"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":"2025-01-24","vendors":["pillarjs"]},"summary":"Attackers can cause denial of service via ReDoS in path-to-regexp by providing malicious path strings that trigger excessive backtracking.","url":"https://insights.sbomify.com/CVE-2024-52798/"}