russh
Affected
- introduced
0.0.0-0, fixed0.60.1(semver)
Fixed versions
0.60.1
Fix
- Fixed version
0.60.1cargo update -p russh --precise 0.60.1
Advisory
Also known as: CVE-2026-42189, GHSA-f5v4-2wr6-hqmg
Pre-authentication allocation from the keyboard-interactive response count
A server that answers a keyboard-interactive authentication request with prompts (Auth::Partial, as a TOTP or other second-factor login does) then parses the client's SSH_MSG_USERAUTH_INFO_RESPONSE. russh read the number of responses from that message and reserved a vector of that many entries before reading any of them. A client that has not authenticated can send a very large count in a packet that carries no responses at all, and the server tries to allocate several gigabytes and may be killed for running out of memory.
Servers whose handler keeps the default behaviour, which rejects keyboard-interactive authentication, are not affected. From 0.60.1 the count is limited by how many responses the remaining packet data could actually hold.
High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
0.0.0-0, fixed 0.60.1 (semver)0.60.1
0.60.1cargo update -p russh --precise 0.60.1Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: RustSec Advisory Database · CC0-1.0