# CVE-2026-102822: russh: negotiating a MAC-requiring block cipher (CTR/CBC) with mac=none causes a slice-index-out-of-range panic

- Priority: **Routine**
- Reason: Not severe (CVSS 3.7, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-09-29 · Modified: 2026-09-29
- Aliases: GHSA-p8qx-h547-fjw9, DEBIAN-CVE-2026-102822, UBUNTU-CVE-2026-102822
- Record: https://cvemate.com/vulnerability/CVE-2026-102822 · JSON: https://cvemate.com/vulnerability/CVE-2026-102822/json

## 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.
```

## Signals

- CVSS: 3.7 low (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
- EPSS: 0.327%, percentile 27.788%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- Crates.Io russh (Crates.Io): \< 0.63.1
- debian rust-russh (Debian): \< 0.64.1-1
- ubuntu rust-russh (Ubuntu): All versions (No fix recorded)
- eugeny russh: \< 0.63.1

## References

- <https://github.com/Eugeny/russh/security/advisories/GHSA-p8qx-h547-fjw9>
- <https://github.com/Eugeny/russh/commit/2885385abfee279092a41d80c6cb6ac367353159>
- <https://github.com/Eugeny/russh/releases/tag/v0.63.1>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-102822>
- <https://github.com/Eugeny/russh>
- <https://security-tracker.debian.org/tracker/CVE-2026-102822>
- <https://ubuntu.com/security/CVE-2026-102822>
- <https://www.cve.org/CVERecord?id=CVE-2026-102822>

---

Data as of 2026-12-05T10:18:28.727Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
