Use-after-free in Wasmtime - CVE-2022-24791
Published: March 31, 2022 / Updated: April 23, 2026
Wasmtime
Bytecode Alliance
Description
The vulnerability allows a local user to execute arbitrary code.
The vulnerability exists due to use-after-free in Wasmtime's handling of externref values when running Wasm with epoch interruption enabled. A local user can execute crafted Wasm code that uses externref values to execute arbitrary code.
Only configurations with epoch interruption enabled and the Wasm reference types proposal enabled are vulnerable.