CVE-2024-45296
HIGH7.5EPSS 0.07%path-to-regexp outputs backtracking regular expressions
發布日:2024/9/9修改日:2026/4/28
描述
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. Because JavaScript is single threaded and regex matching runs on the main thread, poor performance will block the event loop and lead to a DoS. The bad regular expression is generated any time you have two parameters within a single segment, separated by something that is not a period (.). For users of 0.1, upgrade to 0.1.10. All other users should upgrade to 8.0.0.
受影響套件(2)
- Debian/node-path-to-regexpfrom 0
- npm/path-to-regexp>= 0.2.0, < 1.9.0
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 4.0 | — | 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 |
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
參考連結(11)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2024-45296
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2024-45296
- PATCHhttps://github.com/pillarjs/path-to-regexp
- WEBhttps://github.com/pillarjs/path-to-regexp/commit/29b96b4a1de52824e1ca0f49a701183cc4ed476f
- WEBhttps://github.com/pillarjs/path-to-regexp/commit/60f2121e9b66b7b622cc01080df0aabda9eedee6
- WEBhttps://github.com/pillarjs/path-to-regexp/commit/925ac8e3c5780b02f58cbd4e52f95da8ad2ac485
- WEBhttps://github.com/pillarjs/path-to-regexp/commit/d31670ae8f6e69cbfd56e835742195b7d10942ef
- WEBhttps://github.com/pillarjs/path-to-regexp/commit/f1253b47b347dcb909e3e80b0eb2649109e59894
- WEBhttps://github.com/pillarjs/path-to-regexp/releases/tag/v6.3.0
- WEBhttps://github.com/pillarjs/path-to-regexp/security/advisories/GHSA-9wv6-86v2-598j
- WEBhttps://security.netapp.com/advisory/ntap-20250124-0001