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

Crate webrtc-dtls

Dependencies

(32 total, 25 outdated, 4 insecure)

CrateRequiredLatestStatus
 webrtc-util^0.5.40.17.2out of date
 byteorder^11.5.0up to date
 rand_core^0.6.30.10.1out of date
 elliptic-curve^0.12.10.14.1out of date
 hkdf~0.12.10.13.0out of date
 curve25519-dalek ⚠️^3.25.0.0insecure
 p256^0.11.10.14.0out of date
 rand^0.8.50.10.2out of date
 hmac^0.10.10.13.0out of date
 sha-1^0.9.10.10.1out of date
 sha2^0.9.10.11.0out of date
 aes^0.6.00.9.3out of date
 block-modes^0.7.00.9.1out of date
 aes-gcm^0.8.00.11.1out of date
 ccm^0.3.00.6.1out of date
 tokio^1.191.53.1up to date
 async-trait^0.1.560.1.92up to date
 x25519-dalek^2.0.0-pre.13.0.0out of date
 signature^1.2.23.0.0out of date
 oid-registry^0.6.00.8.1out of date
 x509-parser^0.13.20.18.1out of date
 der-parser^8.110.0.0out of date
 rcgen^0.9.20.14.10out of date
 ring ⚠️^0.16.190.17.14insecure
 webpki ⚠️^0.21.40.22.4insecure
 rustls ⚠️^0.19.00.23.45insecure
 bincode^1.33.0.0out of date
 serde^1.01.0.229up to date
 serde_derive^1.01.0.229up to date
 subtle^2.42.6.1up to date
 log^0.40.4.34up to date
 thiserror^1.02.0.20out of date

Dev dependencies

(4 total, 2 outdated)

CrateRequiredLatestStatus
 tokio-test^0.4.00.4.5up to date
 env_logger^0.9.00.11.11out of date
 chrono^0.4.190.4.45up to date
 clap^3.2.64.6.7out of date

Crate hub

Dependencies

(8 total, 6 outdated, 2 insecure)

CrateRequiredLatestStatus
 webrtc-util^0.5.40.17.2out of date
 tokio^1.191.53.1up to date
 x509-parser^0.13.00.18.1out of date
 rcgen^0.9.20.14.10out of date
 ring ⚠️^0.16.190.17.14insecure
 rustls ⚠️^0.19.00.23.45insecure
 log^0.40.4.34up to date
 thiserror^1.02.0.20out of date

Security Vulnerabilities

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.

curve25519-dalek: Timing variability in `curve25519-dalek`'s `Scalar29::sub`/`Scalar52::sub`

RUSTSEC-2024-0344

Timing variability of any kind is problematic when working with potentially secret values such as elliptic curve scalars, and such issues can potentially leak private keys and other secrets. Such a problem was recently discovered in curve25519-dalek.

The Scalar29::sub (32-bit) and Scalar52::sub (64-bit) functions contained usage of a mask value inside a loop where LLVM saw an opportunity to insert a branch instruction (jns on x86) to conditionally bypass this code section when the mask value is set to zero as can be seen in godbolt:

A similar problem was recently discovered in the Kyber reference implementation:

https://groups.google.com/a/list.nist.gov/g/pqc-forum/c/hqbtIGFKIpU/m/cnE3pbueBgAJ

As discussed on that thread, one portable solution, which is also used in this PR, is to introduce a volatile read as an optimization barrier, which prevents the compiler from optimizing it away.

The fix can be validated in godbolt here:

The problem was discovered and the solution independently verified by Alexander Wagner [email protected] and Lea Themint [email protected] using their DATA tool:

https://github.com/Fraunhofer-AISEC/DATA

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.