This project might be open to known security vulnerabilities, which can be prevented by tightening the version range of affected dependencies. Find detailed information at the bottom.

Crate webrtc

Dependencies

(37 total, 18 outdated, 4 possibly insecure)

CrateRequiredLatestStatus
 arc-swap^11.9.0up to date
 async-trait^0.10.1.89up to date
 bytes ⚠️^11.11.1maybe insecure
 cfg-if^11.0.4up to date
 webrtc-data^0.10.00.17.1out of date
 webrtc-dtls^0.11.00.12.0out of date
 hex^0.40.4.3up to date
 webrtc-ice^0.12.00.17.1out of date
 interceptor^0.13.00.17.1out of date
 lazy_static^1.41.5.0up to date
 log^0.40.4.29up to date
 webrtc-mdns^0.8.00.17.1out of date
 webrtc-media^0.9.00.17.1out of date
 pem^33.0.6up to date
 portable-atomic^1.61.13.1up to date
 rand^0.80.10.0out of date
 rcgen^0.130.14.7out of date
 regex^1.9.51.12.3up to date
 ring ⚠️^0.170.17.14maybe insecure
 rtcp^0.12.00.17.1out of date
 rtp^0.12.00.17.1out of date
 rustls ⚠️^0.23.100.23.37maybe insecure
 webrtc-sctp^0.11.00.17.1out of date
 sdp^0.7.00.17.1out of date
 serde^11.0.228up to date
 serde_json^11.0.149up to date
 sha2^0.100.10.9up to date
 smol_str^0.20.3.6out of date
 webrtc-srtp^0.14.00.17.1out of date
 stun^0.7.00.17.1out of date
 thiserror^12.0.18out of date
 time ⚠️^0.30.3.47maybe insecure
 tokio^1.32.01.50.0up to date
 turn^0.9.00.17.1out of date
 url^22.5.8up to date
 webrtc-util^0.10.00.17.1out of date
 waitgroup^0.10.1.2up to date

Dev dependencies

(2 total, all up-to-date)

CrateRequiredLatestStatus
 env_logger^0.11.30.11.9up to date
 tokio-test^0.40.4.5up to date

Security Vulnerabilities

rustls: rustls network-reachable panic in `Acceptor::accept`

RUSTSEC-2024-0399

A bug introduced in rustls 0.23.13 leads to a panic if the received TLS ClientHello is fragmented. Only servers that use rustls::server::Acceptor::accept() are affected.

Servers that use tokio-rustls's LazyConfigAcceptor API are affected.

Servers that use tokio-rustls's TlsAcceptor API are not affected.

Servers that use rustls-ffi's rustls_acceptor_accept API 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.

bytes: Integer overflow in `BytesMut::reserve`

RUSTSEC-2026-0007

In the unique reclaim path of BytesMut::reserve, the condition

if v_capacity >= new_cap + offset

uses an unchecked addition. When new_cap + offset overflows usize in release builds, this condition may incorrectly pass, causing self.cap to be set to a value that exceeds the actual allocated capacity. Subsequent APIs such as spare_capacity_mut() then trust this corrupted cap value and may create out-of-bounds slices, leading to UB.

This behavior is observable in release builds (integer overflow wraps), whereas debug builds panic due to overflow checks.

PoC

use bytes::*;

fn main() {
    let mut a = BytesMut::from(&b"hello world"[..]);
    let mut b = a.split_off(5);

    // Ensure b becomes the unique owner of the backing storage
    drop(a);

    // Trigger overflow in new_cap + offset inside reserve
    b.reserve(usize::MAX - 6);

    // This call relies on the corrupted cap and may cause UB & HBO
    b.put_u8(b'h');
}

Workarounds

Users of BytesMut::reserve are only affected if integer overflow checks are configured to wrap. When integer overflow is configured to panic, this issue does not apply.

time: Denial of Service via Stack Exhaustion

RUSTSEC-2026-0009

Impact

When user-provided input is provided to any type that parses with the RFC 2822 format, a denial of service attack via stack exhaustion is possible. The attack relies on formally deprecated and rarely-used features that are part of the RFC 2822 format used in a malicious manner. Ordinary, non-malicious input will never encounter this scenario.

Patches

A limit to the depth of recursion was added in v0.3.47. From this version, an error will be returned rather than exhausting the stack.

Workarounds

Limiting the length of user input is the simplest way to avoid stack exhaustion, as the amount of the stack consumed would be at most a factor of the length of the input.