Vulnerability RUSTSEC-2026-0493

High Risk
HIGH RISK
CVSS Score: 7.5
Score Range: 7.0–8.9
High severity vulnerabilities (CVSS 7.0–8.9). Serious vulnerabilities that should be prioritized soon after critical fixes.
5 months ago
May 29, 2026 at 12:00 PM UTC
No limit on the size of a decompressed SSH packet
>=0.34.0 <0.61.1
>=0.34.0 <0.61.1

Summary

No limit on the size of a decompressed SSH packet

Details

With zlib or [email protected] compression negotiated, the packet length that russh checks applies to the compressed payload only. The decompressor kept growing its output buffer until the whole payload was inflated, with no limit of its own, so a packet that is small on the wire could expand to hundreds of megabytes before it was parsed.

The default server configuration offers both zlib methods, and a client that lists compression first can select it during the initial key exchange. That client can then send such a packet after NEWKEYS but before authenticating, so a russh server with default settings can be made to use large amounts of memory by an unauthenticated peer. A malicious server can do the same to a client that negotiated compression.

From 0.61.1, decompressed output is capped at the same maximum as an uncompressed packet (256 KiB plus a few bytes of header room), and larger packets are rejected with Error::PacketSize.

Impacted packages

Timeline

Published
5 months ago
May 29, 2026 at 12:00 PM UTC
Fixed (0.61.1)
5 months ago
May 23, 2026 at 07:53 AM UTC
Last Modified
1 day ago
November 12, 2026 at 08:00 AM UTC