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

Crate trust-dns-client

Dependencies

(17 total, 9 outdated, 4 insecure)

CrateRequiredLatestStatus
 cfg-if^11.0.5up to date
 chrono^0.40.4.45up to date
 data-encoding^2.2.02.11.1up to date
 futures^0.3.40.3.34up to date
 lazy_static^1.01.5.0up to date
 log^0.40.4.34up to date
 openssl^0.100.10.81up to date
 radix_trie^0.1.60.3.0out of date
 rand^0.70.10.2out of date
 ring ⚠️^0.160.17.14insecure
 rustls ⚠️^0.170.23.45insecure
 serde^1.01.0.229up to date
 thiserror^1.0.142.0.20out of date
 tokio ⚠️^0.2.161.53.1insecure
 trust-dns-https^0.19.70.21.1out of date
 trust-dns-proto^0.19.70.23.2out of date
 webpki ⚠️^0.210.22.4insecure

Dev dependencies

(2 total, all up-to-date)

CrateRequiredLatestStatus
 futures^0.3.40.3.34up to date
 openssl^0.100.10.81up to date

Security Vulnerabilities

tokio: Data race when sending and receiving after closing a `oneshot` channel

RUSTSEC-2021-0124

If a tokio::sync::oneshot channel is closed (via the oneshot::Receiver::close method), a data race may occur if the oneshot::Sender::send method is called while the corresponding oneshot::Receiver is awaited or calling try_recv.

When these methods are called concurrently on a closed channel, the two halves of the channel can concurrently access a shared memory location, resulting in a data race. This has been observed to cause memory corruption.

Note that the race only occurs when both halves of the channel are used after the Receiver half has called close. Code where close is not used, or where the Receiver is not awaited and try_recv is not called after calling close, is not affected.

See tokio#4225 for more details.

webpki: webpki: CPU denial of service in certificate path building

RUSTSEC-2023-0052

When this crate is given a pathological certificate chain to validate, it will spend CPU time exponential with the number of candidate certificates at each step of path building.

Both TLS clients and TLS servers that accept client certificate are affected.

This was previously reported in https://github.com/briansmith/webpki/issues/69 and re-reported recently by Luke Malinowski.

webpki 0.22.1 included a partial fix and webpki 0.22.2 added further fixes.

rustls: `rustls::ConnectionCommon::complete_io` could fall into an infinite loop based on network input

RUSTSEC-2024-0336

If a close_notify alert is received during a handshake, complete_io does not terminate.

Callers which do not call complete_io are not affected.

rustls-tokio and rustls-ffi do not call complete_io and are not affected.

rustls::Stream and rustls::StreamOwned types use complete_io and are affected.

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.