Vulnerability · Published Dec 5, 2024 · Assigned by GitHub_M
CVE-2024-52798path-to-regexp Unpatched `path-to-regexp` ReDoS in 0.1.x
High 7.7
In plain English
A high-severity regular-expression denial of service in path-to-regexp from pillarjs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 56% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu:25.10 | node-express | no fix listed | UBUNTU-CVE-2024-52798 |
| Ubuntu:26.04:LTS | node-express | no fix listed | UBUNTU-CVE-2024-52798 |
| Ubuntu:22.04:LTS | node-path-to-regexp | no fix listed | UBUNTU-CVE-2024-52798 |
| Ubuntu:24.04:LTS | node-path-to-regexp | no fix listed | UBUNTU-CVE-2024-52798 |
| Ubuntu:25.10 | node-path-to-regexp | no fix listed | UBUNTU-CVE-2024-52798 |
| Ubuntu:26.04:LTS | node-path-to-regexp | no fix listed | UBUNTU-CVE-2024-52798 |
| npm | path-to-regexp | 0.1.12 | GHSA-rhx6-c78j-4q9w |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| pillarjs | path-to-regexp | < 0.1.12 |
Weakness: CWE-1333 · 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