russh kex_done: shared-secret callback runs before server host-key verification
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Eugenyrussh | — | Not listed |
| rustrussh |
< 0.65.1→ 0.65.1 |
0.65.1 |
| crates.iorussh |
≥ 0.55.0, < 0.65.1→ 0.65.1 |
0.65.1 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-128087 rust-russh No fixed version in this record
- Ubuntu UBUNTU-CVE-2026-128087 rust-russh No fixed version in this record
Original description The description as published by the source.
russh is a Rust SSH client and server library that includes an SSH agent protocol implementation. From version 0.55.0 until version 0.65.1, the initial key exchange invokes client::Handler::kex_done() with the raw shared secret before check_server_key() accepts the server host key or certificate. A malicious SSH server can therefore trigger application-defined secondary-channel initialization or early data handling even when the server identity is subsequently rejected. Ordinary clients that keep the callback's no-op default or independently defer callback-derived actions until trust is confirmed are not affected. This issue is fixed in version 0.65.1.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- REDHAT Red Hat
- web github.com
- web github.com