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

Crate trust-dns-proto

Dependencies

(23 total, 6 outdated, 2 insecure)

CrateRequiredLatestStatus
 async-trait^0.1.360.1.92up to date
 backtrace^0.3.500.3.76up to date
 cfg-if^11.0.5up to date
 data-encoding^2.2.02.11.1up to date
 enum-as-inner^0.30.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
 idna ⚠️^0.2.01.1.0insecure
 ipnet^2.3.02.12.2up to date
 js-sys^0.3.440.3.105up to date
 lazy_static^1.01.5.0up to date
 log^0.40.4.34up to date
 openssl^0.100.10.81up to date
 rand^0.80.10.3out of date
 ring ⚠️^0.160.17.14insecure
 serde^1.01.0.229up to date
 smallvec^1.21.16.1up to date
 socket2^0.3.160.6.5out of date
 thiserror^1.0.202.0.20out of date
 tokio^1.01.53.1up to date
 url^2.1.02.5.8up to date
 wasm-bindgen^0.2.580.2.128up to date

Dev dependencies

(3 total, 1 outdated)

CrateRequiredLatestStatus
 env_logger^0.80.11.11out of date
 futures-executor^0.3.50.3.34up to date
 tokio^1.01.53.1up to date

Security Vulnerabilities

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.