PT-2024-35449 · Unknown · Path-To-Regexp
Blakeembrey
·
Published
2024-12-05
·
Updated
2025-12-17
·
CVE-2024-52798
CVSS v4.0
8.7
High
| Vector | AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
Name of the Vulnerable Software and Affected Versions
path-to-regexp versions 0.1.x through 0.1.11
Description
The issue concerns a performance vulnerability in path-to-regexp, where certain inputs can generate regular expressions vulnerable to backtracking, leading to poor performance. This vulnerability exists due to an incomplete fix.
Recommendations
Upgrade to version 0.1.12.
As a temporary workaround, consider avoiding the use of two parameters within a single path segment when the separator is not
. (e.g., no /:a-:b).
Alternatively, define the regex used for both parameters and ensure they do not overlap to allow backtracking.Exploit
Fix
Resource Exhaustion
DoS
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Path-To-Regexp