Description
Russh is a Rust SSH client & server library. Prior to 0.62.4, an authenticated SSH client can cause a denial of service by sending a pty-req channel request with more than 130 terminal-mode records. The parser in russh/src/server/encrypted.rs stores terminal modes in a fixed 130-entry [(Pty::TTY_OP_END, 0); 130] array but continues increasing the mode count, then constructs an out-of-bounds slice and panics before the application pty_request handler runs. The panic terminates the server session task without causing memory corruption. This issue is fixed in version 0.62.4.
Severity (CVSS)
| Base score | 4.3 |
|---|---|
| Severity | Medium |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L |
| Provided by | CNA |
Weaknesses
- CWE-129 — CWE-129: Improper Validation of Array Index
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Eugeny | russh | < 0.62.4 |
References
- https://github.com/Eugeny/russh/security/advisories/GHSA-cqjc-rmpq-xprq (x_refsource_CONFIRM)
- https://github.com/Eugeny/russh/commit/8912512371820167a12a0a638bd666856ce458ad (x_refsource_MISC)
- https://github.com/Eugeny/russh/releases/tag/v0.62.4 (x_refsource_MISC)
Generated from the official CVE List on 14 Aug 2026 07:02 UTC.