CVE-2024-45813:
find-my-way has a ReDoS vulnerability in multiparametric routes
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.22236%
CWE
Published
9/18/2024
Updated
10/7/2024
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
find-my-way | npm | >= 9.0.0, < 9.0.1 | 9.0.1 |
find-my-way | npm | >= 5.5.0, < 8.2.2 | 8.2.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from how regex patterns are generated for routes with multiple parameters in a single segment. The commit diff shows critical changes in index.js's _on() and findRoute() methods, where regexps.push('(.*?)') was replaced with backtrack-aware patterns. These functions previously created non-atomic greedy quantifiers that allowed exponential backtracking when parameters were separated by hyphens. The CWE-1333 classification and test case changes confirming parameter parsing behavior further validate this analysis.