{"id":"CVE-2026-102822","summary":"russh: negotiating a MAC-requiring block cipher (CTR/CBC) with mac=none causes a slice-index-out-of-range panic","details":"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.","aliases":["GHSA-p8qx-h547-fjw9"],"modified":"2026-09-30T11:30:38.131215062Z","published":"2026-09-29T18:23:28.061Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-129"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/102xxx/CVE-2026-102822.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/102xxx/CVE-2026-102822.json"},{"type":"FIX","url":"https://github.com/Eugeny/russh/commit/2885385abfee279092a41d80c6cb6ac367353159"},{"type":"WEB","url":"https://github.com/Eugeny/russh/releases/tag/v0.63.1"},{"type":"ADVISORY","url":"https://github.com/Eugeny/russh/security/advisories/GHSA-p8qx-h547-fjw9"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-102822"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/eugeny/russh","events":[{"introduced":"0"},{"fixed":"d3ae702a43a163946f258297e398dc216339d5ce"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"0.63.1"}],"source":"AFFECTED_FIELD"}}],"versions":["v0.63.0","v0.63.0-beta.1","v0.62.7","v0.62.6","v0.62.5","v0.62.4","v0.62.3","v0.62.2","v0.62.1","v0.62.0","v0.61.2","v0.61.1","v0.61.0","v0.60.3","v0.60.2","v0.60.1","v0.60.0","v0.59.0","v0.58.0","v0.57.1","v0.57.0","v0.56.0","v0.55.0","v0.54.6","v0.54.5","v0.54.4","v0.54.3","v0.54.2","v0.54.1","v0.54.0","v0.53.0","v0.53.0-beta.1","v0.52.1","v0.52.0","v0.52.0-beta.1","v0.51.1","v0.51.0","v0.51.0-beta.3","v0.51.0-beta.2","v0.51.0-beta.1","v0.50.4","v0.50.3","v0.50.1","v0.50.0","v0.50.0-beta.12","v0.50.0-beta.11","v0.50.0-beta.10","v0.50.0-beta.9","v0.50.0-beta.8","v0.50.0-beta.7","v0.50.0-beta.6","v0.50.0-beta.5","v0.50.0-beta.4","v0.50.0-beta.3","v0.50.0-beta.2","v0.49.0","v0.48.2","v0.48.1","v0.48.0","v0.47.0-beta.4","v0.47.0-beta.3","v0.46.0","v0.45.0","v0.44.0","v0.44.0-beta.4","v0.44.0-beta.3","v0.44.0-beta.1","v0.43.0","v0.43.0-beta.1","v0.42.0","v0.40.2","v0.40.1","v0.40.0","v0.38.0","v0.39.0-beta.1","v0.38.0-beta.1","v0.37.1","v0.37.0","v0.36.1","v0.37.0-beta.1","0.37.0-beta.1","v0.35.0-beta.9","v0.35.0-beta.8","v0.35.0-beta.7","v0.35.0-beta.6","v0.35.0-beta.5","v0.35.0-beta.3","v0.35.0-beta.2","v0.35.0-beta.1","v0.34.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-102822.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L"}]}