{"id":"CVE-2024-43410","published":"2024-08-21T15:09:34Z","modified":"2024-08-21T15:35:25Z","title":"Russh has an OOM Denial of Service due to allocation of untrusted amount","vendor":"Eugeny","product":"russh","tier":"tail","description":{"text":"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.\nAfter 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00981,"percentile":0.61025,"provenance":"source"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/Eugeny/russh/security/advisories/GHSA-vgvv-x7xg-6cqg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Eugeny/russh/commit/f660ea3f64b86d11d19e33076012069f02431e55","tags":["x_refsource_MISC"]}],"priority":{"score":17.5,"factors":[{"name":"EPSS percentile","points":12.2},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"eugeny","affectedVersions":[{"vendor":"Eugeny","product":"russh","versions":["< 0.44.1"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2024-08-21T15:33:37.660659Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"russh","vulnerableRanges":["<0.44.1",">=0.0.0-0, <0.44.1"],"patched":["0.44.1"],"from":["GHSA-vgvv-x7xg-6cqg","RUSTSEC-2024-0450"],"provenance":"source"}],"summary":{"text":"The russh Rust SSH client and server library allocates memory based on the 4-byte length field in incoming SSH packets without validating it, so the amount of memory reserved is controlled entirely by the client. An attacker with network access to a russh server can send a few such packets with very large length values, without needing to authenticate, causing the process to run out of memory and crash.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:43:06Z"},"euvd":{"id":"EUVD-2024-2664","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-eugeny-russh-cve-2024-43410","children":[{"from":"CVE-2024-43410","to":"CVE-2026-102822","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["russh/src/cipher/mod.rs"],"commits":["https://github.com/Eugeny/russh/commit/f660ea3f64b86d11d19e33076012069f02431e55","https://github.com/Eugeny/russh/commit/2885385abfee279092a41d80c6cb6ac367353159"],"basis":"shared function","functions":["read"]}]}]}}