# RUSTSEC-2026-0495: Agent server signs with confirm-constrained keys without calling Agent::confirm

- Database: RustSec
- Published: 2026-10-30
- Modified: 2026-11-12

## Tracked as

- [CVE-2026-116794](https://cve.now/CVE-2026-116794.md): russh: Agent server never calls Agent::confirm, so keys added with the confirm constraint (ssh-add -c) sign without confirmation

## Also published as

- [GHSA-VP5Q-FF62-JWQV](https://cve.now/GHSA-VP5Q-FF62-JWQV.md) (GitHub)

## Affected versions

- russh (crates.io): from 0.50.0-beta.12, fixed in 0.65.0

## Description

A key added to an SSH agent with the confirm constraint (what `ssh-add -c` sends) must not be used to sign until the user approves each use. russh's agent server (`russh::keys::agent::server`) accepted the constraint, but when a sign request arrived for such a key it used a fixed `true` in place of the result of `Agent::confirm`, so the application's confirmation step never ran. This started in 0.50.0-beta.12; 0.50.0-beta.8 to beta.11 still called `confirm`, and earlier russh releases have no agent server.

Any process that can reach the agent, including a remote host when the agent is forwarded, can then sign with the protected key without the user's approval, for example to log in elsewhere as the user. The private key itself is not disclosed. Agents whose `Agent::confirm` keeps the default, which always returns `true`, behave the same before and after the fix.

From 0.65.0 the agent server calls `Agent::confirm` for confirm-constrained keys and refuses to sign when it returns `false`. Implementations that left `confirm` unimplemented (for example as `todo!()`) will now reach that code.

## References

- https://crates.io/crates/russh
- https://rustsec.org/advisories/RUSTSEC-2026-0495.html
- https://github.com/Eugeny/russh/commit/62db6e7defd6d244159da962ccccb029e785ce0f

Page: https://cve.now/RUSTSEC-2026-0495

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
