Skip to content
OpenAdvisories
Medium · 4.3 CVE-2026-116773 EUVD-2026-111388GHSA-4p9f-7p9m-5vfg

russh's SSH client is susceptible to unbounded allocations via EXT_INFO packets

Published Oct 27, 2026 · Updated Oct 30, 2026 · Assigned by GitHub_M

Description

russh is a Rust SSH client and server library that includes an SSH agent protocol implementation. Prior to 0.65.0, the client Session::process_packet path in russh/src/client/encrypted.rs accepts repeated packets encoded with russh's private msg::EXT_INFO = 7 before authentication, while the standards-compliant EXT_INFO message number 82 does not reach the affected handler. The handle_ext_info function appends every parsed extension name to received_extensions without clearing, deduplicating, or bounding the vector. A malicious SSH server that deliberately sends private message number 7 can therefore retain an unbounded number of attacker-controlled extension names for the session lifetime, causing progressive client memory exhaustion. This issue is fixed in version 0.65.0.

Affected products

VendorProductAffectedFixed
Eugeny russh < 0.65.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 No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 rust-russh No fix yet —
ReleasePackageFixed inAdvisory
Red Hat Hardened Images 1 openshell +2 0.1.6-0.1.hum1 RHSA-2026:93904

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling yazi 26.9.1-r7 —

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io russh < 0.65 0.65 GHSA-4p9f-7p9m-5vfg

Advisories 1

References