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

Crate ssh-cipher

Dependencies

(12 total, all up-to-date)

CrateRequiredLatestStatus
 cipher^0.5.0-rc.60.5.0up to date
 ssh-encoding^0.3.0-rc.70.2.0up to date
 aead^0.6.0-rc.100.5.2up to date
 aes^0.9.0-rc.40.8.4up to date
 aes-gcm^0.11.0-rc.30.10.3up to date
 cbc^0.2.0-rc.30.1.2up to date
 ctr^0.10.0-rc.30.9.2up to date
 chacha20^0.10.0-rc.100.10.0up to date
 des^0.9.0-rc.30.8.1up to date
 poly1305^0.9.0-rc.60.8.0up to date
 subtle^22.6.1up to date
 zeroize^11.8.2up to date

Dev dependencies

(1 total, all up-to-date)

CrateRequiredLatestStatus
 hex-literal^11.1.0up to date

Crate ssh-derive

Dependencies

(3 total, all up-to-date)

CrateRequiredLatestStatus
 proc-macro2^11.0.106up to date
 quote^11.0.44up to date
 syn^22.0.117up to date

Crate ssh-encoding

Dependencies

(8 total, 1 possibly insecure)

CrateRequiredLatestStatus
 base64ct^1.81.8.3up to date
 crypto-bigint^0.7.0-rc.250.6.1up to date
 bytes ⚠️^11.11.1maybe insecure
 digest^0.11.0-rc.110.11.0up to date
 pem-rfc7468^11.0.0up to date
 ssh-derive^0.3.0-rc.0N/Aup to date
 subtle^22.6.1up to date
 zeroize^11.8.2up to date

Dev dependencies

(1 total, all up-to-date)

CrateRequiredLatestStatus
 hex-literal^11.1.0up to date

Crate ssh-key

Dependencies

(20 total, 1 insecure)

CrateRequiredLatestStatus
 ssh-cipher^0.3.0-rc.70.2.0up to date
 ssh-encoding^0.3.0-rc.70.2.0up to date
 sha2^0.11.0-rc.50.10.9up to date
 signature^3.0.0-rc.102.2.0up to date
 subtle^22.6.1up to date
 zeroize^11.8.2up to date
 argon2^0.6.0-rc.70.5.3up to date
 bcrypt-pbkdf^0.11.0-rc.60.10.0up to date
 dsa^0.7.0-rc.130.6.3up to date
 ed25519-dalek=3.0.0-pre.62.2.0up to date
 hex^0.40.4.3up to date
 hmac^0.13.0-rc.50.12.1up to date
 p256^0.14.0-rc.70.13.2up to date
 p384^0.14.0-rc.70.13.1up to date
 p521^0.14.0-rc.70.13.3up to date
 rand_core^0.100.10.0up to date
 rsa ⚠️^0.10.0-rc.150.9.10insecure
 sec1^0.8.0-rc.130.7.3up to date
 serde^1.0.161.0.228up to date
 sha1^0.11.0-rc.50.10.6up to date

Dev dependencies

(2 total, all up-to-date)

CrateRequiredLatestStatus
 hex-literal^11.1.0up to date
 chacha20^0.10.0-rc.100.10.0up to date

Crate ssh-protocol

Dependencies

(3 total, all up-to-date)

CrateRequiredLatestStatus
 ssh-cipher^0.3.0-rc.70.2.0up to date
 ssh-encoding^0.3.0-rc.70.2.0up to date
 ssh-key^0.7.0-rc.80.6.7up to date

Security Vulnerabilities

rsa: Marvin Attack: potential key recovery through timing sidechannels

RUSTSEC-2023-0071

Impact

Due to a non-constant-time implementation, information about the private key is leaked through timing information which is observable over the network. An attacker may be able to use that information to recover the key.

Patches

No patch is yet available, however work is underway to migrate to a fully constant-time implementation.

Workarounds

The only currently available workaround is to avoid using the rsa crate in settings where attackers are able to observe timing information, e.g. local use on a non-compromised computer is fine.

References

This vulnerability was discovered as part of the "Marvin Attack", which revealed several implementations of RSA including OpenSSL had not properly mitigated timing sidechannel attacks.

bytes: Integer overflow in `BytesMut::reserve`

RUSTSEC-2026-0007

In the unique reclaim path of BytesMut::reserve, the condition

if v_capacity >= new_cap + offset

uses an unchecked addition. When new_cap + offset overflows usize in release builds, this condition may incorrectly pass, causing self.cap to be set to a value that exceeds the actual allocated capacity. Subsequent APIs such as spare_capacity_mut() then trust this corrupted cap value and may create out-of-bounds slices, leading to UB.

This behavior is observable in release builds (integer overflow wraps), whereas debug builds panic due to overflow checks.

PoC

use bytes::*;

fn main() {
    let mut a = BytesMut::from(&b"hello world"[..]);
    let mut b = a.split_off(5);

    // Ensure b becomes the unique owner of the backing storage
    drop(a);

    // Trigger overflow in new_cap + offset inside reserve
    b.reserve(usize::MAX - 6);

    // This call relies on the corrupted cap and may cause UB & HBO
    b.put_u8(b'h');
}

Workarounds

Users of BytesMut::reserve are only affected if integer overflow checks are configured to wrap. When integer overflow is configured to panic, this issue does not apply.