{"id":"EUVD-2026-36130","revision":null,"records":[{"revision":"52baaeafdf3d4894b04f8b13cdc15089","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-48108","aliases":[],"title":"Russh: SSH identification parsing accepted non-canonical client banners and did not bound pre-banner input","description":"Russh is a Rust SSH client & server library. From version 0.34.0-beta.1 to before version 0.61.0, russh did not enforce the SSH identification-string rules as deliberately as OpenSSH. In particular, the server-side identification reader used the same permissive path as the client, allowing pre-banner lines from clients, and the reader did not enforce a bounded number of pre-banner lines. For a library server built on russh, this could allow a remote peer to hold connection setup resources in the cleartext pre-authentication phase with malformed identification input that should have been rejected early. This issue has been patched in version 0.61.0.","state":0,"publishedAt":"2026-06-10T20:24:56.666+00:00","modifiedAt":"2026-06-11T13:50:36.699+00:00","affected":[{"ecosystem":"Vendor product","name":"russh","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Eugeny\",\n                    \"product\": \"russh\",\n                    \"versions\": [\n                        {\n                            \"version\": \">= 0.34.0-beta.1, < 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:N/S:U/C:N/I:N/A:L","score":5.3,"severity":"MEDIUM"}],"references":["https://github.com/Eugeny/russh/security/advisories/GHSA-76r6-x97p-67vr"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-48108","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-48108","identifiers":["CVE-2026-48108"]},"retained":false,"historicalAffected":[]},{"revision":"c543309a38f24b528e2ae76bf4089831","observedAt":"2026-11-23T21:32:16.289+00:00","statement":{"source":"euvd","id":"EUVD-2026-36130","aliases":["CVE-2026-48108","GHSA-76r6-x97p-67vr"],"title":"Russh is a Rust SSH client & server library. From version 0.34.0-beta.1 to before version 0.61.0, russh did not enforce the SSH identification-string rules as deliberately as OpenSSH. In particular, the server-side identification reader use…","description":"Russh is a Rust SSH client & server library. From version 0.34.0-beta.1 to before version 0.61.0, russh did not enforce the SSH identification-string rules as deliberately as OpenSSH. In particular, the server-side identification reader used the same permissive path as the client, allowing pre-banner lines from clients, and the reader did not enforce a bounded number of pre-banner lines. For a library server built on russh, this could allow a remote peer to hold connection setup resources in the cleartext pre-authentication phase with malformed identification input that should have been rejected early. 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:N/S:U/C:N/I:N/A:L","score":5.3,"severity":null}],"references":["https://github.com/Eugeny/russh/security/advisories/GHSA-76r6-x97p-67vr"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-36130","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Jun 10, 2026, 8:24:56 PM","dateUpdated":"Jun 11, 2026, 1:50:36 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-36130","identifiers":["EUVD-2026-36130","CVE-2026-48108","GHSA-76r6-x97p-67vr"]},"retained":false,"historicalAffected":[]},{"revision":"80a70f1f84384b8c9b550a8ef2510be9","observedAt":"2026-10-25T12:17:26.301+00:00","statement":{"source":"nvd","id":"CVE-2026-48108","aliases":[],"title":"Russh is a Rust SSH client & server library. From version 0.34.0-beta.1 to before version 0.61.0, russh did not enforce the SSH identification-string rules as deliberately as OpenSSH. In particular, the server-side identification reader use…","description":"Russh is a Rust SSH client & server library. From version 0.34.0-beta.1 to before version 0.61.0, russh did not enforce the SSH identification-string rules as deliberately as OpenSSH. In particular, the server-side identification reader used the same permissive path as the client, allowing pre-banner lines from clients, and the reader did not enforce a bounded number of pre-banner lines. For a library server built on russh, this could allow a remote peer to hold connection setup resources in the cleartext pre-authentication phase with malformed identification input that should have been rejected early. This issue has been patched in version 0.61.0.","state":0,"publishedAt":"2026-06-10T22:17:01.13+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:N/S:U/C:N/I:N/A:L","score":5.3,"severity":"MEDIUM"}],"references":["https://github.com/Eugeny/russh/security/advisories/GHSA-76r6-x97p-67vr"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-48108","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Deferred","weaknesses":["CWE-20"],"productCriteria":[],"sourceDates":{"published":"2026-06-10T22:17:01.130","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-48108","identifiers":["CVE-2026-48108"]},"retained":false,"historicalAffected":[]},{"revision":"febee5b653b6464aaa1d5fd3c1c2c5e5","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"GHSA-76r6-x97p-67vr","aliases":["CVE-2026-48108"],"title":"Russh: SSH identification parsing accepted non-canonical client banners and did not bound pre-banner input","description":"### Summary\n\n`russh` did not enforce the SSH identification-string rules as deliberately as OpenSSH. In particular, the server-side identification reader used the same permissive path as the client, allowing pre-banner lines from clients, and the reader did not enforce a bounded number of pre-banner lines.\n\nFor a library server built on `russh`, this could allow a remote peer to hold connection setup resources in the cleartext pre-authentication phase with malformed identification input that should have been rejected early.\n\n### Details\n\nRFC 4253 section 4.2 defines the SSH protocol version exchange. The identification string is a single line terminated by CR LF, must fit within 255 characters including CR LF, and clients should not send pre-banner lines before their SSH identification string.\n\nBefore the fix, `russh`'s identification reader lived in:\n\n- `russh/src/ssh_read.rs`\n- `russh/src/server/mod.rs`\n\nThe same `read_ssh_id()` behavior was used for both client and server contexts. That allowed server-side parsing to accept preliminary banner lines from clients, even though RFC 4253 only describes server-side pre-identification text. The reader also discarded preliminary lines without a line-count cap, so a peer could repeatedly send short non-SSH lines and keep the connection in identification parsing until an application-level timeout or external resource limit intervened.\n\nThis also creates a remotely observable parser-state oracle inside a single connection. A client can send candidate identification lines one after another: lines not recognized as SSH identification are discarded as pre-banner text, while an accepted identification string terminates banner parsing and advances the connection into key exchange. A strict server would reject the first invalid client pre-banner line and force a reconnect for each probe. This can disclose server-side parser acceptance behavior and make fingerprinting cheaper, though it does not disclose application secrets, credentials, keys, or authenticated user data.\n\nThe patch splits the behavior between generic/server-banner-tolerant reading and stricter client-identification reading. It also adds explicit limits for line length and pre-banner line count.\n\nRelevant branch commit:\n\n- `3de4a68 Harden SSH identification parsing`\n\n### RFC / OpenSSH Comparison\n\nRFC 4253 section 4.2 says each side sends an identification string of the form `SSH-protoversion-softwareversion SP comments CR LF`. It allows a server to send other lines before its identification string, but says a client must be able to process such lines. It does not grant the same pre-banner allowance to clients.\n\nOpenSSH portable enforces explicit identification limits:\n\n- `/home/mjc/projects/openssh-portable/ssh.h`: `SSH_MAX_BANNER_LEN`\n- `/home/mjc/projects/openssh-portable/ssh.h`: `SSH_MAX_PRE_BANNER_LINES`\n- `/home/mjc/projects/openssh-portable/kex.c`: client-side handling of server pre-banner lines\n- `/home/mjc/projects/openssh-portable/ssh_api.c`: rejects pre-banner lines when acting as a server\n\nI checked `/home/mjc/projects/openssh-portable` at `45b30e0a5`. OpenSSH uses an implementation banner line limit of `8192` bytes and a pre-banner line cap of `1024`, which is more permissive than RFC 4253's 255-character identification-string limit. The relevant alignment is the parser shape: OpenSSH permits bounded pre-banner lines when reading a server banner as a client, but rejects pre-banner lines when acting as a server and reading a client identification string.\n\nThe `russh` fix follows that shape: accept bounded pre-banner lines only where the protocol allows them, and reject malformed or excessive identification input early.\n\n### PoC\n\nInline highest-CVSS PoC: unauthenticated remote client pre-banner input to the server identification parser. This demonstrates `AV:N/AC:L/PR:N/UI:N`.\n\n```rust\n#[tokio::test]\nasync fn poc_server_accepts_client_pre_banner_before_ssh_id() {\n    use russh::server;\n    use tokio::io::{AsyncReadExt, AsyncWriteExt};\n\n    let config = std::sync::Arc::new(server::Config::default());\n    let (mut client, server_stream) = tokio::io::duplex(4096);\n\n    let server = tokio::spawn(async move {\n        server::run_stream(config, server_stream, NoAuthHandler).await\n    });\n\n    let mut server_id = Vec::new();\n    client.read_until(b'\\n', &mut server_id).await.unwrap();\n\n    client\n        .write_all(b\"attacker-controlled pre-banner\\r\\nSSH-2.0-poc\\r\\n\")\n        .await\n        .unwrap();\n\n    let result = tokio::time::timeout(std::time::Duration::from_millis(250), server).await;\n\n    assert!(\n        result.is_err(),\n        \"vulnerable code keeps processing after accepting a client pre-banner before SSH identification\"\n    );\n}\n```\n\nOn vulnerable code, the server-side reader accepts the client pre-banner line and continues instead of rejecting the malformed identification input promptly. The fixed parser rejects client pre-banner lines on the server path.\n\n### Impact\n\nSuggested CVSS v3.1:\n\n- `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`\n- Score: `5.3`\n\nReasoning:\n\n- `AV:N`: reachable over the SSH transport connection\n- `AC:L`: no special race or unusual setup is required\n- `PR:N`, `UI:N`: occurs before authentication and needs no user interaction\n- `C:N`, `I:N`: no confidentiality or integrity impact demonstrated\n- `A:L`: malformed identification input can consume connection setup resources until rejected by timeout or external limits\n\nAdditional impact investigation did not identify a stronger confidentiality, integrity, downgrade, or code-execution primitive. The accepted client pre-banner line is discarded before key exchange and does not become part of `remote_sshid`; the final client identification string is what feeds the key-exchange transcript. `remote_sshid` is otherwise exposed to library handlers and debug formatting, but the discarded pre-banner text does not influence authentication state, strict-kex negotiation, KEX algorithm selection, or later packet framing.\n\nOne parser-boundary nuance on vulnerable code is that behavior can depend on read chunking: if a client pre-banner line and the real SSH identification line are delivered in the same read, the old parser can discard the buffered identification line and then wait or disconnect; if delivered separately, the old server path can accept the pre-banner and continue. This supports malformed pre-authentication availability impact, but not a demonstrated confidentiality or integrity impact.\n\n### Fix / Patch Direction\n\nUse a stricter server-side client-identification reader, enforce the RFC identification-line length, and cap preliminary banner lines. The server path should reject client pre-banner lines instead of treating them like allowed server pre-identification text.","state":0,"publishedAt":"2026-06-11T20:29:14+00:00","modifiedAt":"2026-06-11T20:56:30.300679+00:00","affected":[{"ecosystem":"crates.io","name":"russh","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.34.0-beta.1"},{"kind":"fixed","version":"0.61.0"}]}],"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:L","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/Eugeny/russh/security/advisories/GHSA-76r6-x97p-67vr","https://nvd.nist.gov/vuln/detail/CVE-2026-48108","https://github.com/Eugeny/russh"],"sourceUrl":"https://github.com/advisories/GHSA-76r6-x97p-67vr","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-76r6-x97p-67vr","identifiers":["GHSA-76r6-x97p-67vr","CVE-2026-48108"]},"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}]}