Public mode

No access to your tenant or devices. Every item links to its source. What this means

Sources need attention Customize Public modeDiscuss ChangeIntel on Discord

russh server userauth state is not reset when authentication principal changes

CVSS 3.1 5.3 MEDIUMEUVD CVSS 3.1 5.3 CVSS 3.1 · [email protected] · Secondary 5.3 MEDIUMCVSS_V3 Publisher rating MODERATEFixed by russh 0.61.0KEV status unknown

cve-program · CVE-2026-46705

Published

Russh is a Rust SSH client & server library. From version 0.34.0-beta.1 to before version 0.61.0, the russh server authentication path keeps internal userauth state across SSH_MSG_USERAUTH_REQUEST messages without separating that state when the request principal changes. RFC 4252 allows the user name and service name fields to change between authentication requests. The issue is not that such changes are invalid. The issue is that russh-owned authentication state, such as remaining methods, partial-success state, and in-progress method state, can remain associated with the connection and then influence a later request for a different (user, service). This is an internal library state mismatch. This issue has been patched in version 0.61.0.

Read the publisher's advisory

euvd · EUVD-2026-36126

Published

Russh is a Rust SSH client & server library. From version 0.34.0-beta.1 to before version 0.61.0, the russh server authentication path keeps internal userauth state across SSH_MSG_USERAUTH_REQUEST messages without separating that state when the request principal changes. RFC 4252 allows the user name and service name fields to change between authentication requests. The issue is not that such changes are invalid. The issue is that russh-owned authentication state, such as remaining methods, partial-success state, and in-progress method state, can remain associated with the connection and then influence a later request for a different (user, service). This is an internal library state mismatch. This issue has been patched in version 0.61.0.

Read the publisher's advisory

nvd · CVE-2026-46705

Published

Russh is a Rust SSH client & server library. From version 0.34.0-beta.1 to before version 0.61.0, the russh server authentication path keeps internal userauth state across SSH_MSG_USERAUTH_REQUEST messages without separating that state when the request principal changes. RFC 4252 allows the user name and service name fields to change between authentication requests. The issue is not that such changes are invalid. The issue is that russh-owned authentication state, such as remaining methods, partial-success state, and in-progress method state, can remain associated with the connection and then influence a later request for a different (user, service). This is an internal library state mismatch. This issue has been patched in version 0.61.0.

Read the publisher's advisory

osv · GHSA-hpv4-5h6f-wqr3

Published

