CVE-2026-128087 russh kex_done: shared-secret callback runs before server host-key verification
- Exploited in the wild
- Not known
- Fix
- Available
What is CVE-2026-128087?
CVE-2026-128087 is a low-severity vulnerability in Eugeny russh, published on 13 Nov 2026.
Official description
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.
Which versions are affected by CVE-2026-128087?
1 open source package ship an affected version, including russh.
| Package | Affected | Fixed in |
|---|---|---|
russh crates.iopkg:cargo/russh | From 0.55.0 | 0.65.1 |
Status by vendor (1)
| Who | Release | Status | Packages |
|---|---|---|---|
| Upstream | fixed | russh (0.65.1)pkg:cargo/russh |
How do I fix CVE-2026-128087?
Upgrade russh to 0.65.1 or later.
Is CVE-2026-128087 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-128087 exists.
Sources
Also known as DEBIAN-CVE-2026-128087, GHSA-9264-jvgf-6w2f, UBUNTU-CVE-2026-128087.