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 ssssh

Dependencies

(15 total, 5 outdated, 3 possibly insecure)

CrateRequiredLatestStatus
 futures^0.30.3.31up to date
 bytes^1.01.10.1up to date
 thiserror^1.02.0.12out of date
 ring ⚠️^0.160.17.14out of date
 log^0.40.4.27up to date
 getset^0.10.1.5up to date
 derive-new^0.50.7.0out of date
 derive_builder^0.100.20.2out of date
 linked-hash-map^0.50.5.6up to date
 base64^0.130.22.1out of date
 tokio-pipe^0.20.2.12up to date
 authorized_keys^1.0.01.0.0up to date
 tokio ⚠️^1.41.45.1maybe insecure
 tokio-stream^0.10.1.17up to date
 openssl ⚠️^0.100.10.73maybe insecure

Dev dependencies

(8 total, 4 outdated, 2 possibly insecure)

CrateRequiredLatestStatus
 env_logger^0.80.11.8out of date
 anyhow^1.01.0.98up to date
 ssh2^0.90.9.5up to date
 libssh2-sys^0.20.3.1out of date
 nix ⚠️^0.200.30.1out of date
 simple_logger^1.65.0.0out of date
 tokio-test^0.40.4.4up to date
 tokio ⚠️^1.41.45.1maybe insecure

Security Vulnerabilities

nix: Out-of-bounds write in nix::unistd::getgrouplist

RUSTSEC-2021-0119

On certain platforms, if a user has more than 16 groups, the nix::unistd::getgrouplist function will call the libc getgrouplist function with a length parameter greater than the size of the buffer it provides, resulting in an out-of-bounds write and memory corruption.

The libc getgrouplist function takes an in/out parameter ngroups specifying the size of the group buffer. When the buffer is too small to hold all of the requested user's group memberships, some libc implementations, including glibc and Solaris libc, will modify ngroups to indicate the actual number of groups for the user, in addition to returning an error. The version of nix::unistd::getgrouplist in nix 0.16.0 and up will resize the buffer to twice its size, but will not read or modify the ngroups variable. Thus, if the user has more than twice as many groups as the initial buffer size of 8, the next call to getgrouplist will then write past the end of the buffer.

The issue would require editing /etc/groups to exploit, which is usually only editable by the root user.

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);

ring: Some AES functions may panic when overflow checking is enabled.

RUSTSEC-2025-0009

ring::aead::quic::HeaderProtectionKey::new_mask() may panic when overflow checking is enabled. In the QUIC protocol, an attacker can induce this panic by sending a specially-crafted packet. Even unintentionally it is likely to occur in 1 out of every 2**32 packets sent and/or received.

On 64-bit targets operations using ring::aead::{AES_128_GCM, AES_256_GCM} may panic when overflow checking is enabled, when encrypting/decrypting approximately 68,719,476,700 bytes (about 64 gigabytes) of data in a single chunk. Protocols like TLS and SSH are not affected by this because those protocols break large amounts of data into small chunks. Similarly, most applications will not attempt to encrypt/decrypt 64GB of data in one chunk.

Overflow checking is not enabled in release mode by default, but RUSTFLAGS="-C overflow-checks" or overflow-checks = true in the Cargo.toml profile can override this. Overflow checking is usually enabled by default in debug mode.

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.