CVE-2024-45296
path-to-regexp outputs backtracking regular expressions
Reported by github_m · Published September 9, 2024
path-to-regexp is fixed in 8.0.0, 6.3.0, 3.3.0 and 2 more (npm)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| path-to-regexp | npm | 8.0.0, 6.3.0, 3.3.0, 1.9.0, 0.1.10 |
| vitess-18 | Chainguard | 18.0.8-r16 |
| opensearch-dashboards-2-fips | Chainguard | 2.17.1-r0 |
| grafana-11.0 | Chainguard | 10.4.8-r3 |
| kubeflow-pipelines | Chainguard | 2.2.0-r12 |
| sqlpad | Wolfi | 7.5.0-r1 |
| grafana-11.1 | Chainguard | 10.4.8-r3 |
| kibana-8 | Chainguard | 8.15.3-r0 |
| vitess-20 | Chainguard | 20.0.8-r8 |
| arangodb-3.11 | Chainguard | 3.11.14.4-r11 |
| grafana-fips-10.4 | Chainguard | 10.4.8-r2 |
| vitess-20.0 | Chainguard | 20.0.3-r0 |
3 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| pillarjs | path-to-regexp | < 0.1.10, >= 0.2.0, < 8.0.0 |
| chainguard | vitess-18 | 0 |
| chainguard | opensearch-dashboards-2-fips | 0 |
| chainguard | grafana-11.0 | 0 |
| chainguard | kubeflow-pipelines | 0 |
| wolfi | sqlpad | 0 |
| chainguard | grafana-11.1 | 0 |
| chainguard | kibana-8 | 0 |
| chainguard | vitess-20 | 0 |
| chainguard | arangodb-3.11 | 0 |
| chainguard | grafana-fips-10.4 | 0 |
| chainguard | vitess-20.0 | 0 |
| chainguard | kubeflow-centraldashboard | 0 |
| chainguard | argo-workflows | 0 |
| wolfi | kubeflow-centraldashboard | 0 |
| npm | path-to-regexp | 4.0.0, 0.2.0, 0 |
| pillarjs | path-to-regexp | 0, 0.2.0 |
| chainguard | sqlpad | 0 |
| wolfi | vitess-20 | 0 |
| chainguard | grafana-11.2 | 0 |
…and 14 more
Timeline
- Sep 9, 2024 CVE Published
- Sep 10, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (12 in total, the first dated here)
- Jan 24, 2025 CVE Updated
- Jan 5, 2026 Security Advisory (49 in total, the first dated here)
- Oct 13, 2026 Distribution Patch (44 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-45296
vulnetix vdb fixes CVE-2024-45296
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-45296/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/pillarjs/path-to-regexp/security/advisories/GHSA-9wv6-86v2-598j x_refsource_CONFIRM
- https://github.com/pillarjs/path-to-regexp/commit/29b96b4a1de52824e1ca0f49a701183cc4ed476f x_refsource_MISC
- https://github.com/pillarjs/path-to-regexp/commit/60f2121e9b66b7b622cc01080df0aabda9eedee6 x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20250124-0001/ url
- https://nvd.nist.gov/vuln/detail/CVE-2024-45296 advisory
- https://github.com/advisories/GHSA-9wv6-86v2-598j advisory
- https://github.com/pillarjs/path-to-regexp/commit/925ac8e3c5780b02f58cbd4e52f95da8ad2ac485 patch
- https://github.com/pillarjs/path-to-regexp/commit/d31670ae8f6e69cbfd56e835742195b7d10942ef patch
- https://github.com/pillarjs/path-to-regexp/commit/f1253b47b347dcb909e3e80b0eb2649109e59894 patch
- https://github.com/pillarjs/path-to-regexp url
- https://github.com/pillarjs/path-to-regexp/releases/tag/v6.3.0 url
- https://security.netapp.com/advisory/ntap-20250124-0001 advisory