### Summary The `russh` server authentication path keeps internal userauth state across `SSH_MSG_USERAUTH_REQUEST` messages without separating that state when the request principal changes. RFC 4252 allows the `user name` and `service name` fields to change between authentication requests. The issue is not that such changes are invalid. The issue is that russh-owned authentication state, such as remaining methods, partial-success state, and in-progress method state, can remain associated with the connection and then influence a later request for a different `(user, service)`. This is an internal library state mismatch. Applications are responsible for any authentication state they keep in their own handlers, but russh must reset or separate state that russh itself owns. ### Details The relevant server-side auth logic is in: - `russh/src/server/encrypted.rs` - `russh/src/auth.rs` RFC 4252 section 5 says the `user name` and `service name` fields are repeated in every `SSH_MSG_USERAUTH_REQUEST` and may change. It also says the server implementation must check those fields in every message and flush accumulated authentication state if they change; if it cannot flush that state, it must disconnect. In vulnerable `russh` code, the username and service are decoded from each `SSH_MSG_USERAUTH_REQUEST`, while the `AuthRequest` state remains connection-scoped. That state includes: - `methods`, which is later encoded as the `SSH_MSG_USERAUTH_FAILURE` remaining-methods list. - `partial_success`, which is later encoded in `SSH_MSG_USERAUTH_FAILURE`. - `current`, which tracks in-progress method state such as public-key offer or keyboard-interactive challenge state. - `rejection_count`. If one request narrows russh's internal `methods` set, a later request for a different user can observe that narrowed set unless the internal state is reset at the principal boundary. ### PoC The PoC demonstrates only russh-owned state. The handler does not store any cross-request state. Alice's request narrows russh's remaining methods to `password`; Bob's later plain reject should not reuse that internal state. ```rust struct RemainingMethodsUserSwitchServer; impl server::Handler for RemainingMethodsUserSwitchServer { type Error = russh::Error; async fn auth_none(&mut self, user: &str) -> Result<server::Auth, Self::Error> { if user == "alice" { Ok(server::Auth::Reject { proceed_with_methods: Some(MethodSet::from(&[MethodKind::Password][..])), partial_success: true, }) } else { Ok(server::Auth::reject()) } } } #[tokio::test] async fn auth_does_not_carry_remaining_methods_across_username_change() { let alice = session.authenticate_none("alice").await.unwrap(); assert!(matches!( alice, client::AuthResult::Failure { ref remaining_methods, .. } if *remaining_methods == MethodSet::from(&[MethodKind::Password][..]) )); let bob = session.authenticate_none("bob").await.unwrap(); if let client::AuthResult::Failure { remaining_methods, .. } = bob { assert!( remaining_methods.contains(&MethodKind::PublicKey), "server reused Alice's narrowed remaining methods for Bob: {remaining_methods:?}" ); } } ``` On `upstream/main`, this fails with: ```text server reused Alice's narrowed remaining methods for Bob: MethodSet([Password]) ``` That failure is produced by russh's retained `AuthRequest.methods`; it does not depend on handler-owned MFA/session state. ### Impact Suggested provisional CVSS v3.1: - `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N` - Score: `5.3` Reasoning: - `AV:N`: reachable by a remote SSH client during authentication. - `AC:L`: the attack is a normal sequence of SSH user-auth packets. - `PR:N`: the attacker does not need an already-authenticated SSH session. - `UI:N`: no user interaction is required on the server side. - `S:U`: the impact is within the vulnerable SSH server implementation. - `C:N`: the narrow PoC does not disclose confidential data. - `I:L`: russh-owned authentication state for one principal can affect the authentication flow for a different principal. - `A:N`: the narrow PoC does not demonstrate an availability impact. This report does not claim that username changes are inherently invalid, nor does it rely on application-owned authentication state being mishandled by the embedding server. ### Fix / Patch Direction The fix should update russh's internal userauth state handling so that accumulated russh-owned state is flushed or separated when `(user, service)` changes between `SSH_MSG_USERAUTH_REQUEST` messages. The fix stores the last seen `(user, service)` on `AuthRequest`. When a new auth request arrives for a different principal, russh resets its internal auth state before dispatching the new request. This keeps username changes protocol-valid while preventing prior russh-owned auth state from carrying into the new principal.

Read the publisher's advisory

Affected versions, risk and source history

Exploitation and risk

Source status

CISA KEV lists vulnerabilities known to be exploited. FIRST EPSS estimates the likelihood of exploitation in the next 30 days. An unavailable score does not mean zero risk.

Which CVEs have scores here?

This view includes predictions for CVE identifiers explicitly listed in public NuGet advisories. Microsoft release pages have their own prediction coverage. Check source status for the scope and latest checks.

No exploitation or prediction data is available here for these CVEs. This does not mean they are safe or unlikely to be exploited.

Risk history

Compare earlier KEV listings and EPSS scores. Advisory wording and affected versions have a separate history.

When does an EPSS score appear as a change?

A prediction change is reported when EPSS rises from below 10% to 10% or higher. Every daily score change from the last 30 days stays in this history. Before that, it keeps KEV changes and moves between EPSS bands (0.1%, 1%, 5%, 10%, 20%, 50% and 90%).

Advisory history

12 saved versions

See how the publisher's advisory changed over time. Each link opens the version saved at that time. The publisher's update date can differ from the date shown here.

How advisory history works

