This project might be open to known security vulnerabilities, which can be prevented by tightening the version range of affected dependencies. Find detailed information at the bottom.

Crate russh

Dependencies

(28 total, 6 outdated, 3 possibly insecure)

CrateRequiredLatestStatus
 aes^0.80.8.4up to date
 aes-gcm^0.100.10.3up to date
 async-trait^0.10.1.88up to date
 bitflags^2.02.9.1up to date
 byteorder^1.31.5.0up to date
 chacha20^0.90.9.1up to date
 ctr^0.90.9.2up to date
 curve25519-dalek ⚠️^4.04.2.0maybe insecure
 digest^0.100.10.7up to date
 flate2^1.01.1.2up to date
 futures^0.30.3.31up to date
 generic-array^0.141.2.0out of date
 hex-literal^0.41.0.0out of date
 hmac^0.120.12.1up to date
 log^0.40.4.27up to date
 num-bigint^0.40.4.6up to date
 once_cell^1.131.21.3up to date
 openssl ⚠️^0.100.10.73maybe insecure
 poly1305^0.80.8.0up to date
 rand^0.80.9.1out of date
 russh-cryptovec^0.7.00.52.0out of date
 russh-keys^0.43.00.49.2out of date
 sha1^0.100.10.6up to date
 sha2^0.100.10.9up to date
 subtle^2.42.6.1up to date
 thiserror^1.02.0.12out of date
 tokio ⚠️^1.17.01.46.1maybe insecure
 tokio-util^0.70.7.15up to date

Dev dependencies

(10 total, 5 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 anyhow^1.01.0.98up to date
 clap^3.24.5.41out of date
 env_logger^0.100.11.8out of date
 rand^0.8.50.9.1out of date
 ratatui^0.26.00.29.0out of date
 russh-sftp^2.0.0-beta.22.1.1up to date
 shell-escape^0.10.1.5up to date
 termion^24.0.5out of date
 tokio ⚠️^1.17.01.46.1maybe insecure
 tokio-fd^0.30.3.0up to date

Security Vulnerabilities

tokio: reject_remote_clients Configuration corruption

RUSTSEC-2023-0001

On Windows, configuring a named pipe server with pipe_mode will force ServerOptions::reject_remote_clients as false.

This drops any intended explicit configuration for the reject_remote_clients that may have been set as true previously.

The default setting of reject_remote_clients is normally true meaning the default is also overridden as false.

Workarounds

Ensure that pipe_mode is set first after initializing a ServerOptions. For example:

let mut opts = ServerOptions::new();
opts.pipe_mode(PipeMode::Message);
opts.reject_remote_clients(true);

curve25519-dalek: Timing variability in `curve25519-dalek`'s `Scalar29::sub`/`Scalar52::sub`

RUSTSEC-2024-0344

Timing variability of any kind is problematic when working with potentially secret values such as elliptic curve scalars, and such issues can potentially leak private keys and other secrets. Such a problem was recently discovered in curve25519-dalek.

The Scalar29::sub (32-bit) and Scalar52::sub (64-bit) functions contained usage of a mask value inside a loop where LLVM saw an opportunity to insert a branch instruction (jns on x86) to conditionally bypass this code section when the mask value is set to zero as can be seen in godbolt:

A similar problem was recently discovered in the Kyber reference implementation:

https://groups.google.com/a/list.nist.gov/g/pqc-forum/c/hqbtIGFKIpU/m/cnE3pbueBgAJ

As discussed on that thread, one portable solution, which is also used in this PR, is to introduce a volatile read as an optimization barrier, which prevents the compiler from optimizing it away.

The fix can be validated in godbolt here:

The problem was discovered and the solution independently verified by Alexander Wagner [email protected] and Lea Themint [email protected] using their DATA tool:

https://github.com/Fraunhofer-AISEC/DATA

openssl: Use-After-Free in `Md::fetch` and `Cipher::fetch`

RUSTSEC-2025-0022

When a Some(...) value was passed to the properties argument of either of these functions, a use-after-free would result.

In practice this would nearly always result in OpenSSL treating the properties as an empty string (due to CString::drop's behavior).

The maintainers thank quitbug for reporting this vulnerability to us.