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

Crate trust-dns-proto

Dependencies

(35 total, 12 outdated, 4 insecure)

CrateRequiredLatestStatus
 async-trait^0.1.430.1.92up to date
 backtrace^0.3.500.3.76up to date
 bytes^11.12.1up to date
 cfg-if^11.0.5up to date
 data-encoding^2.2.02.11.1up to date
 enum-as-inner^0.40.7.0out of date
 futures-channel^0.3.50.3.34up to date
 futures-io^0.3.50.3.34up to date
 futures-util^0.3.50.3.34up to date
 h2 ⚠️^0.3.00.4.19insecure
 http^0.21.5.0out of date
 idna ⚠️^0.2.31.1.0insecure
 ipnet^2.3.02.12.2up to date
 js-sys^0.3.440.3.106up to date
 lazy_static^1.2.01.5.0up to date
 log^0.40.4.34up to date
 native-tls^0.20.2.18up to date
 openssl^0.100.10.81up to date
 rand^0.80.10.3out of date
 ring ⚠️^0.160.17.14insecure
 rustls ⚠️^0.20.00.23.45insecure
 rustls-pemfile^0.3.02.2.0out of date
 serde^1.01.0.229up to date
 smallvec^1.61.16.2up to date
 socket2^0.4.00.6.5out of date
 thiserror^1.0.202.0.21out of date
 tinyvec^1.1.11.13.3up to date
 tokio^1.01.53.1up to date
 tokio-native-tls^0.3.00.3.1up to date
 tokio-openssl^0.6.00.6.5up to date
 tokio-rustls^0.23.00.26.5out of date
 url^2.1.02.5.8up to date
 wasm-bindgen^0.2.580.2.129up to date
 webpki^0.22.00.22.4up to date
 webpki-roots^0.22.11.0.9out of date

Dev dependencies

(4 total, 1 outdated)

CrateRequiredLatestStatus
 env_logger^0.90.11.11out of date
 futures-executor^0.3.50.3.34up to date
 openssl^0.100.10.81up to date
 tokio^1.01.53.1up to date

Security Vulnerabilities

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.

idna: `idna` accepts Punycode labels that do not produce any non-ASCII when decoded

RUSTSEC-2024-0421

idna 0.5.0 and earlier accepts Punycode labels that do not produce any non-ASCII output, which means that either ASCII labels or the empty root label can be masked such that they appear unequal without IDNA processing or when processed with a different implementation and equal when processed with idna 0.5.0 or earlier.

Concretely, example.org and xn--example-.org become equal after processing by idna 0.5.0 or earlier. Also, example.org.xn-- and example.org. become equal after processing by idna 0.5.0 or earlier.

In applications using idna (but not in idna itself) this may be able to lead to privilege escalation when host name comparison is part of a privilege check and the behavior is combined with a client that resolves domains with such labels instead of treating them as errors that preclude DNS resolution / URL fetching and with the attacker managing to introduce a DNS entry (and TLS certificate) for an xn---masked name that turns into the name of the target when processed by idna 0.5.0 or earlier.

Remedy

Upgrade to idna 1.0.3 or later, if depending on idna directly, or to url 2.5.4 or later, if depending on idna via url. (This issue was fixed in idna 1.0.0, but versions earlier than 1.0.3 are not recommended for other reasons.)

When upgrading, please take a moment to read about alternative Unicode back ends for idna.

If you are using Rust earlier than 1.81 in combination with SQLx 0.8.2 or earlier, please also read an issue about combining them with url 2.5.4 and idna 1.0.3.

Additional information

This issue resulted from idna 0.5.0 and earlier implementing the UTS 46 specification literally on this point and the specification having this bug. The specification bug has been fixed in revision 33 of UTS 46.

Acknowledgements

Thanks to kageshiron for recognizing the security implications of this behavior.

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.

h2: h2 unbounded empty DATA frames

RUSTSEC-2026-0258

The h2 crate, used internally by hyper, had a flaw that would accept and queue empty DATA frames without limit. If streams were not actively drained, this could lead to unbounded memory usage, or a panic if the length overflows.

Low severity.

Patched in v0.4.16.