Skip to content
OpenAdvisories
Medium · 6.5 CVE-2026-48107 EUVD-2026-36129GHSA-g9g7-5cgw-6v28

Russh: Unchecked keyboard-interactive prompt count in client auth path

Published Jun 10, 2026 · Updated Jun 11, 2026 · Assigned by GitHub_M

Description

Russh is a Rust SSH client & server library. From version 0.37.0 to before version 0.61.0, in the russh client keyboard-interactive authentication path, a malicious SSH server could send a USERAUTH_INFO_REQUEST with an attacker-controlled prompt count, and the client would use that raw count directly in Vec::with_capacity(...) before validating that enough prompt data was actually present in the packet. This issue has been patched in version 0.61.0.

Affected products

VendorProductAffectedFixed
Eugeny russh >= 0.37.0, < 0.61.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 rust-russh 0.64.1-1 —

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io russh >= 0.37.0, < 0.61.0 0.61.0 GHSA-g9g7-5cgw-6v28

References