Type Confusion in Wasmtime - CVE-2021-39219
Published: September 17, 2021 / Updated: April 23, 2026
Wasmtime
Bytecode Alliance
Description
The vulnerability allows a local user to cause memory unsafety.
The vulnerability exists due to type confusion in Linker::func_* APIs when using a Linker created with one Engine to instantiate a module into a Store created with a different Engine. A local user can use mismatched Engine values across Linker and Store operations to cause memory unsafety.
Exploitation requires an embedding that uses at least two Engine instances and reuses a Linker across them.