Skip to content

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.

PackageAffectedFixed inStatus
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

ProductAffected versionsFixed 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