# CVE-2026-128087: russh kex\_done: Shared-secret callback runs before server host-key verification

- **Severity:** LOW 3.7
- **CVSS:** 3.7 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.23% (percentile 8, 2026-11-28)
- **CWE:** CWE-696, CWE-863
- **Aliases:** GHSA-9264-jvgf-6w2f
- **Published:** 2026-11-13T19:03:26.702Z
- **Modified:** 2026-11-13T22:17:22.950Z

## Who should check

- Projects that depend on crates.io package russh (\>= 0.55.0, \< 0.65.1)
- Anyone running Eugeny russh \>= 0.55.0, \< 0.65.1

## Description

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.

## Affected and fixed versions

- crates.io `russh`: affected \>= 0.55.0, \< 0.65.1; fixed 0.65.1 (ghsa)
- Eugeny russh: \>= 0.55.0, \< 0.65.1 (cvelist)

## Technologies

Rust crates

## Mitigation

- Upgrade russh to 0.65.1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-128087. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-128087.md
Affected: russh >= 0.55.0, < 0.65.1
Fixed in: 0.65.1

Steps:
1. Search this machine and project for russh (crates.io), Eugeny russh: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-128087 being exploited?

There is no confirmed exploitation: CVE-2026-128087 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-128087?

Low: CVSS 3.7 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-128087?

russh \>= 0.55.0, \< 0.65.1.

### Is there a fix for CVE-2026-128087?

Yes. Fixed in 0.65.1. Upgrade russh to 0.65.1 or later.

### How do I check if I'm affected by CVE-2026-128087?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/Eugeny/russh/security/advisories/GHSA-9264-jvgf-6w2f>
- patch: <https://github.com/Eugeny/russh/pull/808>
- patch: <https://github.com/Eugeny/russh/commit/43a46d67a80a7355fcd2fb25e7e00d79aec8184c>
- other: <https://github.com/Eugeny/russh/releases/tag/v0.65.1>
- other: <https://github.com/advisories/GHSA-9264-jvgf-6w2f>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-128087>
- GitHub Advisory Database: CC-BY 4.0 <https://github.com/advisories/GHSA-9264-jvgf-6w2f> (license: <https://creativecommons.org/licenses/by/4.0/>)
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-128087> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-128087>
