All vulnerabilities

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:

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Affected software

SoftwareAffected versions
russhcrates.io · osv:crates.io:russh
  • Every version before 0.65

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

References