ADVISORIES

RustSec Advisory Database

RUSTSEC-2026-0154

Unbounded 32-bit allocation

Details

Both the SSH agent server and client accepted peer-controlled frame lengths without enforcing a maximum frame size. This could cause large memory allocations while parsing a maliciously crafted agent frame.

A malicious peer could advertise an oversized frame length, causing the client or server to attempt a large memory allocation before validating the frame, potentially leading to memory exhaustion or process termination.

This is fixed by enforcing a maximum agent frame size of 256 KiB and rejecting oversized frames before buffer allocation.

Affected packages

EcosystemPackageAffected versions
crates.iorussh
From 0.0.0-0 before 0.60.3 (fixed in 0.60.3)

References