CVE-2024-45813: Find my way Denial of Service Vulnerability

HIGH
Advisory Identifier: GHSA-rrr8-f88r-h8q6
CVSS 7.5
CWE-1333
Published
Advisory Summary

CVE-2024-45813 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-1333: Inefficient Regular Expression Complexity) affecting Find my way libraries in the npm ecosystem. The issue involves find-my-way has a redos vulnerability in multiparametric routes. Remediation is available by upgrading affected packages to version 8.2.2, 9.0.1.

CVE-2024-45813 at a Glance

CVE Identifier CVE-2024-45813
GHSA Identifier GHSA-rrr8-f88r-h8q6
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-1333: Inefficient Regular Expression Complexity
Affected Product Find my way
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2024-45813

To remediate this vulnerability, upgrade all affected Find my way dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

find-my-way fixed: 8.2.2
npm install find-my-way@8.2.2
find-my-way fixed: 9.0.1
npm install find-my-way@9.0.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls find-my-way

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2024-45813, inspect your project dependencies using npm:

npm ls find-my-way

Analyze the terminal output to locate any version of Find my way in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 8.2.2), your application is affected.

Note: The npm ls find-my-way command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-1333: Inefficient Regular Expression Complexity, where the product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential. In Find my way, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact A bad regular expression is generated any time you have two parameters within a single segment, when adding a `-` at the end, like `/:a-:b-`. ### Patches Update to find-my-way v8.2.2 or v9.0.1. or subsequent versions. ### Workarounds No known workarounds. ### References - [CVE-2024-45296](https://github.com/advisories/GHSA-9wv6-86v2-598j) - [Detailed blog post about `path-to-regexp` vulnerability](https://blakeembrey.com/posts/2024-09-web-redos/)

CVE-2024-45813 Affected Find my way Versions

2 component(s)
Fixed Versions:
8.2.29.0.1
Product / Package Ecosystem Affected Versions Fixed Version
find-my-way
npm
≥ 5.5.0
< 8.2.2
8.2.2
find-my-way
npm
≥ 9.0.0
< 9.0.1
9.0.1

References

Frequently Asked Questions

What is CVE-2024-45813?
CVE-2024-45813 is a security vulnerability in Find my way involving find-my-way has a ReDoS vulnerability in multiparametric routes under CWE-1333: Inefficient Regular Expression Complexity.
Which Find my way versions are affected?
Affected versions include releases prior to 8.2.2, 9.0.1 across affected packages: find-my-way.
What version fixes CVE-2024-45813?
Upgrading to 8.2.2, 9.0.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is find-my-way affected?
Yes, find-my-way is affected in releases prior to 8.2.2, 9.0.1. Upgrade your dependency to 8.2.2, 9.0.1 or later.
What is the CVSS score of CVE-2024-45813?
CVE-2024-45813 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2024-45813?
CVE-2024-45813 is classified under CWE-1333: Inefficient Regular Expression Complexity (The product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.).
How can I check npm dependencies for CVE-2024-45813?
Run the dependency tree command: 'npm ls find-my-way'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-rrr8-f88r-h8q6",
  "modified" : "2024-10-07T21:52:21Z",
  "published" : "2024-09-18T15:52:33Z",
  "aliases" : [ "CVE-2024-45813" ],
  "summary" : "find-my-way has a ReDoS vulnerability in multiparametric routes",
  "details" : "### Impact\n\nA bad regular expression is generated any time you have two parameters within a single segment, when adding a `-` at the end, like `/:a-:b-`.\n\n### Patches\n\nUpdate to find-my-way v8.2.2 or v9.0.1. or subsequent versions.\n\n### Workarounds\n\nNo known workarounds.\n\n### References\n\n- [CVE-2024-45296](https://github.com/advisories/GHSA-9wv6-86v2-598j)\n- [Detailed blog post about `path-to-regexp` vulnerability](https://blakeembrey.com/posts/2024-09-web-redos/)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "find-my-way"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.5.0"
      }, {
        "fixed" : "8.2.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "find-my-way"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "9.0.0"
      }, {
        "fixed" : "9.0.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/delvedor/find-my-way/security/advisories/GHSA-rrr8-f88r-h8q6"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-45813"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/delvedor/find-my-way/commit/17fae694dcefc056045da201681c1530f0f80518"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/delvedor/find-my-way/commit/5e9e0eb5d8d438e06a185d5e536a896572dd0440"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/delvedor/find-my-way/commit/66fa03923355b8da1db4ba572d66a4fee4a57cf5"
  }, {
    "type" : "WEB",
    "url" : "https://blakeembrey.com/posts/2024-09-web-redos"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-9wv6-86v2-598j"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/delvedor/find-my-way"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1333" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-09-18T15:52:33Z",
    "nvd_published_at" : "2024-09-18T17:15:19Z"
  }
}