Each link identifies one complete publisher record. History can include advisories that previously shared an identifier; an identifier removed by a publisher no longer establishes a current relationship. A historical link shows only that record and earlier saved versions. Failed checks and unchanged reads do not create new versions.

14 Nov 2026 00:10:20 UTC

Russh is a Rust SSH client & server library. From version 0.34.0-beta.1 to before version 0.61.0, the russh server authentication path keeps internal userauth state across SSH_MSG_USERAUTH_REQUEST messages without separating that state when…

euvd · EUVD-2026-36126 · Published

11 Nov 2026 12:08:06 UTC

Russh is a Rust SSH client & server library. From version 0.34.0-beta.1 to before version 0.61.0, the russh server authentication path keeps internal userauth state across SSH_MSG_USERAUTH_REQUEST messages without separating that state when…

euvd · EUVD-2026-36126 · Published

9 Nov 2026 11:12:56 UTC

Russh is a Rust SSH client & server library. From version 0.34.0-beta.1 to before version 0.61.0, the russh server authentication path keeps internal userauth state across SSH_MSG_USERAUTH_REQUEST messages without separating that state when…

euvd · EUVD-2026-36126 · Published

7 Nov 2026 10:39:32 UTC

Russh is a Rust SSH client & server library. From version 0.34.0-beta.1 to before version 0.61.0, the russh server authentication path keeps internal userauth state across SSH_MSG_USERAUTH_REQUEST messages without separating that state when…

euvd · EUVD-2026-36126 · Published

5 Nov 2026 10:04:52 UTC

Russh is a Rust SSH client & server library. From version 0.34.0-beta.1 to before version 0.61.0, the russh server authentication path keeps internal userauth state across SSH_MSG_USERAUTH_REQUEST messages without separating that state when…

euvd · EUVD-2026-36126 · Published

3 Nov 2026 09:09:33 UTC

Russh is a Rust SSH client & server library. From version 0.34.0-beta.1 to before version 0.61.0, the russh server authentication path keeps internal userauth state across SSH_MSG_USERAUTH_REQUEST messages without separating that state when…

euvd · EUVD-2026-36126 · Published

1 Nov 2026 08:15:48 UTC

Russh is a Rust SSH client & server library. From version 0.34.0-beta.1 to before version 0.61.0, the russh server authentication path keeps internal userauth state across SSH_MSG_USERAUTH_REQUEST messages without separating that state when…

euvd · EUVD-2026-36126 · Published

30 Oct 2026 08:01:24 UTC

Russh is a Rust SSH client & server library. From version 0.34.0-beta.1 to before version 0.61.0, the russh server authentication path keeps internal userauth state across SSH_MSG_USERAUTH_REQUEST messages without separating that state when…

euvd · EUVD-2026-36126 · Published

28 Oct 2026 06:16:21 UTC

Russh is a Rust SSH client & server library. From version 0.34.0-beta.1 to before version 0.61.0, the russh server authentication path keeps internal userauth state across SSH_MSG_USERAUTH_REQUEST messages without separating that state when…

euvd · EUVD-2026-36126 · Published

25 Oct 2026 12:17:20 UTC

Russh is a Rust SSH client & server library. From version 0.34.0-beta.1 to before version 0.61.0, the russh server authentication path keeps internal userauth state across SSH_MSG_USERAUTH_REQUEST messages without separating that state when…

nvd · CVE-2026-46705 · Published

24 Oct 2026 13:19:54 UTC

russh server userauth state is not reset when authentication principal changes

osv · GHSA-hpv4-5h6f-wqr3 · Published

23 Oct 2026 15:48:27 UTC

russh server userauth state is not reset when authentication principal changes

cve-program · CVE-2026-46705 · Published

ChangeIntel

An IT change radar: releases, security, known issues, retirements, documentation changes, and service status from public sources. Every item links to supporting evidence; dates and statuses can change after they are read.

Sources read 15 Nov 22:09 UTC · 274 of 275 readable · 268 fully read · documentation 469/469 current