{"id":"GHSA-g9g7-5cgw-6v28","revision":null,"records":[{"revision":"7197ced366a44b9c91e7892b6b7e6da1","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-48107","aliases":[],"title":"Russh: Unchecked keyboard-interactive prompt count in client auth path","description":"Russh is a Rust SSH client & server library. From version 0.37.0 to before version 0.61.0, in the russh client keyboard-interactive authentication path, a malicious SSH server could send a USERAUTH_INFO_REQUEST with an attacker-controlled prompt count, and the client would use that raw count directly in Vec::with_capacity(...) before validating that enough prompt data was actually present in the packet. This issue has been patched in version 0.61.0.","state":0,"publishedAt":"2026-06-10T20:23:45.325+00:00","modifiedAt":"2026-06-11T13:05:20.827+00:00","affected":[{"ecosystem":"Vendor product","name":"russh","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Eugeny\",\n                    \"product\": \"russh\",\n                    \"versions\": [\n                        {\n                            \"version\": \">= 0.37.0, < 0.61.0\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":6.5,"severity":"MEDIUM"}],"references":["https://github.com/Eugeny/russh/security/advisories/GHSA-g9g7-5cgw-6v28"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-48107","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-48107","identifiers":["CVE-2026-48107"]},"retained":false,"historicalAffected":[]},{"revision":"a46321ba347943db8b42de51c7d863f6","observedAt":"2026-11-23T16:31:55.94+00:00","statement":{"source":"euvd","id":"EUVD-2026-36129","aliases":["CVE-2026-48107","GHSA-g9g7-5cgw-6v28"],"title":"Russh is a Rust SSH client & server library. From version 0.37.0 to before version 0.61.0, in the russh client keyboard-interactive authentication path, a malicious SSH server could send a USERAUTH_INFO_REQUEST with an attacker-controlled p…","description":"Russh is a Rust SSH client & server library. From version 0.37.0 to before version 0.61.0, in the russh client keyboard-interactive authentication path, a malicious SSH server could send a USERAUTH_INFO_REQUEST with an attacker-controlled prompt count, and the client would use that raw count directly in Vec::with_capacity(...) before validating that enough prompt data was actually present in the packet. This issue has been patched in version 0.61.0.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":6.5,"severity":null}],"references":["https://github.com/Eugeny/russh/security/advisories/GHSA-g9g7-5cgw-6v28"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-36129","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Jun 10, 2026, 8:23:45 PM","dateUpdated":"Jun 11, 2026, 1:05:20 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-2026-36129","identifiers":["EUVD-2026-36129","CVE-2026-48107","GHSA-g9g7-5cgw-6v28"]},"retained":false,"historicalAffected":[]},{"revision":"32f61b12cc7741b094ae27ae825b9ef8","observedAt":"2026-10-25T12:17:26.301+00:00","statement":{"source":"nvd","id":"CVE-2026-48107","aliases":[],"title":"Russh is a Rust SSH client & server library. From version 0.37.0 to before version 0.61.0, in the russh client keyboard-interactive authentication path, a malicious SSH server could send a USERAUTH_INFO_REQUEST with an attacker-controlled p…","description":"Russh is a Rust SSH client & server library. From version 0.37.0 to before version 0.61.0, in the russh client keyboard-interactive authentication path, a malicious SSH server could send a USERAUTH_INFO_REQUEST with an attacker-controlled prompt count, and the client would use that raw count directly in Vec::with_capacity(...) before validating that enough prompt data was actually present in the packet. This issue has been patched in version 0.61.0.","state":0,"publishedAt":"2026-06-10T22:17:00.983+00:00","modifiedAt":"2026-07-23T09:10:00.113+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":6.5,"severity":"MEDIUM"}],"references":["https://github.com/Eugeny/russh/security/advisories/GHSA-g9g7-5cgw-6v28"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-48107","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Deferred","weaknesses":["CWE-20"],"productCriteria":[],"sourceDates":{"published":"2026-06-10T22:17:00.983","lastModified":"2026-07-23T09:10:00.113"},"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-2026-48107","identifiers":["CVE-2026-48107"]},"retained":false,"historicalAffected":[]},{"revision":"0fa9deb49ce3422ba9a4e8e409c3cc82","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"GHSA-g9g7-5cgw-6v28","aliases":["CVE-2026-48107"],"title":"Russh: Unchecked keyboard-interactive prompt count in client auth path","description":"### Summary\nIn the `russh` client keyboard-interactive authentication path, a malicious SSH server could send a `USERAUTH_INFO_REQUEST` with an attacker-controlled prompt count, and the client would use that raw count directly in `Vec::with_capacity(...)` before validating that enough prompt data was actually present in the packet.\n\nThis is a client-side denial-of-service / resource-exhaustion issue on the keyboard-interactive auth path.\n\n### Details\nThe vulnerable code path is in:\n\n- `russh/src/client/encrypted.rs`\n\nWhen the client is in `CurrentRequest::KeyboardInteractive` state and receives `SSH_MSG_USERAUTH_INFO_REQUEST`, it parses:\n\n1. `name`\n2. `instructions`\n3. `language tag`\n4. `n_prompts`\n\nBefore the fix, the code then did:\n\n```rust\nlet n_prompts = map_err!(u32::decode(&mut r))?;\nlet mut prompts = Vec::with_capacity(n_prompts.try_into().unwrap_or(0));\n```\n\nThat means a malicious server could advertise an enormous `n_prompts` value even if the packet contained no prompt bodies at all.\n\nThe fix rejects inconsistent prompt counts before allocating:\n\n```rust\nlet n_prompts = map_err!(u32::decode(&mut r))?;\nlet max_prompts = r.remaining_len() / 5;\nlet n_prompts = n_prompts as usize;\nif n_prompts > max_prompts {\n    return Err(crate::Error::Inconsistent.into());\n}\nlet mut prompts = Vec::with_capacity(n_prompts);\n```\n\nEach prompt needs at least 4 bytes of string length plus 1 byte of echo flag, so `remaining_len() / 5` is a safe upper bound. If the declared count exceeds what the packet can actually contain, the packet is malformed and is now rejected instead of being silently truncated.\n\nThe tester did not find a same-class server-side bug in the reciprocal `USERAUTH_INFO_RESPONSE` path. The server already bounds the response count by remaining packet length before allocating.\n\nAffected package and versions:\n\n- package: `russh`\n- earliest affected stable: `0.37.0`\n- confirmed affected current release: `0.60.2`\n\nThe tester does not believe this issue affects the other crates in this workspace (`russh-config`, `russh-cryptovec`, `pageant`, or `russh-util`).\n\n### PoC\nAn in-tree regression test was added:\n\n- `client::tests::oversized_keyboard_interactive_prompt_count_is_rejected`\n\nThe test builds a client session in `WaitingAuthRequest(KeyboardInteractive)` state, feeds it a synthetic `USERAUTH_INFO_REQUEST` packet with:\n\n- normal `name`\n- normal `instructions`\n- empty language tag\n- `n_prompts = u32::MAX`\n- no prompt bodies\n\nOn the fixed code, the client rejects the packet with `Error::Inconsistent` and does not emit a reply to the caller.\n\nFor old-code impact verification, the pre-fix path was also checked separately with a constrained-memory repro. On unfixed `upstream/main`, the same malformed packet attempted a very large allocation and failed with:\n\n```text\nmemory allocation of 137438953440 bytes failed\n```\n\nRelevant verification commands:\n\n```bash\ncargo test -p russh oversized_keyboard_interactive_prompt_count_is_rejected -- --nocapture\ncargo test -p russh --lib --no-default-features --features ring oversized_keyboard_interactive_prompt_count_is_rejected -- --nocapture\n```\n\n### Impact\nSuggested CVSS v3.1:\n\n- `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`\n- Score: `6.5`\n\nReasoning:\n\n- `AV:N`: reached by a malicious SSH server over the network\n- `AC:L`: the packet format is straightforward\n- `PR:N`: no prior authentication required\n- `UI:R`: the victim must initiate a connection and proceed into keyboard-interactive auth\n- `C:N`, `I:N`:  Confidentiality or integrity impact were not demonstrated\n- `A:H`: the server can drive a very large allocation attempt in the client auth path, which can abort or exhaust client-side resources depending on allocator and platform behavior","state":0,"publishedAt":"2026-06-11T20:28:56+00:00","modifiedAt":"2026-06-11T20:56:30.154485+00:00","affected":[{"ecosystem":"crates.io","name":"russh","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.37.0"},{"kind":"fixed","version":"0.61.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/Eugeny/russh/security/advisories/GHSA-g9g7-5cgw-6v28","https://nvd.nist.gov/vuln/detail/CVE-2026-48107","https://github.com/Eugeny/russh"],"sourceUrl":"https://github.com/advisories/GHSA-g9g7-5cgw-6v28","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-g9g7-5cgw-6v28","identifiers":["GHSA-g9g7-5cgw-6v28","CVE-2026-48107"]},"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-24T07:27:15.4133422+00:00","complete":true,"records":1792,"lastAttemptAt":"2026-11-24T07:27:15.4133422+00:00","lastSuccessAt":"2026-11-24T07:27:15.6346254+00:00","error":null,"lastVerifiedAt":"2026-11-24T07:27:15.6346262+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-f6e4a7f93ed9acd6fcb1f804a4567f7b9b16730ac126110af8d6d24176317946-12d679cc5e9ae3a72c05e3556dc0d643db2cd6f28bbe89f18151e12e1610862a","complete":true,"records":431045,"lastAttemptAt":"2026-11-24T07:25:33.6342443+00:00","lastSuccessAt":"2026-11-24T07:25:33.4848586+00:00","error":null,"lastVerifiedAt":"2026-11-24T07:25:33.6342443+00:00","snapshotPublishedAt":"2026-11-24T07:21:42+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-baeab005808643a392cae744caa450b8","complete":false,"records":13935,"lastAttemptAt":"2026-11-24T07:37:05.4941293+00:00","lastSuccessAt":"2026-11-24T07:37:05.491+00:00","error":"546 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-24T07:37:05.491+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13073,"expectedIdentifiers":13982,"failedIdentifiers":546},{"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-24T07:27:15.4133422+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-24T07:27:15.4133422+00:00","lastSuccessAt":"2026-11-24T07:27:15.6353422+00:00","error":null,"lastVerifiedAt":"2026-11-24T07:27:15.6353423+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-d36c41b04e594ee4bf98efd25374f377","complete":true,"records":13947,"lastAttemptAt":"2026-11-24T07:27:31.4953369+00:00","lastSuccessAt":"2026-11-24T07:27:31.492+00:00","error":null,"lastVerifiedAt":"2026-11-24T07:27:31.492+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13982,"expectedIdentifiers":13982,"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-c86437892ddabdeaf17409463a17578b1e71dd185d64061100dd57629858f6d6","complete":true,"records":10074,"lastAttemptAt":"2026-11-24T07:27:15.2700652+00:00","lastSuccessAt":"2026-11-23T22:27:19.6557603+00:00","error":null,"lastVerifiedAt":"2026-11-24T07:27:15.2700652+00:00","snapshotPublishedAt":"2026-11-23T21:33:52+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-6ba2352decd0c95d34a1b50f642582aa34659ce946f552488f0a5cea4e0cc09a","complete":true,"records":2020,"lastAttemptAt":"2026-11-24T07:25:33.787645+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-24T07:25:33.787645+00:00","snapshotPublishedAt":"2026-11-20T14:48:20+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-15e801f03affdaac7ba10268556f4d0b3e1b9f897dae85fdcade5fc30d25011c","complete":true,"records":3217,"lastAttemptAt":"2026-11-24T07:27:15.3777857+00:00","lastSuccessAt":"2026-11-23T17:27:41.2539213+00:00","error":null,"lastVerifiedAt":"2026-11-24T07:27:15.3777857+00:00","snapshotPublishedAt":"2026-11-23T16:18:20+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-eba0b77765e3817301b63ae18d1a01500c75f9a6e5cf6d359b3086f66583757e","complete":true,"records":232959,"lastAttemptAt":"2026-11-24T07:27:15.146502+00:00","lastSuccessAt":"2026-11-24T07:27:14.0444662+00:00","error":null,"lastVerifiedAt":"2026-11-24T07:27:15.146502+00:00","snapshotPublishedAt":"2026-11-24T07:18:43+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}