CVE-2024-45296: path-to-regexp outputs backtracking regular expressions
Vulnerability summary
CVE-2024-45296 is a high (CVSS 7.5) vulnerability in pillarjs path-to-regexp. EPSS estimates a 0.93% chance of exploitation in the next 30 days, higher than 61.9% of scored vulnerabilities.
Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 2 · Related 11Timeline
- 09-09-2024PublishedVulnerability first disclosed.
- 24-01-2025Last modifiedVulnerability information updated.
Description
Impact: A bad regular expression is generated any time you have three or more parameters within a single segment, separated by something that is not a period (.). For example, /:a-:b-:c or /:a-:b-:c-:d. The backtrack protection added in [email protected] only prevents ambiguity for two parameters. With three or more, the generated lookahead does not block single separator characters, so capture groups overlap and cause catastrophic backtracking. Patches: Upgrade to [email protected] Custom regex patterns in route definitions (e.g., /:a-:b([^-/]+)-:c([^-/]+)) are not affected because they override the default capture group. Workarounds: All versions can be patched by providing a custom regular expression for parameters after the first in a single segment. As long as the custom regular expression does not match the text before the parameter, you will be safe. For example, change /:a-:b-:c to /:a-:b([^-/]+)-:c([^-/]+). If paths cannot be rewritten and versions cannot be upgraded, another alternative is to limit the URL length.
CVSS metrics
8 scores · 7 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · WolfiEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · NpmEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · ChainguardEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.93%
Chance of exploitation in the next 30 days
Percentile
62%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.93% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard105 products
- arangodb-3.11< 3.11.14.4-r11
- arangodb-3.12< 3.12.9.4-r6 | < 3.12.9.4-r15
- argo-workflows< 3.6.0-r1
- argo-workflows-ui-3.6< 3.6.19-r5
- argo-workflows-ui-3.7< 3.7.12-r2
Wolfi34 products
- argo-workflows< 3.6.0-r1
- argo-workflows-ui-3.7< 3.7.12-r2
- argo-workflows-ui-4.0< 4.0.3-r2
- json-server< 0.17.4-r6
- katib-earlystopping< 0.19.0-r31
Ubuntu2 products
- node-expressAll versions (No fix recorded)
- node-path-to-regexp< 1.0.1-1ubuntu0.16.04.1~esm1 | < 1.0.1-1ubuntu0.18.04.1~esm1 | < 6.1.0-2ubuntu0.1~esm1 | < 6.2.0-2ubuntu0.1~esm1 | < 6.2.1-1ubuntu0.1~esm1
Debian1 product
- node-path-to-regexpAll versions (No fix recorded) | < 6.3.0-1
Npm1 product
- path-to-regexp≥ 0.2.0, < 1.9.0 | < 0.1.10 | ≥ 7.0.0, < 8.0.0 | ≥ 2.0.0, < 3.3.0 | ≥ 4.0.0, < 6.3.0 | < 0.1.13
Opensuse1 product
- argocd-cli&distro=openSUSE Tumbleweed< 2.12.4-1.1
Pillarjs1 product
- path-to-regexp< 0.1.10 | ≥ 0.2.0, < 8.0.0 | < 0.1.13
7 vendors · 145 products
References
25 links- github.com/pillarjs/path-to-regexp/security/advisories/GHSA-9wv6-86v2-598jX Refsource CONFIRMREPORTAdvisoryWEB
- github.com/pillarjs/path-to-regexp/commit/29b96b4a1de52824e1ca0f49a701183cc4ed476fX Refsource MISCREPORTFIXWEB
- github.com/pillarjs/path-to-regexp/commit/60f2121e9b66b7b622cc01080df0aabda9eedee6X Refsource MISCREPORTFIXWEB
Show all 25 references
- lists.opensuse.org/archives/…Advisory