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 wasmtime

Dependencies

(51 total, 10 outdated, 2 possibly insecure)

CrateRequiredLatestStatus
 addr2line^0.25.10.26.0out of date
 anyhow^1.0.1001.0.101up to date
 async-trait^0.1.890.1.89up to date
 bitflags^2.9.42.10.0up to date
 bumpalo^3.11.03.19.1up to date
 bytes ⚠️^1.10.11.11.1maybe insecure
 cfg-if^1.01.0.4up to date
 encoding_rs^0.8.310.8.35up to date
 futures^0.3.310.3.31up to date
 fxprof-processed-profile^0.8.10.8.1up to date
 gimli^0.32.30.33.0out of date
 hashbrown ⚠️^0.150.16.1out of date
 indexmap^2.11.42.13.0up to date
 ittapi^0.4.00.5.0out of date
 libc^0.2.1770.2.181up to date
 log^0.4.280.4.29up to date
 mach2^0.4.20.6.0out of date
 memfd^0.6.50.6.5up to date
 object^0.37.30.38.1out of date
 once_cell^1.12.01.21.3up to date
 postcard^1.1.31.1.3up to date
 pulley-interpreter=41.0.341.0.3up to date
 rayon^1.5.31.11.0up to date
 rustix^1.0.81.1.3up to date
 semver^1.0.271.0.27up to date
 serde^1.0.2281.0.228up to date
 serde_derive^1.0.2281.0.228up to date
 serde_json^1.0.801.0.149up to date
 smallvec^1.15.11.15.1up to date
 target-lexicon^0.13.00.13.4up to date
 tempfile^3.23.03.25.0up to date
 wasm-compose^0.243.00.245.1out of date
 wasm-encoder^0.243.00.245.1out of date
 wasm-wave^0.243.00.245.1out of date
 wasmparser^0.243.00.245.1out of date
 wasmtime-internal-cache=41.0.341.0.3up to date
 wasmtime-internal-component-macro=41.0.341.0.3up to date
 wasmtime-internal-component-util=41.0.341.0.3up to date
 wasmtime-internal-cranelift=41.0.341.0.3up to date
 wasmtime-environ=41.0.341.0.3up to date
 wasmtime-internal-fiber=41.0.341.0.3up to date
 wasmtime-internal-jit-debug=41.0.341.0.3up to date
 wasmtime-internal-jit-icache-coherence=41.0.341.0.3up to date
 wasmtime-internal-math=41.0.341.0.3up to date
 wasmtime-internal-slab=41.0.341.0.3up to date
 wasmtime-internal-unwinder=41.0.341.0.3up to date
 wasmtime-internal-versioned-export-macros=41.0.341.0.3up to date
 wasmtime-internal-winch=41.0.341.0.3up to date
 wasmtime-internal-wmemcheck=41.0.341.0.3up to date
 wat^1.243.01.245.1up to date
 windows-sys^0.61.20.61.2up to date

Dev dependencies

(7 total, 1 outdated)

CrateRequiredLatestStatus
 cranelift-native^0.128.30.128.3up to date
 env_logger^0.11.50.11.9up to date
 libtest-mimic^0.8.10.8.1up to date
 proptest^1.0.01.10.0up to date
 rand^0.9.20.10.0out of date
 tempfile^3.23.03.25.0up to date
 tokio^1.48.01.49.0up to date

Security Vulnerabilities

hashbrown: Borsh serialization of HashMap is non-canonical

RUSTSEC-2024-0402

The borsh serialization of the HashMap did not follow the borsh specification. It potentially produced non-canonical encodings dependent on insertion order. It also did not perform canonicty checks on decoding.

This can result in consensus splits and cause equivalent objects to be considered distinct.

This was patched in 0.15.1.

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.