JLSEC-2026-2445: Wasmtime: Panic lowering a host-created component model stream into a guest that expects a different payload type
Summary
Wasmtime may panic when the host lowers a component model stream or future into a guest, if the host created that stream or future with one payload type and the guest expects a different one. This can happen when an embedder creates a stream or future, passes it through a guest, receives it back under a type-erased type such as StreamAny or FutureAny, and then passes it to a guest function with a different payload type.
GHSA-63h4-6cx9-pjfj is a related advisory also fixing issues within this area, and this advisory is being issued for portions of Wasmtime that were not fixed as part of that advisory.
Impact
This affects embedders that do all of the following:
1. Create streams or futures on the host with StreamReader::new or FutureReader::new 2. Pass them to guest code and receive them back as StreamAny, FutureAny, Val::Stream/Val::Future, or a typed reader whose payload is one of these. 3. Pass them on to a guest function whose stream or future payload type differs from the type the host created them with.
A guest can cause the mismatch in step 3 when it controls the types of the functions it exports or of the values it returns. In that case a malicious guest can make the host panic, a denial of service. Embedders that only use statically typed StreamReader<T>/FutureReader<T> with concrete payload types throughout, or that never pass streams or futures they created through a guest and back, are not affected.
Affected Software
Event History
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
Which deployments are actually exposed to this issue?
Only embedders that create component-model streams or futures on the host, pass them into guest code, receive them back through a type-erased or equivalent wrapper, and then pass them to another guest function with a different payload type are affected. Deployments that do not perform this sequence are not described as affected.
What would an attacker need to do to trigger the panic?
The attacker would need influence over the payload types of guest-exported functions or returned values, allowing a stream or future originally created with one host payload type to be forwarded to a guest function expecting a different type. Exploitation also requires the affected host-to-guest round-trip and forwarding behavior.
What is the impact if the issue is triggered?
Wasmtime may panic while lowering the stream or future into the guest. The provided impact information identifies availability as affected and does not identify confidentiality or integrity impact.