GHSA-4p9f-7p9m-5vfg: russh's SSH client is susceptible to unbounded allocations via EXT_INFO packets

Published Oct 27, 2026
·
Updated

russh is a Rust SSH client and server library that includes an SSH agent protocol implementation. Prior to 0.65.0, the client Session::processpacket path in russh/src/client/encrypted.rs accepts repeated packets encoded with russh's private msg::EXTINFO = 7 before authentication, while the standards-compliant EXTINFO message number 82 does not reach the affected handler. The handleextinfo function appends every parsed extension name to receivedextensions 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.

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade russh to a version that resolves this vulnerability.

    Fixed in 0.65.0

Event History

Oct 27, 2026
CVE Published
via OSV·08:23 PM
Data Sourced
via OSV·08:23 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Applications using russh as an SSH client are exposed when they connect to a malicious SSH server. The affected processing occurs before authentication, so the server does not need valid client credentials or a completed SSH login.

2

What does an attacker need to do to trigger the memory exhaustion?

A malicious SSH server must repeatedly send packets using russh's private EXT_INFO message number 7. Standard EXT_INFO packets using message number 82 do not reach the affected handler.

3

Are affected clients vulnerable during a normal connection setup?

Yes. The affected packet path is reached before authentication, and repeated attacker-controlled extension names are retained for the lifetime of the session, progressively consuming client memory.

4

What version fixes the issue?

The issue is fixed in russh version 0.65.0. Versions prior to 0.65.0 are affected.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203