#VU125752 Use-after-free in Wasmtime - CVE-2022-31146
Published: April 10, 2026
Wasmtime
Bytecode Alliance
Description
The vulnerability allows a remote user to trigger a use-after-free.
The vulnerability exists due to use-after-free in Cranelift code generator when processing WebAssembly modules using reference types and garbage collection occurs during active Wasm stack frames. A remote user can supply a WebAssembly module that uses non-null externref values and triggers garbage collection to trigger a use-after-free.
Exploitation requires a Wasmtime host to pass a non-null externref value to a WebAssembly module.