# CVE-2024-45296: path-to-regexp outputs backtracking regular expressions

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 0.1.10, 0.1.13, 8.0.0 (CNA); fix release not confirmed
- Status: published
- Published: 2024-09-09 · Modified: 2025-01-24
- Aliases: UBUNTU-CVE-2024-45296, USN-8290-1, DEBIAN-CVE-2024-45296, CGA-2cqv-whw2-jvv4, CGA-2gf3-6w7v-v7f2, CGA-4657-jmq3-3qxv, CGA-4gvp-85gv-mfc6, CGA-52qj-gqhc-w497, CGA-67v2-9hwp-rpf4, CGA-6pcf-fcgr-7g7q, CGA-6qqc-22gp-c8cq, CGA-72m7-7qww-3jwv, CGA-86v8-64cf-c4hq, CGA-883w-pj68-9px6, CGA-8c74-7845-h4qw, CGA-8h72-rxq2-8vp9, CGA-8mpg-r3v3-x793, CGA-9586-wv4w-5m6w, CGA-9fjf-8475-9fwx, CGA-9m7x-qhrp-jxw9, CGA-f7gg-vc34-qqw8, CGA-fwv3-5456-26xw, CGA-gfw6-mh54-phx9, CGA-hgpc-8hq3-pvmv, CGA-hr9g-28c7-jhcw, CGA-jghh-p79x-xfhj, CGA-jh4p-mv9r-8jcm, CGA-jrxc-rh47-852w, CGA-m5gp-c36x-hgw7, CGA-mxfv-8fc4-2g59, CGA-p2qq-8x6w-f8p5, CGA-p4fp-8ff6-7c27, CGA-pjxx-9v73-jx9w, CGA-q697-rg42-jh59, CGA-r239-rvrq-32cg, CGA-r5hx-c37x-5cw7, CGA-rj34-vpq3-q8jh, CGA-rm79-5mwx-48v9, CGA-vcgq-pwcx-q3r4, CGA-vg2f-vxf8-xqr6, CGA-w83v-66jq-7988, CGA-wpvw-f6m7-xg4j, CGA-wrfc-8m57-qc52, CGA-xgvq-vg28-3pp2, CGA-xw8c-wv2m-28ch, GHSA-37ch-88jc-xwx2, CVE-2026-4867, GHSA-9wv6-86v2-598j, openSUSE-SU-2024:14374-1, CGA-23fp-mxh5-798f, CGA-25w5-2g6v-qw9q, CGA-29jv-6vqp-w5wp, CGA-2f9x-rpmw-mr92, CGA-2fjm-p8xm-vp27, CGA-2jrm-rj88-c4c6, CGA-2qmp-cg99-6h3w, CGA-2r32-v2xx-8w2c, CGA-2vjp-w4q3-r7qg, CGA-2whj-r4xx-56v2, CGA-33vr-4g45-f86g, CGA-345f-r5h6-f3cm, CGA-35g7-93wr-gjv6, CGA-35gm-v75j-36j5, CGA-37h9-jqw8-8mf3, CGA-3qcj-mw4w-xc2f, CGA-3qwj-6hpj-9xfg, CGA-3v4g-w34m-m6c4, CGA-3wrc-m94m-hgfw, CGA-3x2j-8v3m-45x9, CGA-4564-m7v7-v475, CGA-458q-2pg9-3qw6, CGA-4792-j2xf-xc9g, CGA-4cvx-9frq-3gc9, CGA-4cxj-wqjp-ggqr, CGA-4f9v-7cpg-m6m6, CGA-4hv3-pmmw-cw42, CGA-4hxw-v26w-c7p7, CGA-4j86-wv5v-xh86, CGA-4m37-7qp7-fprv, CGA-4p3g-cjrp-hgmp, CGA-4p5j-2v9q-6gvj, CGA-4px9-4274-wq94, CGA-4v5q-wxc3-89p7, CGA-4wj9-4g49-gfwr, CGA-4xcp-vrpg-jgrx, CGA-53c4-78hf-3f8v, CGA-54p9-j2rm-3gxj, CGA-557m-q6vw-x2p4, CGA-56gv-7f9c-p4j3, CGA-5c46-cg4w-f3x8, CGA-5f9f-cwmw-7rq2, CGA-5j7q-8h9v-wf2r, CGA-5rfj-v9mx-p9x3, CGA-66cg-fxvf-cmp9, CGA-67xv-2r6j-843m, CGA-6fmw-pqjc-rg54, CGA-6hh2-xg7m-wgmx, CGA-6pgg-hf4x-hf2v, CGA-6rv9-3478-fw6g, CGA-6v42-6358-ghwm, CGA-6xhv-fwv9-jp39, CGA-74qc-cww9-qxhw, CGA-75j7-xpjm-6pp4, CGA-762w-xgp4-w29x, CGA-76r4-vgq8-vw37, CGA-773c-8crv-r2j6, CGA-7ch7-rxqm-cqfm, CGA-7grw-q8q4-2r52, CGA-7pgm-37x2-39vg, CGA-7q72-qp5x-wmv7, CGA-7qq5-3pp6-xv9f, CGA-7r98-gffj-f552, CGA-7wf7-chg3-c4qm, CGA-84mj-vw6w-c28h, CGA-8jhj-r95j-cf3f, CGA-8qpc-3gv3-xw8p, CGA-8qr2-wfwg-wr4m, CGA-8vrm-pxcq-rc4v, CGA-8vvv-wf2r-h5w9, CGA-93mx-8p94-798m, CGA-958g-wh3w-wcq5, CGA-9944-38jv-v6gg, CGA-99xh-8w4j-c3rx, CGA-9j3g-v8v6-vw4x, CGA-9mrx-28ff-j6wq, CGA-9p3r-x692-r32h, CGA-9r24-c7jh-gcwr, CGA-9r84-3mcg-5vc4, CGA-9vwh-96gv-r8hh, CGA-9wmh-xxg7-4pg3, CGA-c355-cp4g-p5cr, CGA-c567-h27j-47xv, CGA-cg2g-cm6f-32hm, CGA-ch35-c9qv-8gpx, CGA-cph6-p479-6v4w, CGA-cq8v-rqx2-mc5w, CGA-cqv3-rf2p-7vj9, CGA-cr78-63v5-cc2w, CGA-cv2f-mmhw-jvwq, CGA-cv56-xgg6-pv34, CGA-cvpm-2cgv-c46j, CGA-f4vh-r2mj-58rr, CGA-f53v-j68v-pq9h, CGA-f5qg-qcfw-9qfc, CGA-f9jr-g9w9-pr55, CGA-fccr-p7hf-vx6c, CGA-fcvg-xx3q-4hx2, CGA-fg6j-v9w7-4vm6, CGA-fhg4-w5j9-f22f, CGA-fp8j-fr7m-prw2, CGA-fvwm-xwg4-xm2w, CGA-fwcj-5w2h-2475, CGA-fwh2-x5w3-q78h, CGA-g3ww-v29p-8gq5, CGA-g65w-x242-9w84, CGA-g68x-wp24-f74g, CGA-g79f-397c-79f3, CGA-g8cm-8x7m-jm67, CGA-g9cj-jp3x-c653, CGA-g9v4-v323-3w8g, CGA-gc8v-4frh-2vp2, CGA-gfjp-vwf5-qjfr, CGA-gg2f-gh46-7qrp, CGA-ggxv-r2pp-325r, CGA-grv7-xpq5-xqhq, CGA-gw7v-8r66-mm27, CGA-h459-q4fv-vgh4, CGA-h6wf-6p8h-q9c6, CGA-h97v-v85w-2p73, CGA-hf2w-86xv-g5mr, CGA-hf8p-ffwg-78rq, CGA-hhgx-vvqm-9rfv, CGA-hj4h-rgp3-7c6j, CGA-hjg8-xjmp-7pvm, CGA-hpxg-pqh7-27xh, CGA-hvw5-gffq-9gr5, CGA-j55w-vmpj-frq8, CGA-j6r3-649c-rqg2, CGA-j7gg-j573-pwh4, CGA-j8xc-xjj5-7rwf, CGA-j9j3-f28m-pmx4, CGA-jc5f-96qw-5j5m, CGA-jf4r-42h2-2w6h, CGA-jgxw-8w42-hfgw, CGA-jhqj-46x2-jcpw, CGA-jm3j-pqjq-8q9h, CGA-jmhj-gq45-2528, CGA-jqgr-jcp6-39j5, CGA-jrhw-8774-rx2v, CGA-jv3m-r4p7-hqvf, CGA-jvg5-wv5g-gm33, CGA-m35h-2h49-wx25, CGA-m9qf-v93c-m2fv, CGA-mc72-545v-gwgh, CGA-mff5-mp7g-5qjq, CGA-mgxg-vf32-968w, CGA-mhf2-g768-j872, CGA-mvv5-6r5m-f4vw, CGA-mwc5-cfw6-rppg, CGA-p22g-8wh6-g35j, CGA-p78q-c8cx-9x73, CGA-p7h2-6vp5-h63r, CGA-pgv8-pv23-32fj, CGA-ph7v-cw75-5fmw, CGA-phqq-mhvm-frq7, CGA-pjw3-xjwr-68gh, CGA-pp4h-rhf7-x338, CGA-prf5-rqx6-95gp, CGA-prj3-3vpr-5fxq, CGA-pvgf-g652-3mq4, CGA-px96-v6f9-x493, CGA-q3h3-wxr2-pr49, CGA-q5mf-48f3-3qj6, CGA-q5x4-m7r2-8q2w, CGA-q942-h6wx-c3mv, CGA-qc92-97c7-fvr6, CGA-qcjv-779c-668f, CGA-qh73-f3p2-g7xh, CGA-qj85-6qv4-x8f5, CGA-qm25-6xcj-8f5c, CGA-qmx7-cc45-2w62, CGA-qp5x-4m42-f2xv, CGA-qqwv-mxjr-5c6v, CGA-r2fr-cwjm-fjrj, CGA-r2gf-jmc4-fx79, CGA-r4f8-9c7v-c5jm, CGA-r7h2-rvrq-5h7f, CGA-r8pq-cg8g-4h47, CGA-r946-fw3g-ppgh, CGA-r983-v6g6-394g, CGA-rcmx-p2g8-2rvh, CGA-rf8q-v79m-5hh5, CGA-rfcq-4pcc-rxqq, CGA-rfp4-g87c-7rpr, CGA-rgvm-4w48-cfww, CGA-rm77-pp8f-jmg7, CGA-rrp7-8pm5-5p4f, CGA-v28x-8rh8-v635, CGA-v5jw-mx6r-g562, CGA-v67m-8m2f-fvcq, CGA-v76f-vx7p-wcfr, CGA-vc76-49g8-q6mg, CGA-vhq4-vmwx-9rqw, CGA-vhvq-9c6r-6fj4, CGA-vm85-9wx7-fhpm, CGA-vp47-r49v-xvgp, CGA-vxxr-q297-c9j5, CGA-w3p3-jwp2-fcp6, CGA-w5p8-7fcf-jch6, CGA-w7mf-34w2-3fq2, CGA-w7pf-cr2f-gw73, CGA-w9cr-rg43-743h, CGA-w9pg-pv6m-67g8, CGA-wjhv-v5q9-84hq, CGA-wjmr-v4jg-8356, CGA-wp39-4jcr-qrhc, CGA-wpfv-8fcm-9jrg, CGA-wr5x-3hjq-9ff9, CGA-wwxg-mp8h-hf6m, CGA-x3fv-wcj5-xx7j, CGA-x75w-7352-7c36, CGA-x824-gx3j-64xm, CGA-x869-39q5-4qvw, CGA-x9xp-g34g-gr63, CGA-xc93-8hcm-893q, CGA-xf3q-4v9q-66gp, CGA-xh4h-qjq2-9c4q, CGA-xh8m-2w3r-78r2, CGA-xjgp-6q4x-ghx4, CGA-xjp9-qx23-5crm, CGA-xx44-5gvf-qhqr
- Record: https://cvemate.com/vulnerability/CVE-2024-45296 · JSON: https://cvemate.com/vulnerability/CVE-2024-45296/json

