Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. russh
  4. ›
  5. CVE-2026-46705

CVE-2026-46705: russh server userauth state is not reset when authentication principal changes

May 29, 2026 (updated June 11, 2026)

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.

References

  • github.com/Eugeny/russh/security/advisories/GHSA-hpv4-5h6f-wqr3
  • github.com/advisories/GHSA-hpv4-5h6f-wqr3
  • nvd.nist.gov/vuln/detail/CVE-2026-46705

Code Behaviors & Features

Detect and mitigate CVE-2026-46705 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.34.0-beta.1 before 0.61.0

Fixed versions

  • 0.61.0

Solution

Upgrade to version 0.61.0 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-287: Improper Authentication

Source file

cargo/russh/CVE-2026-46705.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:25:00 +0000.