All vulnerabilities

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
Weakness
Allocation without limits (CWE-770)
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.

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.0

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