Advisory

RUSTSEC-2026-0493

Also known as: CVE-2026-46702, GHSA-wwx6-x28x-8259

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.

Severity

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

Dates

Published
2026-05-29 12:00 UTC
Modified
2026-11-12 08:00 UTC

Affected packages and fixes

russh

crates.io · All systems

Affected

  • introduced 0.34.0, fixed 0.61.1 (semver)

Fixed versions

0.61.1

Fix

  • Fixed version 0.61.1
    cargo update -p russh --precise 0.61.1

Fix 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

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences