p PatchFirst

CVE-2026-128087

CVE-2026-128087 · russh kex_done: shared-secret callback runs before server host-key verification

CVSS 3.7 · Low · EPSS 0.2% · Public exploit

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="rust-russh"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Fixes in distributions

Stack: system

Affected products and versions

  • russh

    Versions
    • >= 0.55.0, < 0.65.1: Affected

    No fix published

  • rust-russh Debian 14

    Versions
    • 0.57.1-1
    • 0.57.1-2
    • 0.64.1-1
    • 0.64.1-2
    • 0.65.1-1
    • 0.65.1-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • rust-russh Ubuntu 26.10

    Versions
    • 0.57.1-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →