#VU125752 Use-after-free in Wasmtime - CVE-2022-31146

 

#VU125752 Use-after-free in Wasmtime - CVE-2022-31146

Published: April 10, 2026


Vulnerability identifier: #VU125752
Vulnerability risk: Low
CVSSv4.0: CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2022-31146
CWE-ID: CWE-416
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vulnerable software:
Wasmtime
Software vendor:
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.


Remediation

Install security update from vendor's website.

External links