CVE-2026-102822 russh: negotiating a MAC-requiring block cipher (CTR/CBC) with mac=none causes a slice-index-out-of-range panic
LowCVSS 3.7
EPSS 0.33%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
- Technology
- UbuntuDebianRed Hat
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.
Upgrade path
4 packages: 2 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/rust-russh(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| crates.io russh(crates.io) | < 0.63.1; <= 0.63.0 | 0.63.1 | Fixed |
| debian/rust-russh(Debian 14) | < 0.64.1-1; = 0.57.1-1; = 0.57.1-2 | 0.64.1-1 | Fixed |
| Eugeny russh | = < 0.63.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Eugeny russh | = < 0.63.1 | No fix listed |
| crates.io russh(crates.io) | < 0.63.1 | 0.63.1 |
| debian/rust-russh(Debian:14) | < 0.64.1-1 | 0.64.1-1 |
| debian/rust-russh(Debian:14) | = 0.57.1-1 | No fix listed |
| debian/rust-russh(Debian:14) | = 0.57.1-2 | No fix listed |
| crates.io russh(crates.io) | <= 0.63.0 | No fix listed |
| ubuntu/rust-russh(Ubuntu:26.10) | All versions | No fix listed |
References
- https://github.com/Eugeny/russh/security/advisories/GHSA-p8qx-h547-fjw9 exploit vendor-advisory
- https://github.com/Eugeny/russh/commit/2885385abfee279092a41d80c6cb6ac367353159 patch
- https://github.com/Eugeny/russh/releases/tag/v0.63.1
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2543499 issue-tracking
- www.cve.org
- Debian Security Tracker CVE-2026-102822 vendor-advisory
- github.com
- Ubuntu CVE tracker vendor-advisory
- bugs.debian.org issue-tracking
- ENISA EUVD EUVD-2026-89205 third-party-advisory