Shellfeed logo Shellfeed

CVE-2026-128087 · LOW (CVSS 3.7)

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

EPSS: 0.2% probability of exploitation in the next 30 days (percentile 15.0).

Details

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.

Severity

LOW (CVSS 3.7) — vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N

Affected packages

  • crates.io russh [0.55.0 – 0.65.1]
  • GIT github.com/eugeny/russh [f6b9e6479664696db4cd9c507c6725c1ab7c8aeb – b33092aad1e51c66258a12e8b83fc473a68d9d34]

References

Posts about CVE-2026-128087