CVE-2026-140416: Abort in Wasmtime builds without the `gc` cargo feature
This is an entry in the RustSec database for the Wasmtime security advisory located at https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-rc4p-x33f-vpr2. For more information see the GitHub-hosted security advisory.
Other sources
Wasmtime 47.0.0 before 48.0.9, 49.0.0 before 49.0.6, and 50.0.0 before 50.0.2, when built without the gc Cargo feature, calls a panicking stub builtin from compiled code when checking a function subtype at runtime, and the panic cannot unwind. A malicious guest module can declare a non-final function type and perform callindirect, ref.test, ref.cast, or broncast against it to abort the host process.
— 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 exposed?
Deployments using Wasmtime 47.0.0 before 48.0.9, 49.0.0 before 49.0.6, or 50.0.0 before 50.0.2 are affected when Wasmtime is built without the gc Cargo feature.
What does an attacker need to trigger the issue?
An attacker needs to supply or execute a malicious guest WebAssembly module. The module must declare a non-final function type and use call_indirect, ref.test, ref.cast, or br_on_cast against that type.
What is the practical impact of successful exploitation?
The malicious guest module can cause the Wasmtime host process to abort. The provided data describes an availability impact only, with no confidentiality or integrity impact.
What should be done if patching cannot happen immediately?
Avoid executing untrusted guest modules that can declare non-final function types and invoke the listed runtime subtype-checking operations. Building with the gc Cargo feature is outside the affected build condition described in the advisory.