crates.io
CVE-2026-128087
russh kex_done: Shared-secret callback runs before server host-key verification
- Severity
- Low 3.7
- Published
- 13 Nov 2026
- Last changed
- 13 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 0.65.1
- Exploit chance
- 0.2% in the next 30 daysHigher than 14% of CVEs. EPSS by FIRST, 24 Nov 2026
- Attack
- Over the network · Only under certain conditions · No login needed · No user action needed
- Attacker can
- Read some data
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N- Also known as
- GHSA-9264-jvgf-6w2f
- Sources
- OSV.dev and GitHub
Description
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.
During the initial key exchange, russh calls kex_done() immediately after the server proves possession of the presented host key, but before the application decides whether that key belongs to the intended server:
This is in russh/src/client/mod.rs at lines 2036-2078 of commit 183a22e8f8f490fa09b6eb7bd044ef99d8c4414f.
The API documentation describes check_server_key() as the important trust decision that prevents man-in-the-middle attacks. It describes kex_done() as the callback for deriving keys for secondary encrypted channels.
Affected software
| Software | Affected versions |
|---|---|
russhcrates.io · osv:crates.io:russh |
|
About russh
- Downloads in the last 90 days (crates.io)
- 5,135,797crates.io, 23 Nov 2026
- Total downloads (crates.io)
- 11,304,063crates.io, 23 Nov 2026
Vulnerabilities in russh
- In our list
- 6
- Published in the last 12 months
- 6
- Critical, last 12 months
- 0
- High, last 12 months
- 1
- Known exploited
- 0
- CVE-2026-128088russh try_sign: asynchronous confirmation can sign after agent lockLow 2.2 13 Nov 2026
- CVE-2026-116794russh: Agent server never calls `Agent::confirm`, so keys added with the confirm constraint (`ssh-add -c`) sign without confirmationHigh 30 Oct 2026
- CVE-2026-116774russh: peer-declared zero maximum packet size permanently stalls channel writes (silent AsyncWrite hang)Medium 4.3 30 Oct 2026
- CVE-2026-116696russh's SSH agent server is susceptible to unbound allocations via repeated SSH_AGENT_CONSTRAIN_CONFIRM messagesLow 3.3 30 Oct 2026
- CVE-2026-116773russh's SSH client is susceptible to unbounded allocations via EXT_INFO packetsMedium 4.3 30 Oct 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-128087
- GitHub Advisory Database https://github.com/advisories/GHSA-9264-jvgf-6w2f