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.

Severity (CVSS 4.0)7.7High
Exploit odds (30 days)0.8%top 43.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Ubuntu:25.10node-expressno fix listedUBUNTU-CVE-2024-52798
Ubuntu:26.04:LTSnode-expressno fix listedUBUNTU-CVE-2024-52798
Ubuntu:22.04:LTSnode-path-to-regexpno fix listedUBUNTU-CVE-2024-52798
Ubuntu:24.04:LTSnode-path-to-regexpno fix listedUBUNTU-CVE-2024-52798
Ubuntu:25.10node-path-to-regexpno fix listedUBUNTU-CVE-2024-52798
Ubuntu:26.04:LTSnode-path-to-regexpno fix listedUBUNTU-CVE-2024-52798
npmpath-to-regexp0.1.12GHSA-rhx6-c78j-4q9w

Affected products (as reported)

VendorProductVersions
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

References