VDB

CVE-2024-45296

CVE-2024-45296 PUBLISHED CVSS 7.5 HIGH

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.

PackageEcosystemFixed in
path-to-regexpnpm8.0.0, 6.3.0, 3.3.0, 1.9.0, 0.1.10
vitess-18Chainguard18.0.8-r16
opensearch-dashboards-2-fipsChainguard2.17.1-r0
grafana-11.0Chainguard10.4.8-r3
kubeflow-pipelinesChainguard2.2.0-r12
sqlpadWolfi7.5.0-r1
grafana-11.1Chainguard10.4.8-r3
kibana-8Chainguard8.15.3-r0
vitess-20Chainguard20.0.8-r8
arangodb-3.11Chainguard3.11.14.4-r11
grafana-fips-10.4Chainguard10.4.8-r2
vitess-20.0Chainguard20.0.3-r0

3 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
pillarjspath-to-regexp< 0.1.10, >= 0.2.0, < 8.0.0
chainguardvitess-180
chainguardopensearch-dashboards-2-fips0
chainguardgrafana-11.00
chainguardkubeflow-pipelines0
wolfisqlpad0
chainguardgrafana-11.10
chainguardkibana-80
chainguardvitess-200
chainguardarangodb-3.110
chainguardgrafana-fips-10.40
chainguardvitess-20.00
chainguardkubeflow-centraldashboard0
chainguardargo-workflows0
wolfikubeflow-centraldashboard0
npmpath-to-regexp4.0.0, 0.2.0, 0
pillarjspath-to-regexp0, 0.2.0
chainguardsqlpad0
wolfivitess-200
chainguardgrafana-11.20

…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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›