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

Crate webrtc-dtls

Dependencies

(29 total, 23 outdated, 2 insecure)

CrateRequiredLatestStatus
 aes^0.80.9.4out of date
 aes-gcm^0.100.11.1out of date
 async-trait^0.10.1.92up to date
 bincode^13.0.0out of date
 byteorder^11.5.0up to date
 cbc^0.10.2.1out of date
 ccm^0.50.6.1out of date
 der-parser^8.110.0.0out of date
 hkdf^0.120.13.0out of date
 hmac^0.120.13.0out of date
 log^0.40.4.35up to date
 p256^0.130.14.0out of date
 p384^0.130.14.0out of date
 pem^34.0.0out of date
 rand^0.80.10.4out of date
 rand_core^0.60.10.1out of date
 rcgen^0.110.14.10out of date
 ring ⚠️^0.16.190.17.14insecure
 rustls ⚠️^0.210.23.46insecure
 sec1^0.70.8.1out of date
 serde^11.0.229up to date
 sha1^0.100.11.0out of date
 sha2^0.100.11.2out of date
 subtle^22.6.1up to date
 thiserror^12.0.21out of date
 tokio^1.32.01.54.1up to date
 webrtc-util^0.80.17.3out of date
 x25519-dalek^23.0.0out of date
 x509-parser^0.150.18.1out of date

Dev dependencies

(4 total, 2 outdated)

CrateRequiredLatestStatus
 chrono^0.4.280.4.45up to date
 clap^34.6.10out of date
 env_logger^0.100.11.12out of date
 tokio-test^0.40.4.6up to date

Security Vulnerabilities

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.

rustls: `Debug` impls for client session values expose TLS secrets

RUSTSEC-2026-0346

The Debug implementations of Tls12ClientSessionValue and Tls13ClientSessionValue were derived, and so included the TLS 1.2 master secret or TLS 1.3 resumption PSK in their output.

Custom ClientSessionStore implementations that format these values with Debug (for example, when logging) could disclose these secrets to readers of the logs. This conflicts with rustls's key-material redaction policy.

Ordinary connection and built-in session cache Debug output is redacted and is not affected.

rustls: Unauthenticated ServerHello can downgrade later connections to classical key exchange

RUSTSEC-2026-0349

The client recorded the server-selected key exchange group for each server name when processing the ServerHello, before the server was authenticated. This record is used to predict which key share to send in future ClientHellos to that server name.

A network attacker can answer one connection attempt with a ServerHello selecting X25519, and then close the connection. Later ClientHellos for that name carry only an X25519 key share, while supported_groups still lists X25519MLKEM768 first. If the genuine server accepts that share rather than sending a HelloRetryRequest for its preferred hybrid group, the handshake completes with classical-only key exchange and no error. This persists for as long as the entry stays in the client's session store.

The impact is loss of post-quantum confidentiality for affected connections ("harvest now, decrypt later"). There is no key compromise and no authentication bypass.

The following are not affected:

  • connections to servers which send a HelloRetryRequest for their preferred group,
  • clients with resumption disabled (as nothing is stored), and
  • other server names.

This behaviour is discussed in draft-ietf-tls-key-share-prediction, so the practical impact depends largely on server policy.