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

- Severity: Low 3.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 27% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-29T18:23:28.061Z
- Modified: 2026-09-30T23:45:04.010Z
- Also known as: GHSA-p8qx-h547-fjw9
- Weaknesses: CWE-129
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- Eugeny russh: < 0.63.1
- russh (crates.io): before 0.63.1

## Every score

- GitHub_M: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/Eugeny/russh/security/advisories/GHSA-p8qx-h547-fjw9> (exploit, web)
- <https://github.com/Eugeny/russh/commit/2885385abfee279092a41d80c6cb6ac367353159> (web)
- <https://github.com/Eugeny/russh/releases/tag/v0.63.1> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-102822> (advisory)
- <https://github.com/Eugeny/russh> (package)

## Sources

- CVE List: [CVE-2026-102822](https://www.cve.org/CVERecord?id=CVE-2026-102822), CVE Terms of Use, modified 2026-09-29
- GitHub Advisory Database: [GHSA-p8qx-h547-fjw9](https://github.com/advisories/GHSA-p8qx-h547-fjw9), CC-BY-4.0, modified 2026-09-30
- NVD: [CVE-2026-102822](https://nvd.nist.gov/vuln/detail/CVE-2026-102822), Public domain, modified 2026-09-29

---

Page: https://cve.day/CVE-2026-102822 · Whole record: https://cve.day/CVE-2026-102822.json · Rebuilt by cve.day 2026-11-25T22:59:41.545Z
