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

(35 total, 5 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 arc-swap^11.9.1up to date
 async-trait^0.10.1.89up to date
 bytes ⚠️^11.11.1maybe insecure
 webrtc-data^0.17.10.17.1up to date
 dtls^0.17.10.17.1up to date
 hex^0.40.4.3up to date
 webrtc-ice^0.17.10.17.1up to date
 interceptor^0.17.10.17.1up to date
 lazy_static^1.41.5.0up to date
 log^0.40.4.30up to date
 webrtc-mdns^0.17.10.17.1up to date
 webrtc-media^0.17.10.17.1up to date
 pem^33.0.6up to date
 portable-atomic^1.61.13.1up to date
 rand^0.9.10.10.1out of date
 rcgen^0.130.14.8out of date
 regex^1.9.51.12.3up to date
 ring^0.17.140.17.14up to date
 rtcp^0.17.10.17.1up to date
 rtp^0.17.10.17.1up to date
 webrtc-sctp^0.17.10.17.1up to date
 sdp^0.17.10.17.1up to date
 serde^11.0.228up to date
 serde_json^11.0.150up to date
 sha2^0.100.11.0out of date
 smol_str^0.20.3.6out of date
 webrtc-srtp^0.17.10.17.1up to date
 stun^0.17.00.17.1up to date
 thiserror^12.0.18out of date
 tokio^1.32.01.52.3up to date
 turn^0.17.10.17.1up to date
 unicase^2.82.9.0up to date
 url^22.5.8up to date
 webrtc-util^0.17.10.17.1up to date
 waitgroup^0.10.1.2up to date

Dev dependencies

(1 total, all up-to-date)

CrateRequiredLatestStatus
 env_logger^0.11.30.11.10up to date

Security Vulnerabilities

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.