{"id":"CVE-2024-52798","published":"2024-12-05T22:45:42Z","modified":"2025-01-24T20:03:11Z","title":"path-to-regexp Unpatched `path-to-regexp` ReDoS in 0.1.x","vendor":"pillarjs","product":"path-to-regexp","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00787,"percentile":0.56108,"provenance":"source"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://github.com/pillarjs/path-to-regexp/security/advisories/GHSA-rhx6-c78j-4q9w","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pillarjs/path-to-regexp/commit/f01c26a013b1889f0c217c643964513acf17f6a4","tags":["x_refsource_MISC"]},{"url":"https://security.netapp.com/advisory/ntap-20250124-0002/","tags":[]}],"priority":{"score":16.6,"factors":[{"name":"EPSS percentile","points":11.22},{"name":"CVSS severity","points":5.39}]},"vendorSlug":"pillarjs","affectedVersions":[{"vendor":"pillarjs","product":"path-to-regexp","versions":["< 0.1.12"]}],"affected":[{"ecosystem":"npm","package":"path-to-regexp","vulnerableRanges":["<0.1.12"],"patched":["0.1.12"],"from":["GHSA-rhx6-c78j-4q9w"],"provenance":"source"}],"euvd":{"id":"EUVD-2024-3506","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-pillarjs-path-to-regexp-cve-2024-45296","parents":[{"from":"CVE-2024-45296","to":"CVE-2024-52798","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"This vulnerability exists because of an incomplete fix for CVE-2024-45296.","from":"CVE.org","in":"CVE-2024-52798"},{"kind":"version-step","provenance":"source","package":"npm:path-to-regexp","fromFixed":"0.1.10","toFixed":"0.1.12","daysApart":87},{"kind":"same-code","provenance":"machine","files":["index.js","test.js"],"commits":["https://github.com/pillarjs/path-to-regexp/commit/29b96b4a1de52824e1ca0f49a701183cc4ed476f","https://github.com/pillarjs/path-to-regexp/commit/60f2121e9b66b7b622cc01080df0aabda9eedee6","https://github.com/pillarjs/path-to-regexp/commit/f01c26a013b1889f0c217c643964513acf17f6a4"],"basis":"rarely changed file"},{"kind":"similar","provenance":"machine","score":0.69,"basis":"same product + CWE + description similarity"}]}],"packageHistory":[{"cve":"CVE-2024-52798","published":"2024-12-05","fixed":"0.1.12","kev":false},{"cve":"CVE-2026-4867","published":"2026-03-26","fixed":"0.1.13","kev":false,"link":{"from":"CVE-2024-52798","to":"CVE-2026-4867","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:path-to-regexp","fromFixed":"0.1.12","toFixed":"0.1.13","daysApart":476}]}},{"cve":"CVE-2024-45296","published":"2024-09-09","fixed":"8.0.0","kev":false},{"cve":"CVE-2026-4923","published":"2026-03-26","fixed":"8.4.0","kev":false}],"package":"npm:path-to-regexp"}}