crates.io
CVE-2026-116696
russh's SSH agent server is susceptible to unbound allocations via repeated SSH_AGENT_CONSTRAIN_CONFIRM messages
- Severity
- Low 3.3
- Published
- 30 Oct 2026
- Last changed
- 30 Oct 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 0.65.0
- Exploit chance
- 0.2% in the next 30 daysHigher than 10% of CVEs. EPSS by FIRST, 24 Nov 2026
- Attack
- Needs local access · Needs a user account · No user action needed
- Attacker can
- Slow it down
- CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L- Also known as
- GHSA-9wfm-jcj8-jfv9
- Sources
- OSV.dev and GitHub
Description
All evidence, reproduction steps, and scripts in the report were verified against a real running instance. Nothing is fabricated or synthetic; every verdict is backed by captured output from an actual deployment.
The SSH agent server that ships with russh (russh::keys::agent::server::serve) parses client key-addition requests and, for each SSH_AGENT_CONSTRAIN_CONFIRM (0x02) record it finds, pushes one Constraint::Confirm value into a per-key vector inside an unbounded loop, then stores the resulting pair permanently in its keystore (russh/src/keys/agent/server.rs:296-303). Neither the constraint vector nor the keystore has a size or count limit: the only boundary is the 256 KiB agent frame cap, and every 1-byte record a client sends becomes a 56-byte enum retained for the life of the process.
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-116794russh: Agent server never calls `Agent::confirm`, so keys added with the confirm constraint (`ssh-add -c`) sign without confirmationHigh 30 Oct 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-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-116696
- GitHub Advisory Database https://github.com/advisories/GHSA-9wfm-jcj8-jfv9