{"id":"CVE-2024-52798","aliases":["AZL-54017","AZL-54020","AZL-54036","CLSA-2026-1773360981","CLSA-2026-1790520007","CLSA-2026-1791843328","EUVD-2024-3506","GHSA-rhx6-c78j-4q9w","ROOT-APP-NPM-CVE-2024-52798","UBUNTU-CVE-2024-52798"],"status":"published","title":"path-to-regexp Unpatched `path-to-regexp` ReDoS in 0.1.x","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.","severity":{"version":"4.0","score":7.7,"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","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-12","score":0.00787,"percentile":0.56639,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-1333"],"published":"2024-12-05T22:40:47Z","modified":"2026-11-05T05:36:30Z","fixes":[{"ecosystem":"npm","package":"path-to-regexp","fixed_in":["0.1.12"],"sources":["ghsa","osv"]},{"ecosystem":"Azure Linux:2","package":"reaper","fixed_in":["3.1.1-16"],"sources":["osv"]},{"ecosystem":"TuxCare:npm","package":"path-to-regexp","fixed_in":["0.1.10-tuxcare.1"],"sources":["osv"]},{"ecosystem":"Root:npm","package":"@rootio/path-to-regexp","fixed_in":["0.1.7-root.io.2","0.1.7-root.io.3","0.1.10-root.io.2","0.1.10-root.io.3","0.1.12-root.io.1","0.1.12-root.io.2"],"sources":["osv"]},{"ecosystem":"Root:npm","package":"path-to-regexp","fixed_in":["0.1.7-aikido.3","0.1.10-aikido.2","0.1.10-aikido.3","0.1.12-aikido.2"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"path-to-regexp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.1.12"}]}]},{"source":"osv","ecosystem":"Azure Linux:2","package":"nodejs-nodemon","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"2.0.3-4"}]}]},{"source":"osv","ecosystem":"Azure Linux:2","package":"reaper","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.1-16"}]}]},{"source":"osv","ecosystem":"Azure Linux:3","package":"nodejs-nodemon","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"2.0.3-5"}]}]},{"source":"osv","ecosystem":"TuxCare:npm","package":"path-to-regexp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.1.3-tuxcare.0"},{"fixed":"0.1.3-tuxcare.1"}]}],"versions":["0.1.3"],"bundled":2},{"source":"osv","ecosystem":"TuxCare:npm","package":"path-to-regexp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.1.10-tuxcare.0"},{"fixed":"0.1.10-tuxcare.1"}]}],"versions":["0.1.10"]},{"source":"osv","ecosystem":"TuxCare:npm","package":"path-to-regexp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.1.7-tuxcare.0"},{"fixed":"0.1.7-tuxcare.1"}]}],"versions":["0.1.7"],"bundled":2},{"source":"osv","ecosystem":"npm","package":"path-to-regexp","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.1.12"}]}]},{"source":"osv","ecosystem":"Root:npm","package":"@rootio/path-to-regexp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.1.7-root.io.2"},{"fixed":"0.1.7-root.io.3"},{"fixed":"0.1.10-root.io.2"},{"fixed":"0.1.10-root.io.3"},{"fixed":"0.1.12-root.io.1"},{"fixed":"0.1.12-root.io.2"}]}]},{"source":"osv","ecosystem":"Root:npm","package":"path-to-regexp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.1.7-aikido.3"},{"fixed":"0.1.10-aikido.2"},{"fixed":"0.1.10-aikido.3"},{"fixed":"0.1.12-aikido.2"}]}]}],"products":[{"vendor":"path-to-regexp","product":"path-to-regexp"},{"vendor":"pillarjs","product":"path-to-regexp"}],"references":[{"url":"https://github.com/pillarjs/path-to-regexp/security/advisories/GHSA-rhx6-c78j-4q9w","tags":["x_refsource_CONFIRM","advisory","web","report"]},{"url":"https://github.com/pillarjs/path-to-regexp/commit/f01c26a013b1889f0c217c643964513acf17f6a4","tags":["x_refsource_MISC","fix","web","report"]},{"url":"https://security.netapp.com/advisory/ntap-20250124-0002/","tags":["advisory"]},{"url":"https://blakeembrey.com/posts/2024-09-web-redos","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-52798","tags":["web","advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20250124-0002","tags":["web"]},{"url":"https://github.com/advisories/GHSA-rhx6-c78j-4q9w"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/52xxx/CVE-2024-52798.json","tags":["advisory"]},{"url":"https://github.com/pillarjs/path-to-regexp","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2024-52798","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-52798","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2024-52798","title":"path-to-regexp Unpatched `path-to-regexp` ReDoS in 0.1.x","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.","status":"published","published":"2024-12-05T22:45:42.774Z","modified":"2025-01-24T20:03:11.852Z","cvss":[{"version":"4.0","score":7.7,"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","level":"high","assessor":"cna"}],"cwes":["CWE-1333"],"updated_at":"2026-11-02T14:34:03.333404Z"}],"euvd":[{"id":"EUVD-2024-3506","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.","status":"published","published":"2024-12-05T22:45:42Z","modified":"2025-01-24T20:03:11Z","cvss":[{"version":"4.0","score":7.7,"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","level":"high"}],"updated_at":"2026-11-03T00:04:13.589007Z"}],"ghsa":[{"id":"GHSA-rhx6-c78j-4q9w","title":"path-to-regexp contains a ReDoS","description":"### 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/","status":"published","published":"2024-12-05T22:40:47Z","modified":"2025-06-03T14:30:57Z","cvss":[{"version":"4.0","score":7.7,"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","level":"high"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-1333"],"updated_at":"2026-11-02T14:38:45.948817Z"}],"nvd":[{"id":"CVE-2024-52798","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.","status":"published","published":"2024-12-05T23:15:06.31Z","modified":"2026-06-17T08:07:38.863Z","cvss":[{"version":"4.0","score":7.7,"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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"high","assessor":"secondary"}],"cwes":["CWE-1333"],"updated_at":"2026-11-02T14:10:39.434419Z"}],"osv":[{"id":"CVE-2024-52798","title":"path-to-regexp Unpatched `path-to-regexp` ReDoS in 0.1.x","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.","status":"published","published":"2024-12-05T22:45:42.774Z","modified":"2026-10-28T02:30:20.922249983Z","cvss":[{"version":"4.0","score":7.7,"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","level":"high"}],"cwes":["CWE-1333"],"updated_at":"2026-11-02T15:44:44.032344Z"},{"id":"GHSA-rhx6-c78j-4q9w","title":"path-to-regexp contains a ReDoS","description":"### 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/","status":"published","published":"2024-12-05T22:40:47Z","modified":"2026-09-10T03:50:56.223604407Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"},{"version":"4.0","score":7.7,"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","level":"high"}],"cwes":["CWE-1333"],"updated_at":"2026-11-02T15:46:55.877614Z"},{"id":"UBUNTU-CVE-2024-52798","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.","status":"withdrawn","published":"2024-12-05T23:15:00Z","modified":"2026-05-21T12:15:26.891693174Z","cvss":[{"version":"4.0","score":7.7,"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","level":"high"}],"updated_at":"2026-11-02T16:55:11.182485Z"},{"id":"AZL-54017","title":"CVE-2024-52798 affecting package nodejs-nodemon 2.0.3-4","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.","status":"published","published":"2024-12-05T23:15:06Z","modified":"2026-04-21T04:35:26.696962Z","updated_at":"2026-11-02T15:28:06.595149Z"},{"id":"AZL-54020","title":"CVE-2024-52798 affecting package reaper for versions less than 3.1.1-16","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.","status":"published","published":"2024-12-05T23:15:06Z","modified":"2026-04-21T04:35:27.340846Z","updated_at":"2026-11-02T15:28:06.595149Z"},{"id":"AZL-54036","title":"CVE-2024-52798 affecting package nodejs-nodemon 2.0.3-5","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.","status":"published","published":"2024-12-05T23:15:06Z","modified":"2026-11-05T05:36:30Z","updated_at":"2026-11-05T16:41:20.828909Z"},{"id":"CLSA-2026-1773360981","title":"TuxCare security update for path-to-regexp (2 CVEs)","description":"TuxCare rebuilt path-to-regexp to address 2 CVEs. Fixed in 0.1.3-tuxcare.1.","status":"published","published":"2026-08-04T14:52:12Z","modified":"2026-10-15T09:47:28.561127248Z","updated_at":"2026-11-02T15:43:43.621843Z"},{"id":"CLSA-2026-1790520007","title":"TuxCare security update for path-to-regexp (1 CVE)","description":"TuxCare rebuilt path-to-regexp to address 1 CVE. Fixed in 0.1.10-tuxcare.1.","status":"published","published":"2026-09-27T14:40:07Z","modified":"2026-10-15T09:47:38.215455567Z","updated_at":"2026-11-02T15:43:48.65893Z"},{"id":"CLSA-2026-1791843328","title":"TuxCare security update for path-to-regexp (2 CVEs)","description":"TuxCare rebuilt path-to-regexp to address 2 CVEs. Fixed in 0.1.7-tuxcare.1.","status":"published","published":"2026-10-12T22:15:28Z","modified":"2026-10-15T09:47:53.545962558Z","updated_at":"2026-11-02T15:43:50.599064Z"},{"id":"ROOT-APP-NPM-CVE-2024-52798","title":"CVE-2024-52798 in @rootio/path-to-regexp - Patched by Root","description":"Root has patched CVE-2024-52798 in the @rootio/path-to-regexp package for Root:npm. Multiple fixed versions available.","status":"published","published":"2026-07-14T11:09:03Z","modified":"2026-07-14T15:09:54.801840556Z","updated_at":"2026-11-02T15:53:27.362922Z"}]}}
