Russh: Unbounded memory exhaustion via CHANNEL_OPEN flood during a client-stalled rekey
Eugeny russh
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| russh crates.io |
|
|
Original description
Russh is a Rust SSH client and server library. Prior to 0.63.2, an authenticated remote peer can send SSH_MSG_KEXINIT without the required SSH_MSG_KEX_ECDH_INIT and then flood SSH_MSG_CHANNEL_OPEN messages while SessionKexState::InProgress prevents priority_receiver in russh/src/server/session.rs from being drained. The server continues processing network input and enqueues a ChannelOpenReply for each request on an unbounded channel, allowing one connection to grow memory until the process is terminated. This issue is fixed in version 0.63.2.
From the CVE record · GitHub_M
References
- github.com/Eugeny/russh/security/advisories/GHSA-35g8-35p8-c8fwExploit
- github.com/Eugeny/russh/commit/a282af361ac99bc76b80876d1aae128e89dbf66b
- github.com/Eugeny/russh/releases/tag/v0.63.2
- github.com/CVEProject/cvelistV5/tree/main/cves/2026/102xxx/CVE-2026-102821.json
- nvd.nist.gov/vuln/detail/CVE-2026-102821
- github.com/Eugeny/russh