crates.io
CVE-2026-116794
russh: Agent server never calls `Agent::confirm`, so keys added with the confirm constraint (`ssh-add -c`) sign without confirmation
- Severity
- High
- Published
- 30 Oct 2026
- Last changed
- 12 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 0.65
- Exploit chance
- 0.2% in the next 30 daysHigher than 8% of CVEs. EPSS by FIRST, 24 Nov 2026
- Weakness
- Missing authorization (CWE-862)
- Also known as
- GHSA-vp5q-ff62-jwqv, RUSTSEC-2026-0495
- Sources
- OSV.dev and GitHub
Description
The agent server in russh::keys::agent::server never calls Agent::confirm before signing with a key that was added with the confirm constraint. That constraint is SSH_AGENT_CONSTRAIN_CONFIRM (RFC 9987 §5.2.7.2), which is what ssh-add -c sends.
The call was replaced by a hard-coded true in 3e04597 ("Native async traits encore", #455), first released in 0.50.0-beta.12. Every release since, up to and including 0.64.1, signs requests for confirm-constrained keys without asking the Agent implementation. A user who added a key with -c is therefore never asked to confirm.
Connection::try_sign notes that the key needs confirmation, then awaits a ready future instead of the agent (server.rs L348-L360 at v0.64.1):
Before 3e04597 the first statement was let (agent, ok) = agent.confirm(key.clone()).await;.
try_sign was checked in the published crates on crates.io:
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-128087russh kex_done: Shared-secret callback runs before server host-key verificationLow 3.7 13 Nov 2026
- CVE-2026-128088russh try_sign: asynchronous confirmation can sign after agent lockLow 2.2 13 Nov 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-116794
- GitHub Advisory Database https://github.com/advisories/GHSA-vp5q-ff62-jwqv