CVE-2024-45813 ReDoS vulnerability in multiparametric routes in find-my-way

Medium 5.3 Published Updated

A ReDoS vulnerability in find-my-way allows attackers to cause denial of service via specific route patterns, requiring an upgrade to patched versions.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-45813?

CVE-2024-45813 is a medium-severity denial of service vulnerability in delvedor find-my-way, published on 18 Sep 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

find-my-way is a fast, open source HTTP router, internally using a Radix Tree (aka compact Prefix Tree), supports route params, wildcards, and it's framework independent. A bad regular expression is generated any time one has two parameters within a single segment, when adding a `-` at the end, like `/:a-:b-`. This may cause a denial of service in some instances. Users are advised to update to find-my-way v8.2.2 or v9.0.1. or subsequent versions. There are no known workarounds for this issue.

Weakness: CWE-1333

Which versions are affected by CVE-2024-45813?

4 open source packages ship an affected version, including find-my-way.

PackageAffectedFixed in
find-my-way npmFrom 5.5.08.2.2
find-my-way npmFrom 5.5.08.2.2
find-my-way npmFrom 9.0.09.0.1
find-my-way npmFrom 9.0.09.0.1

How do I fix CVE-2024-45813?

Upgrade find-my-way to a fixed version for your release line: 8.2.2 or 9.0.1.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2024-45813 being exploited?

There is no known exploitation of CVE-2024-45813 in the wild and no public exploit code.

Sources

Also known as GHSA-rrr8-f88r-h8q6.

Is CVE-2024-45813 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free