← Vulnerabilities

LowAdvisoryRust

russh kex_done: Shared-secret callback runs before server host-key verification

Affected

PackageAffected versionsFixed in
rust:russh>= 0.55.0, < 0.65.10.65.1

A malicious SSH server whose host key is rejected can still cause russh's client::Handler::kex_done() callback to execute with the raw key-exchange shared secret. Applications using the callback for its documented protocol-bridging purpose may derive keys, initialize a secondary data channel, or perform another externally visible action before russh calls check_server_key() and rejects the server. Details During the initial key exchange, russh calls kex_done() immediately after the server prove…

Read on GitHub Advisory Database

On 11/14/2026, 04:20 AM, GitHub Advisory Database published "russh kex_done: Shared-secret callback runs before server host-key verification" (type: Advisory). Severity is "Low" (low). Related technologies: Rust. CVE: CVE-2026-128087.