## Description

```text
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 path-to-regexp@0.1.12 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 path-to-regexp@0.1.13

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.
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.932%, percentile 61.901%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 145)

- chainguard arangodb-3.11 (Chainguard): \< 3.11.14.4-r11
- chainguard arangodb-3.12 (Chainguard): \< 3.12.9.4-r6 \| \< 3.12.9.4-r15
- chainguard argo-workflows (Chainguard): \< 3.6.0-r1
- chainguard argo-workflows-ui-3.6 (Chainguard): \< 3.6.19-r5
- chainguard argo-workflows-ui-3.7 (Chainguard): \< 3.7.12-r2
- chainguard argo-workflows-ui-4.0 (Chainguard): \< 4.0.3-r2
- chainguard gitlab-rails-ce-18.1 (Chainguard): \< 18.1.6-r26
- chainguard gitlab-rails-ce-18.10 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.11 (Chainguard): All versions (No fix recorded) \| \< 18.11.13-r0
- chainguard gitlab-rails-ce-18.5 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.6 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.7 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.8 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.9 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.0 (Chainguard): All versions (No fix recorded) \| \< 19.0.10-r0 \| \< 19.0.3-r1
- chainguard gitlab-rails-ce-19.1 (Chainguard): \< 19.1.7-r6
- chainguard gitlab-rails-ce-19.2 (Chainguard): \< 19.2.5-r2
- chainguard gitlab-rails-ce-19.3 (Chainguard): \< 19.3.1-r6
- chainguard gitlab-rails-ce-fips-18.1 (Chainguard): All versions (No fix recorded) \| \< 18.1.6-r15
- chainguard gitlab-rails-ce-fips-18.10 (Chainguard): \< 18.10.8-r8

## References (first 20 of 25)

- <https://github.com/pillarjs/path-to-regexp/security/advisories/GHSA-9wv6-86v2-598j>
- <https://github.com/pillarjs/path-to-regexp/commit/29b96b4a1de52824e1ca0f49a701183cc4ed476f>
- <https://github.com/pillarjs/path-to-regexp/commit/60f2121e9b66b7b622cc01080df0aabda9eedee6>
- <https://security.netapp.com/advisory/ntap-20250124-0001/>
- <https://ubuntu.com/security/CVE-2024-45296>
- <https://www.cve.org/CVERecord?id=CVE-2024-45296>
- <https://ubuntu.com/security/notices/USN-8290-1>
- <https://security-tracker.debian.org/tracker/CVE-2024-45296>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/45xxx/CVE-2024-45296.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-45296>
- <https://github.com/pillarjs/path-to-regexp/security/advisories/GHSA-37ch-88jc-xwx2>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-4867>
- <https://blakeembrey.com/posts/2024-09-web-redos>
- <https://cna.openjsf.org/security-advisories.html>
- <https://github.com/advisories/GHSA-9wv6-86v2-598j>
- <https://github.com/pillarjs/path-to-regexp>
- <https://github.com/pillarjs/path-to-regexp/releases/tag/v.0.1.13>
- <https://github.com/pillarjs/path-to-regexp/commit/925ac8e3c5780b02f58cbd4e52f95da8ad2ac485>
- <https://github.com/pillarjs/path-to-regexp/commit/d31670ae8f6e69cbfd56e835742195b7d10942ef>
- <https://github.com/pillarjs/path-to-regexp/commit/f1253b47b347dcb909e3e80b0eb2649109e59894>

---

Data as of 2026-12-05T05:18:56.294Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
