CVE-2026-140421: Panic when a component cancels a stream or future copy on the wrong end
This is an entry in the RustSec database for the Wasmtime security advisory located at https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-xrvr-8678-5wp8. For more information see the GitHub-hosted security advisory.
Other sources
Wasmtime 46.0.0 before 48.0.9, 49.0.0 before 49.0.6, and 50.0.0 before 50.0.2 does not verify the end type when cancelling a pending stream or future copy, as it records only that an end is busy. A malicious WebAssembly component can call stream.cancel-write, stream.cancel-read, future.cancel-write or future.cancel-read on the wrong end while a copy is pending, panicking the host via an out-of-bounds type lookup when the host has passed the stream or future between component instances in one store.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
rust/wasmtimeto a version that resolves this vulnerability.Fixed in 48.0.9 - Upgrade
Upgrade
rust/wasmtimeto a version that resolves this vulnerability.Fixed in 49.0.6 - Upgrade
Upgrade
rust/wasmtimeto a version that resolves this vulnerability.Fixed in 50.0.2
Event History
Frequently Asked Questions
Which deployments are realistically exposed to this issue?
Deployments are exposed when they run affected Wasmtime versions and pass a stream or future between WebAssembly component instances within the same store. The issue requires a pending stream or future copy operation.
What must an attacker be able to do to trigger the panic?
An attacker needs the ability to run a malicious WebAssembly component and invoke a stream.cancel-write, stream.cancel-read, future.cancel-write, or future.cancel-read operation on the wrong end while a copy is pending. Exploitation causes a host panic through an out-of-bounds type lookup.
Which versions should be updated?
Update Wasmtime 46.0.0 through 48.0.8 to 48.0.9 or later, 49.0.0 through 49.0.5 to 49.0.6 or later, or 50.0.0 through 50.0.1 to 50.0.2 or later.