CVE-2024-45296 json
path-to-regexp outputs backtracking regular expressions
published 2024-09-09 2 y ago modified 2026-09-10 1 mo ago also CVE-2026-4867 , EUVD-2024-2764 , GHSA-37ch-88jc-xwx2 , GHSA-9wv6-86v2-598j
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.9%
- EPSS 0.9% chance of exploitation in 30 days, percentile 60%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm path-to-regexp 0.1.10, 0.1.13, 1.9.0, 3.3.0, 6.3.0, 8.0.0
- pillarjs path-to-regexp 0.1.0, 8.0.0
- node-path-to-regexp Debian 14, Debian 13 6.3.0-1
debian advisories DEBIAN-CVE-2024-45296
- node-path-to-regexp Ubuntu Pro 16.04 LTS 1.0.1-1ubuntu0.16.04.1~esm1
- node-path-to-regexp Ubuntu Pro 18.04 LTS 1.0.1-1ubuntu0.18.04.1~esm1
- node-path-to-regexp Ubuntu Pro 20.04 LTS 6.1.0-2ubuntu0.1~esm1
- node-path-to-regexp Ubuntu Pro 22.04 LTS 6.2.0-2ubuntu0.1~esm1
- node-path-to-regexp Ubuntu Pro 24.04 LTS 6.2.1-1ubuntu0.1~esm1
ubuntu advisories UBUNTU-CVE-2024-45296
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- ansible-core ansible automation platform inside 2.4, ansible automation platform developer 2.4, ansible automation platform 2.4 1:2.15.13-1.el8ap
- ansible-core ansible automation platform inside 2.4, ansible automation platform developer 2.4, ansible automation platform 2.4 1:2.15.13-1.el9ap
- automation-controller-venv-tower ansible automation platform 2.4 4.5.13-1.el8ap
- automation-controller-venv-tower ansible automation platform 2.4 4.5.13-1.el9ap
red hat advisories RHSA-2024:10762
- velociraptor openSUSE Tumbleweed 0.7.0.4.git142.862ef23-1.1
- argocd-cli openSUSE Tumbleweed 2.12.4-1.1
opensuse advisories openSUSE-SU-2025:14663-1openSUSE-SU-2024:14374-1
- github.com/pillarjs/path-to-regexp@29b96b4 commit
- github.com/pillarjs/path-to-regexp@60f2121 commit
- github.com/pillarjs/path-to-regexp@925ac8e commit
- github.com/pillarjs/path-to-regexp@d31670a commit
- github.com/pillarjs/path-to-regexp@f1253b4 commit
- github.com/pillarjs/path-to-regexp/releases/tag/v.0.1.13 release
- github.com/pillarjs/path-to-regexp/releases/tag/v6.3.0 release
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-45296 updated cvss 5.3
path-to-regexp: Backtracking regular expressions cause ReDoS
-
Red Hat Cryostat 3 ansible-automation-platform-26/gateway-rhel9 Red Hat Migration Toolkit for Applications 7 mta/mta-ui-rhel9, mta/mta-cli-rhel9affected: workaround, no fix available “Fix deferred”
-
Red Hat Migration Toolkit for Runtimes path-to-regexp Red Hat Node HealthCheck Operator workload-availability/node-remediation-console-rhel8affected: workaround, no fix planned “Will not fix”
-
Red Hat OpenShift Lightspeed lightspeed-console-plugin-rhel9affected: workaround, no fix available
-
Red Hat OpenShift Pipelines openshift-pipelines/pipelines-hub-ui-rhel8, openshift-pipelines/pipelines-hub-api-rhel8, openshift-pipelines/pipelines-console-plugin-rhel8, openshift-pipelines/pipelines-hub-db-migration-rhel8 Red Hat 3scale API Management Platform 2 3scale-amp2/system-rhel7 Red Hat Advanced Cluster Security 4 advanced-cluster-security/rhacs-main-rhel8 Red Hat Ansible Automation Platform 1.2 ansible-toweraffected: workaround, no fix planned “Will not fix”
-
Red Hat Ansible Automation Platform 2 aap-cloud-ui-container Red Hat build of OptaPlanner 8 ansible-automation-platform-26/gateway-rhel9affected: workaround, no fix available
-
Red Hat Data Grid 8 ansible-automation-platform-26/gateway-rhel9 Red Hat Developer Hub 1 rhdh-operator-containeraffected: workaround, no fix planned “Will not fix”
-
Red Hat Enterprise Linux 6 firefox, thunderbird Red Hat Enterprise Linux 7 thunderbirdaffected: workaround, no fix planned “Out of support scope”
-
Red Hat Fuse 7 ansible-automation-platform-26/gateway-rhel9 Red Hat OpenShift AI (RHOAI) odh-dashboard-containeraffected: workaround, no fix planned “Will not fix”
show 18 moreshow fewer
-
Red Hat OpenShift Container Platform 3.11 openshift3/ose-console Red Hat Openshift Container Storage 4 ocs4/mcg-core-rhel8affected: workaround, no fix planned “Out of support scope”
-
Red Hat OpenShift Dev Spaces devspaces/code-rhel8affected: workaround, no fix planned “Will not fix”
-
Red Hat OpenShift distributed tracing 3 rhosdt/tempo-jaeger-query-rhel8affected: workaround, no fix available
-
Red Hat OpenShift Virtualization 4 container-native-virtualization/kubevirt-console-plugin, container-native-virtualization/kubevirt-console-plugin-rhel9 Red Hat Process Automation 7 ansible-automation-platform-26/gateway-rhel9affected: workaround, no fix planned “Will not fix”
-
Red Hat Virtualization 4 ovirt-web-ui, cockpit-ovirt-uiplugin, cockpit-ovirt-dashboardaffected: workaround, no fix planned “Out of support scope”
-
Red Hat Discovery 1 for RHEL 9 discovery/discovery-ui-rhel9 1.12.0-1, discovery/discovery-server-rhel9 1.12.0-1fixed: vendor fix RHSA-2025:1249
-
Red Hat HawtIO 4.0.0 for Red Hat build of Apache Camel 4fixed: vendor fix RHSA-2024:11023
-
Red Hat multicluster engine for Kubernetes 2.6 for RHEL 8 multicluster-engine/assisted-installer-rhel8 v2.6.4-7, multicluster-engine/assisted-service-8-rhel8 v2.6.4-11, multicluster-engine/assisted-image-service-rhel8 v2.6.4-4, multicluster-engine/assisted-installer-agent-rhel8 v2.6.4-7, multicluster-engine/assisted-installer-controller-rhel8 v2.6.4-6 Red Hat multicluster engine for Kubernetes 2.6 for RHEL 9 multicluster-engine/hive-rhel9 v2.6.4-6, multicluster-engine/work-rhel9 v2.6.4-14, multicluster-engine/discovery-rhel9 v2.6.4-14, multicluster-engine/placement-rhel9 v2.6.4-14, multicluster-engine/cluster-api-rhel9 v2.6.4-4, multicluster-engine/console-mce-rhel9 v2.6.4-19, +24 morefixed: vendor fix RHSA-2024:11293
-
Red Hat multicluster engine for Kubernetes 2.7 for RHEL 8 multicluster-engine/assisted-service-8-rhel8 v2.7.2-1 Red Hat multicluster engine for Kubernetes 2.7 for RHEL 9 multicluster-engine/hive-rhel9 v2.7.2-1, multicluster-engine/work-rhel9 v2.7.2-1, multicluster-engine/discovery-rhel9 v2.7.2-1, multicluster-engine/placement-rhel9 v2.7.2-1, multicluster-engine/cluster-api-rhel9 v2.7.2-1, multicluster-engine/console-mce-rhel9 v2.7.2-1, +28 morefixed: vendor fix RHSA-2024:10857
-
Red Hat NETOBSERV 1.7 for RHEL 9 network-observability/network-observability-cli-rhel9 v1.7.0-67, network-observability/network-observability-operator-bundle 1.7.0-86, network-observability/network-observability-rhel9-operator v1.7.0-67, network-observability/network-observability-ebpf-agent-rhel9 v1.7.0-67, network-observability/network-observability-console-plugin-rhel9 v1.7.0-67, network-observability/network-observability-flowlogs-pipeline-rhel9 v1.7.0-67fixed: vendor fix RHSA-2024:8014
-
Red Hat Quay v3 quay/quay-rhel8 v3.11.7-3, quay/clair-rhel8 v3.11.7-1, quay/quay-builder-rhel8 v3.11.7-3, quay/quay-operator-rhel8 v3.11.7-1, quay/quay-operator-bundle v3.11.7-5, quay/quay-bridge-operator-rhel8 v3.11.7-1, +4 morefixed: vendor fix RHBA-2024:11558
-
Red Hat Advanced Cluster Management for Kubernetes 2.11 for RHEL 9 rhacm2/thanos-rhel9 v2.11.4-5, rhacm2/console-rhel9 v2.11.4-17, rhacm2/memcached-rhel9 v2.11.4-3, rhacm2/prometheus-rhel9 v2.11.4-3, rhacm2/acm-grafana-rhel9 v2.11.4-4, rhacm2/node-exporter-rhel9 v2.11.4-4, +37 morefixed: vendor fix RHSA-2024:11381
-
Red Hat Advanced Cluster Management for Kubernetes 2.12 for RHEL 9 rhacm2/thanos-rhel9 v2.12.1-2, rhacm2/acm-cli-rhel9 v2.12.1-4, rhacm2/console-rhel9 v2.12.1-8, rhacm2/memcached-rhel9 v2.12.1-2, rhacm2/prometheus-rhel9 v2.12.1-2, rhacm2/acm-grafana-rhel9 v2.12.1-2, +40 morefixed: vendor fix RHSA-2024:10865
-
Red Hat Ansible Automation Platform 2.4 for RHEL 8 automation-controller-venv-tower 4.5.13-1.el8ap Red Hat Ansible Automation Platform 2.4 for RHEL 9 automation-controller-venv-tower 4.5.13-1.el9apfixed: vendor fix RHSA-2024:10762
-
Red Hat Developer Hub (RHDH) 1.4 rhdh 1.4-1734106454fixed: vendor fix RHBA-2024:11265
-
Red Hat Migration Toolkit 1.8 rhmtc/openshift-migration-ui-rhel8 v1.8.5-7fixed: vendor fix RHSA-2024:10906
-
Red Hat OpenShift AI 2.16 rhoai v2.16.2-1741963152fixed: vendor fix RHSA-2025:3368
-
Red Hat OpenShift Container Platform 4.16 openshift4/ose-monitoring-plugin-rhel9 v4.16.0-202410021704.p0.g6a049e3.assembly.stream.el9fixed: vendor fix RHSA-2024:7599
14 more fixed, 24 more not affected in the full advisory
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.93% chance of exploitation in the next 30 days, higher than 60% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | path-to-regexp | <0.1.13 >=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 1.9.0 0.1.10 8.0.0 3.3.0 6.3.0 |
Affected products
- pillarjs path-to-regexp
Classification
- Weakness
-
- CWE-1333 Inefficient Regular Expression Complexity
References
-
github.com
/pillarjs/path-to-regexp/commit/29b96b4a1de52824e1ca0f49a701183cc4ed476f
web
-
github.com
/pillarjs/path-to-regexp/commit/60f2121e9b66b7b622cc01080df0aabda9eedee6
web
-
github.com
/pillarjs/path-to-regexp/commit/925ac8e3c5780b02f58cbd4e52f95da8ad2ac485
web
-
github.com
/pillarjs/path-to-regexp/commit/d31670ae8f6e69cbfd56e835742195b7d10942ef
web
-
github.com
/pillarjs/path-to-regexp/commit/f1253b47b347dcb909e3e80b0eb2649109e59894
web
-
github.com
/pillarjs/path-to-regexp/security/advisories/GHSA-9wv6-86v2-598j
web
- security.netapp.com /advisory/ntap-20250124-0001/
-
github.com
/pillarjs/path-to-regexp/security/advisories/GHSA-37ch-88jc-xwx2
web
-
nvd.nist.gov
/vuln/detail/CVE-2026-4867
advisory
-
blakeembrey.com
/posts/2024-09-web-redos
web
-
cna.openjsf.org
/security-advisories.html
web
-
github.com
/advisories/GHSA-9wv6-86v2-598j
advisory
-
github.com
/pillarjs/path-to-regexp
package
-
github.com
/pillarjs/path-to-regexp/releases/tag/v.0.1.13
web
-
nvd.nist.gov
/vuln/detail/CVE-2024-45296
advisory
-
github.com
/pillarjs/path-to-regexp/releases/tag/v6.3.0
web
-
security.netapp.com
/advisory/ntap-20250124-0001
web
Sources
- CVE List CVE-2024-45296
- GitHub Advisory GHSA-37ch-88jc-xwx2
- GitHub Advisory GHSA-9wv6-86v2-598j
- NVD CVE-2024-45296
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.