Memory Leak Vulnerabilities in Wasmtime Runtime for WebAssembly
CVE-2025-61670
1LOW
What is CVE-2025-61670?
The Wasmtime runtime for WebAssembly has introduced memory leak vulnerabilities in its C/C++ API, specifically affecting versions 37.0.0 and 37.0.1. This issue arises from a regression due to a refactor in the OwnedRooted<T>
type intended to simplify memory management but inadvertently left the C and C++ APIs susceptible to leaks when utilizing the anyref
or externref
types. As a result, certain bindings may not properly manage memory, leading to permanent leaks that are not resolved upon the destruction of the store. The problem has been addressed in version 37.0.2, which rectifies these flaws, ensuring that resources are correctly released and enhancing the stability of memory management in Wasmtime.
Affected Version(s)
wasmtime >= 37.0.0, < 37.0.2