This project contains known security vulnerabilities. Find detailed information at the bottom.

Crate russh

Dependencies

(28 total, 17 outdated, 1 insecure)

CrateRequiredLatestStatus
 aes^0.80.9.3out of date
 aes-gcm^0.100.11.1out of date
 async-trait^0.10.1.92up to date
 bitflags^2.02.13.2up to date
 byteorder^1.31.5.0up to date
 chacha20^0.90.10.2out of date
 ctr^0.90.10.1out of date
 curve25519-dalek^4.05.0.0out of date
 digest^0.100.11.3out of date
 flate2^1.01.1.10up to date
 futures^0.30.3.34up to date
 generic-array^0.141.4.5out of date
 hex-literal^0.41.1.0out of date
 hmac^0.120.13.0out of date
 log^0.40.4.34up to date
 num-bigint^0.40.5.1out of date
 once_cell^1.131.21.4up to date
 openssl^0.100.10.81up to date
 poly1305^0.80.9.1out of date
 rand^0.80.10.3out of date
 russh-cryptovec ⚠️^0.7.00.62.0insecure
 russh-keys^0.43.00.49.2out of date
 sha1^0.100.11.0out of date
 sha2^0.100.11.0out of date
 subtle^2.42.6.1up to date
 thiserror^1.02.0.21out of date
 tokio^1.17.01.53.1up to date
 tokio-util^0.70.7.19up to date

Dev dependencies

(10 total, 6 outdated)

CrateRequiredLatestStatus
 anyhow^1.01.0.104up to date
 clap^3.24.6.7out of date
 env_logger^0.100.11.11out of date
 rand^0.8.50.10.3out of date
 ratatui^0.26.00.30.2out of date
 russh-sftp^2.0.0-beta.23.0.0out of date
 shell-escape^0.10.1.5up to date
 termion^24.0.6out of date
 tokio^1.17.01.53.1up to date
 tokio-fd^0.30.3.0up to date

Security Vulnerabilities

russh-cryptovec: Unchecked `CryptoVec` allocation and growth handling

RUSTSEC-2026-0153

CryptoVec used unchecked capacity growth, unchecked length arithmetic, and unsafe allocation and locking paths. In affected russh releases, attacker-controlled input could reach these code paths through buffer resizing operations.

Two affected reachability paths were identified:

  • Current russh releases (0.60.x before the fix) Local SSH agent peers could provide attacker-controlled frame lengths that were used to resize internal buffers before validation in:

    • AgentClient::read_response
    • agent::server::Connection::run
  • Historical russh releases before 0.58.0 CryptoVec was also used for non-secret transport and compression buffers, allowing remote SSH traffic to trigger CryptoVec growth through:

    • transport packet reads
    • zlib decompression output

These remote paths were removed in 0.58.0 when CryptoVec stopped being used for those buffers.

Under constrained memory conditions, historical russh versions prior to 0.58.0 can abort the process when remote compressed payload expansion causes allocation failure in CryptoVec. This was reproduced through the compression path and resulted in process termination in the Unix allocation/locking implementation after null pointer allocation failure.

For current affected releases, oversized local SSH agent frame lengths could trigger untrusted-input-driven buffer growth prior to validation.

No practical remote code execution, integrity or confidentiality impact has been demonstrated.

Fixed by validating CryptoVec growth operations and rejecting oversized SSH agent frame lengths before buffer allocation.