CVE-2026-115391: Wasmtime P3 Guest Stream Unbounded Host Buffering

The host copies the entire guest-supplied stream slice ($SRC.remaining()) into a host-owned allocation without clamping its length to a fixed chunk cap. The slice length is chosen entirely by the guest's stream-write call, so a malicious guest can force the host to allocate and buffer up to its whole linear memory per poll (bounded only by guest memory size)

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Rust
greprules fetch cve-2026-115391-wasmtime-p3-guest-stream-unbounded-host-buffering --engine opengrep

Description

The host copies the entire guest-supplied stream slice ($SRC.remaining()) into a host-owned allocation without clamping its length to a fixed chunk cap. The slice length is chosen entirely by the guest's stream-write call, so a malicious guest can force the host to allocate and buffer up to its whole linear memory per poll (bounded only by guest memory size)