Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessOperate attacker-controlled SSH endpoint
-
DeliveryVictim client connects and completes KEX
-
Exploitkex_done() fires with raw shared secret
-
ExecutionApplication initializes secondary channel / exports secret
-
Impactcheck_server_key() rejects key after side effects
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Incorrect behavior order
|
| Exploitation Conditions | Exploitation requires three concrete conditions. First, the victim must run a russh-based client in the 0.55.0-0.65.0 range that overrides client::Handler::kex_done() to perform an externally-visible action - the advisory names deriving keys, initializing a secondary data channel, VPN-over-SSH, UDP data planes, file transfer, or custom enterprise transports as the intended (and vulnerable) uses. Second, the attacker must control the SSH endpoint the client connects to (a rogue server or MITM position) and present a host key for which it can produce a valid KEX signature - trivial since any server can sign with its own key. Third, the attacker-supplied host key will ultimately be rejected by check_server_key(), but the kex_done() side effect has already fired. Key limiting factors: clients that leave kex_done() at its no-op default, or that defer all callback-derived actions until host trust is confirmed, are NOT affected; and AC:H reflects that the vulnerable override is a non-default application-specific configuration outside the attacker's control. |
| Impact | This is a genuinely low-priority issue despite being a real logic flaw. The provided CVSS is 3.7 (AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N): network-reachable via a malicious/MITM SSH server with no privileges, but high complexity and only limited confidentiality impact. No CISA KEV listing is present and no EPSS score was supplied, so widespread or automated exploitation cannot be inferred from the data; the vuln.today Decision label is 'monitor', consistent with a non-urgent severity. A proof-of-concept is included in the GitHub Security Advisory (GHSA-9264-jvgf-6w2f). The dominant risk limiter is scope of affected applications: only clients that override client::Handler::kex_done() to perform externally-visible work (key derivation, secondary-channel bootstrap) are exposed - ordinary clients that keep the no-op default or defer actions until check_server_key() confirms trust are not affected. Signals are consistent (low CVSS, 'monitor' label, no KEV) rather than conflicting; the main missing signal is EPSS, which is absent from the input. Treat this as patch-in-normal-cadence, not an emergency. |
| Exploit ScenarioDerived | An attacker stands up (or MITMs into) an SSH server using an attacker-owned host key and induces a victim russh-based client to connect. If that client implements kex_done() to bootstrap a secondary encrypted transport, the raw shared secret is handed to the application and the secondary channel is initialized before check_server_key() runs and rejects the untrusted host key. A self-contained proof-of-concept demonstrating this callback ordering is published in the GHSA advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 13, 2026
russh, a Rust SSH client/server library, invokes the application's client::Handler::kex_done() callback with the raw key-exchange shared secret before check_server_key() has accepted the server's host key or certificate. From 0.55.0 through 0.65.0, russh-based clients that override kex_done() for its documented protocol-bridging purpose (deriving keys, bootstrapping a secondary encrypted channel, VPN-over-SSH, UDP data planes, file transfer) can have that externally visible action triggered by a rogue SSH server whose identity is rejected immediately afterwards; clients that keep the no-op default or independently defer callback-derived actions are not affected. No CISA KEV entry exists and exploitation has not been confirmed in the wild; a public PoC reference that demonstrates the callback ordering ships with the GitHub advisory, though it is not verified as working exploit code, and the flaw is treated as low priority (decision label: monitor) because the vulnerable override is a non-default application configuration outside an attacker's control.
RemediationAI
Upgrade the russh dependency to 0.65.1 or later, which applies the reordering from commit 43a46d67a80a7355fcd2fb25e7e00d79aec8184c (PR https://github.com/Eugeny/russh/pull/808, release https://github.com/Eugeny/russh/releases/tag/v0.65.1) so the initial-KEX kex_done() callback runs only after check_server_key() has accepted the server; see advisory GHSA-9264-jvgf-6w2f at https://github.com/Eugeny/russh/security/advisories/GHSA-9264-jvgf-6w2f. If an immediate upgrade is not possible, the vendor's stated non-affected configurations are viable compensating controls: leave kex_done() at its no-op default, or keep any override in place but defer every callback-derived action (key derivation, secondary-channel initialization, early data handling) until check_server_key() has returned true - the trade-off is that secondary-channel bootstrap is postponed to a later point in the handshake, which requires application-side restructuring and is only correct if no later path decouples the two steps. Because the fix is a source-level reordering rather than a configuration switch, there is no runtime toggle or network-level workaround that removes the exposure while still using the callback for bridging.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in cargo
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is an ordering defect (CWE-696, Incorrect Behavior Order) with an authorization dimension (CWE-863) inside russh's SSH transport key exchange, implemented in russh/src/client/mod.rs. During the initial KEX, russh verifies the server's signature over the exchange hash, then immediately passes newkeys.kex.shared_secret_bytes() to the application via kex_done() so that applications can derive keys for secondary channels; only afterwards does it call check_server_key() and, if that returns false, abort with Error::UnknownKey. Cryptographic proof of possession of a host key does not establish peer identity, since any attacker-run SSH server can sign with its own key - identity is established solely by check_server_key() accepting that key or certificate. The callback was introduced in commit 500bef1eccc1c48ac674e2a262aa7887777431eb and is present from v0.55.0 through v0.65.0. The upstream fix (commit 43a46d67a80a7355fcd2fb25e7e00d79aec8184c, PR #808) moves the initial-KEX kex_done() invocation to after the trust check and documents that the shared secret is never delivered for a server that is about to be rejected; the same commit incidentally tightens russh's SSH agent client plumbing (request acknowledgements now go through read_success() and a FAILURE reply is surfaced as Error::AgentFailure, with EXTENSION_RESPONSE accepted for draft-miller-ssh-agent extensions). The input supplies no CPE strings; the affected package is identified as rust/russh. Exploitation requires the victim to run an affected version with a kex_done() override that performs an externally visible action and the attacker to control the SSH endpoint; AC:H reflects that this non-default override is outside the attacker's control.
Know when Rust gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
Attacker runs own server so PR:N; exploitation depends on a non-default vulnerable kex_done override outside attacker control, so AC:H; secret exposure gives C:L and acting on an untrusted session gives I:L.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
2DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Command injection via Windows CreateProcess argument parsing affects multiple language runtimes and tooling (Node.js, PH
In the standard library in Rust before 1.52.0, a double free can occur in the Vec::from_iter function if freeing the ele
In the standard library in Rust before 1.52.0, the Zip implementation can report an incorrect size due to an integer ove
Stored cross-site scripting and open redirect in Warpgate's SSO endpoints (versions prior to 0.25.5) allow an unauthenti
library/std/src/net/parser.rs in Rust before 1.53.0 does not properly consider extraneous zero characters at the beginni
Denial of service in the Vector observability pipeline's `logstash` source (versions 0.15.0 through 0.56.x) allows a rem
The Rust Programming Language Standard Library 1.34.x before 1.34.2 contains a stabilized method which, if overridden, c
Use-after-free in librsvg during rendering of crafted SVG documents with nested XInclude directives and duplicate entity
In the standard library in Rust before 1.52.0, the Zip implementation calls __iterator_get_unchecked() more than once fo
In the standard library in Rust before 1.50.0, read_to_end() does not validate the return value from Read in an unsafe c
Cargo prior to Rust 1.26.0 may download the wrong dependency if your package.toml file uses the `package` configuration
A parser differential in the Rust `zip` crate (zip2) through 9.0.4 lets a crafted archive present different filenames to
EUVD-2026-125719
GHSA-9264-jvgf-6w2f
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB