CVE-2026-140419: Stale GC heap base pointer in compiled code lets a Wasm guest abort the host process
This is an entry in the RustSec database for the Wasmtime security advisory located at https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-43j2-gcp4-m22g. 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 does not set needsgcheap for collector-agnostic GC operations such as ref.test, so compiled code can reuse a stale null GC heap base pointer. A Wasm guest that tests or downcasts GC references returned by an imported host function can trigger loads in low host memory, aborting 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 to this issue?
Deployments using Wasmtime versions 47.0.0 through 48.0.8, 49.0.0 through 49.0.5, or 50.0.0 through 50.0.1 are affected. Exploitation requires execution of a Wasm guest that uses GC reference tests or downcasts on references returned by an imported host function.
What does an attacker need to cause an impact?
An attacker needs the ability to run a crafted Wasm guest in the host process. The guest must be able to invoke an imported host function that returns GC references, then test or downcast those references.
What is the practical impact of successful exploitation?
The crafted guest can cause compiled code to load from low host memory using a stale null GC heap base pointer. This aborts the host process, resulting in denial of service.
How can I determine whether my environment is at risk?
Check the deployed Wasmtime version and whether untrusted or attacker-controlled Wasm guests can run. Risk is relevant where guests can receive GC references from imported host functions and perform GC reference tests or downcasts.