All vulnerabilities

crates.io

CVE-2026-128088

russh try_sign: asynchronous confirmation can sign after agent lock

Severity
Low 2.2
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 5% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Time-of-check time-of-use race condition (CWE-367)Incorrect authorization (CWE-863)
Attack
Needs local access · Only under certain conditions · Needs a user account · Needs someone to click or open something
Attacker can
Change some data
CVSS vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:N
Also known as
GHSA-736f-c93q-9fwx
Sources
OSV.dev and GitHub

Description

In russh 0.65.0, a sign request for a confirmation-constrained key can retain and use the private key after another connection locks the agent. try_sign() snapshots an Arc before awaiting Agent::confirm() and does not revalidate the shared lock state after the await. An agent-forwarding peer can therefore obtain a signature while the agent is locked and every new request is being rejected.

The agent's lock and key stores are shared by all connections. respond() reads the lock state once, then dispatches a sign request:

In try_sign(), russh clones the private key from the shared store and drops the store lock before awaiting the asynchronous confirmation callback:

While confirm() is pending, a second agent connection can successfully lock the shared agent. When confirmation later returns true, the original connection signs with its captured Arc.

The affected code is in russh/src/keys/agent/server.rs and try_sign().

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
  • From 0.65.0 before 0.65.1

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