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 | Vendor | Product | Affected 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.
References
- https://github.com/Eugeny/russh/pull/808 Third Party Advisory
- https://github.com/Eugeny/russh/security/advisories/GHSA-9264-jvgf-6w2f Third Party Advisory
- https://github.com/Eugeny/russh/commit/43a46d67a80a7355fcd2fb25e7e00d79aec8184c Third Party Advisory
- https://github.com/Eugeny/russh/releases/tag/v0.65.1 Third Party Advisory
- https://github.com/advisories/GHSA-9264-jvgf-6w2f
- https://security-tracker.debian.org/tracker/CVE-2026-128087 Vendor Advisory
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/128xxx/CVE-2026-1280... Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-128087 Vendor Advisory
- https://ubuntu.com/security/CVE-2026-128087 Third Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2026-128087 Third Party Advisory
Internet-facing
60 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit
- Gives an attacker partial control
Type
CWE-696Incorrect Behavior Order
CWE-863Incorrect Authorization
Timeline
Published16 Nov 2026
Updated22 Nov 2026
First seen13 Nov 2026
Sources
CVE-2026-128087 · NVD
CVE-2026-128087 · MITRE
GHSA-9264-jvgf-6w2f · GHSA
CVE-2026-128087 · OSV
DEBIAN-CVE-2026-128087 · OSV
UBUNTU-CVE-2026-128087 · OSV
Track software like this
Free during beta