{"id":"CVE-2024-52798","aliases":["CVE-2024-52798","GHSA-rhx6-c78j-4q9w"],"related":[],"kind":"vulnerability","state":"published","title":"path-to-regexp Unpatched `path-to-regexp` ReDoS in 0.1.x","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nThe regular expression that is vulnerable to backtracking can be generated in versions before 0.1.12 of `path-to-regexp`, originally reported in CVE-2024-45296\n\n### Patches\n\nUpgrade to 0.1.12.\n\n### Workarounds\n\nAvoid using two parameters within a single path segment, when the separator is not `.` (e.g. no `/:a-:b`). Alternatively, you can define the regex used for both parameters and ensure they do not overlap to allow backtracking.\n\n### References\n\n- https://github.com/advisories/GHSA-9wv6-86v2-598j\n- https://blakeembrey.com/posts/2024-09-web-redos/","format":"markdown","source":"ghsa"},{"lang":"es","text":"path-to-regexp convierte las cadenas de ruta en expresiones regulares. En ciertos casos, path-to-regexp generará una expresión regular que puede aprovecharse para provocar un rendimiento deficiente. La expresión regular vulnerable al retroceso se puede generar en la versión 0.1.x de path-to-regexp. Actualice a la versión 0.1.12. Esta vulnerabilidad existe debido a una corrección incompleta de CVE-2024-45296.","source":"nvd"}],"published":"2024-12-05T22:40:47.000Z","modified":"2026-09-10T03:50:56.223Z","severity":{"scorer":"GitHub_M","scheme":"CVSS: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","score":7.7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS: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","score":7.7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS: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","rating":"HIGH"}],"cwes":["CWE-1333"],"affected":[{"ranges":[{"version":"< 0.1.12","status":"affected"}],"vendor":"pillarjs","product":"path-to-regexp","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"0.1.12","status":"affected"}],"vendor":"pillarjs","product":"path-to-regexp","cpe":"cpe:2.3:a:pillarjs:path-to-regexp:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.1.12"}],"ecosystem":"npm","package":"path-to-regexp","purl":"pkg:npm/path-to-regexp","source":"ghsa"}],"references":[{"url":"https://github.com/pillarjs/path-to-regexp/security/advisories/GHSA-rhx6-c78j-4q9w","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/pillarjs/path-to-regexp/commit/f01c26a013b1889f0c217c643964513acf17f6a4","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20250124-0002/","tags":[],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-52798","tags":["advisory"],"sources":["ghsa"]},{"url":"https://blakeembrey.com/posts/2024-09-web-redos","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pillarjs/path-to-regexp","tags":["package"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20250124-0002","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2024-12-09T14:53:29.827Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-52798","url":"https://www.cve.org/CVERecord?id=CVE-2024-52798","licence":"CVE Terms of Use","modified":"2025-01-24T20:03:11.852Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rhx6-c78j-4q9w","url":"https://github.com/advisories/GHSA-rhx6-c78j-4q9w","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:56.223Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-52798","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-52798","licence":"Public domain","modified":"2026-06-17T08:07:38.863Z"}],"updatedAt":"2026-11-25T22:58:49.755Z","epss":{"score":0.00787,"percentile":0.57332,"date":"2026-12-01T12:00:22.000Z"}}