Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
3.7

CVE-2026-128087: russh library may run code before verifying server identity

CVE-2026-128087 · published 6 days ago
Summary

The Russh SSH client and server library (versions 0.55.0 through 0.65.1) can call a custom function with the encryption secret before it confirms the server’s host key. This could let a malicious server start secondary channels or send data before the connection is trusted. Upgrade to version 0.65.1 or later to stop the early callback.

What to do
  • Update eugeny russh to version 0.65.1.
  • Update russh to version 0.65.1.
Affected software
Ecosystem VendorProductAffected versions
rust eugeny russh >= 0.55.0, < 0.65.1
Fix: upgrade to 0.65.1
– eugeny russh >= 0.55.0, < 0.65.1
rust – russh >= 0.55.0, < 0.65.1
Fix: upgrade to 0.65.1
Debian:14 debian rust-russh All versions
Ubuntu:26.10 canonical rust-russh All versions
Original advisory text
russh kex_done: shared-secret callback runs before server host-key verification
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.
Fix within
Internet-facing 60 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit
  • Gives an attacker partial control
Severity
3.7 Low
Exploitation
<1% chance of attack within 30 days
Type
CWE-696Incorrect Behavior Order
CWE-863Incorrect Authorization
Timeline
Published16 Nov 2026
Updated22 Nov 2026
First seen13 Nov 2026
Track software like this
Free during beta