{"id":"CVE-2026-102822","published":"2026-09-29T18:23:28Z","modified":"2026-09-29T19:53:30Z","title":"russh: negotiating a MAC-requiring block cipher (CTR/CBC) with mac=none causes a slice-index-out-of-range panic","vendor":"Eugeny","product":"russh","tier":"tail","description":{"text":"Russh is a Rust SSH client and server library. Prior to 0.63.1, a connection configured to permit mac=none can negotiate it with a MAC-requiring CTR or CBC block cipher because the selection logic validates needs_mac() only when MAC selection fails. A remote peer can then send a packet with a decrypted length of zero, causing russh/src/cipher/mod.rs to shrink the previously read block before indexing buffer.buffer[16..], which panics and terminates the connection task. This issue is fixed in version 0.63.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.7,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00429,"percentile":0.28845,"provenance":"source"},"cwes":[{"id":"CWE-129","name":"Improper Validation of Array Index"}],"references":[{"url":"https://github.com/Eugeny/russh/security/advisories/GHSA-p8qx-h547-fjw9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Eugeny/russh/commit/2885385abfee279092a41d80c6cb6ac367353159","tags":["x_refsource_MISC"]},{"url":"https://github.com/Eugeny/russh/releases/tag/v0.63.1","tags":["x_refsource_MISC"]}],"priority":{"score":8.4,"factors":[{"name":"EPSS percentile","points":5.77},{"name":"CVSS severity","points":2.59}]},"vendorSlug":"eugeny","affectedVersions":[{"vendor":"Eugeny","product":"russh","versions":["< 0.63.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-09-29T19:53:03.923621Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"russh","vulnerableRanges":["<0.63.1"],"patched":["0.63.1"],"from":["GHSA-p8qx-h547-fjw9"],"provenance":"source"}],"summary":{"text":"russh, a Rust SSH client and server library, contains a flaw in its cipher handling (russh/src/cipher/mod.rs) where a connection configured to permit mac=none can negotiate it with a MAC-requiring CTR or CBC block cipher, because the MAC requirement is only checked when MAC selection fails. A remote, unauthenticated peer can exploit this without user interaction, and only under the conditions that the connection permits mac=none and the peer sends a packet with a decrypted length of zero, which causes a slice-index panic that terminates the connection task.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:15:09Z"},"euvd":{"id":"EUVD-2026-89205","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-eugeny-russh-cve-2024-43410","parents":[{"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"]}]}],"packageHistory":[{"cve":"CVE-2026-68930","published":"2026-08-03","fixed":"0.62.5","kev":false},{"cve":"CVE-2026-102825","published":"2026-09-29","fixed":"0.62.6","kev":false},{"cve":"CVE-2026-102824","published":"2026-09-29","fixed":"0.63.0","kev":false,"link":{"from":"CVE-2026-102824","to":"CVE-2026-102822","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:russh","fromFixed":"0.63.0","toFixed":"0.63.1","daysApart":0}]}},{"cve":"CVE-2026-102822","published":"2026-09-29","fixed":"0.63.1","kev":false},{"cve":"CVE-2026-102823","published":"2026-09-29","fixed":"0.63.1","kev":false},{"cve":"CVE-2026-102821","published":"2026-09-29","fixed":"0.63.2","kev":false,"link":{"from":"CVE-2026-102822","to":"CVE-2026-102821","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:russh","fromFixed":"0.63.1","toFixed":"0.63.2","daysApart":0}]}},{"cve":"CVE-2026-111062","published":"2026-11-05","fixed":"0.64.0","kev":false}],"package":"crates.io:russh"}}