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 aws-sigv4

Dependencies

(19 total, 3 outdated, 2 possibly insecure)

CrateRequiredLatestStatus
 aws-credential-types^1.2.121.2.12up to date
 aws-smithy-eventstream^0.60.190.60.19up to date
 aws-smithy-http^0.63.40.63.4up to date
 aws-smithy-runtime-api^1.11.41.11.4up to date
 aws-smithy-types^1.4.41.4.4up to date
 bytes ⚠️^1.10.01.11.1maybe insecure
 crypto-bigint^0.5.40.6.1out of date
 form_urlencoded^1.2.11.2.2up to date
 hex^0.4.30.4.3up to date
 hmac^0.120.12.1up to date
 http^0.2.121.4.0out of date
 p256^0.110.13.2out of date
 percent-encoding^2.3.12.3.2up to date
 ring ⚠️^0.17.50.17.14maybe insecure
 sha2^0.100.10.9up to date
 subtle^2.5.02.6.1up to date
 time^0.3.50.3.47up to date
 tracing^0.1.400.1.44up to date
 zeroize^1.7.01.8.2up to date

Dev dependencies

(13 total, 2 outdated, 2 possibly insecure)

CrateRequiredLatestStatus
 aws-credential-types^1.2.121.2.12up to date
 aws-smithy-runtime-api^1.11.41.11.4up to date
 bytes ⚠️^11.11.1maybe insecure
 criterion^0.50.8.2out of date
 hex-literal^0.4.11.1.0out of date
 httparse^1.10.11.10.1up to date
 pretty_assertions^1.31.4.1up to date
 proptest^1.21.10.0up to date
 ring ⚠️^0.17.50.17.14maybe insecure
 serde^1.0.1801.0.228up to date
 serde_derive^1.0.1801.0.228up to date
 serde_json^1.0.1041.0.149up to date
 time^0.3.50.3.47up 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.

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.