cvedb.io
CVE-2022-24791
HIGH · CVSS 8.1
EPSS exploitation probability: 0%
Published 2022-03-31T23:15:08.063 · Last modified 2026-06-17T04:32:31.643

Summary

Wasmtime is a standalone JIT-style runtime for WebAssembly, using Cranelift. There is a use after free vulnerability in Wasmtime when both running Wasm that uses externrefs and enabling epoch interruption in Wasmtime. If you are not explicitly enabling epoch interruption (it is disabled by default) then you are not affected. If you are explicitly disabling the Wasm reference types proposal (it is enabled by default) then you are also not affected. The use after free is caused by Cranelift failing to emit stack maps when there are safepoints inside cold blocks. Cold blocks occur when epoch interruption is enabled. Cold blocks are emitted at the end of compiled functions, and change the order blocks are emitted versus defined. This reordering accidentally caused Cranelift to skip emitting so

Affected products

bytecodealliance — wasmtime

Does this affect you?

Add your gear to cvedb and we'll alert you only when bytecodealliance ships something exploited.

Check my exposure →

References

This product uses data from the NVD API but is not endorsed or certified by the NVD. Informational only; not professional security advice.