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 rustls

Dependencies

(12 total, 2 possibly insecure)

CrateRequiredLatestStatus
 aws-lc-rs^1.121.12.6up to date
 brotli^77.0.0up to date
 brotli-decompressor^4.0.14.0.2up to date
 hashbrown ⚠️^0.150.15.2maybe insecure
 log^0.4.80.4.26up to date
 once_cell^1.161.21.1up to date
 rustls-pki-types^1.111.11.0up to date
 ring ⚠️^0.170.17.14maybe insecure
 subtle^2.5.02.6.1up to date
 rustls-webpki^0.1030.103.0up to date
 zeroize^1.71.8.1up to date
 zlib-rs^0.40.4.2up to date

Dev dependencies

(13 total, all up-to-date)

CrateRequiredLatestStatus
 base64^0.220.22.1up to date
 bencher^0.1.50.1.5up to date
 env_logger^0.110.11.7up to date
 hex^0.40.4.3up to date
 log^0.4.80.4.26up to date
 macro_rules_attribute^0.20.2.0up to date
 num-bigint^0.4.40.4.6up to date
 rcgen^0.130.13.2up to date
 serde^11.0.219up to date
 serde_json^11.0.140up to date
 time^0.3.60.3.40up to date
 webpki-roots^0.260.26.8up to date
 x509-parser^0.170.17.0up to date

Security Vulnerabilities

hashbrown: Borsh serialization of HashMap is non-canonical

RUSTSEC-2024-0402

The borsh serialization of the HashMap did not follow the borsh specification. It potentially produced non-canonical encodings dependent on insertion order. It also did not perform canonicty checks on decoding.

This can result in consensus splits and cause equivalent objects to be considered distinct.

This was patched in 0.15.1.

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.