CVE-2024-43410 Russh has an OOM Denial of Service due to allocation of untrusted amount

High 7.5 Published Updated

Unauthenticated attackers can cause a denial of service in Russh SSH servers by sending packets with maliciously large length fields, triggering out-of-memory errors.

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-43410?

CVE-2024-43410 is a high-severity denial of service vulnerability in Eugeny russh, published on 21 Aug 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Russh is a Rust SSH client & server library. Allocating an untrusted amount of memory allows any unauthenticated user to OOM a russh server. An SSH packet consists of a 4-byte big-endian length, followed by a byte stream of this length. After parsing and potentially decrypting the 4-byte length, russh allocates enough memory for this bytestream, as a performance optimization to avoid reallocations later. But this length is entirely untrusted and can be set to any value by the client, causing this much memory to be allocated, which will cause the process to OOM within a few such requests. This vulnerability is fixed in 0.44.1.

Weakness: CWE-770

Which versions are affected by CVE-2024-43410?

2 open source packages ship an affected version, including russh. It affects 2 products.

PackageAffectedFixed in
russh crates.ioAll versions0.44.1
russh crates.ioAll versions0.44.1

Products include Russh Project Russh, Warpgate Project Warpgate.

How do I fix CVE-2024-43410?

Upgrade russh to 0.44.1 or later.

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-43410 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-43410 exists.

Sources

Also known as GHSA-vgvv-x7xg-6cqg.

Is CVE-2024-43410 in your software?

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

Check your SBOMs for free