Vulnerabilities · 2022 · Bytecodealliance
CVE-2022-39393
Bytecodealliance Wasmtime vulnerability
Wasmtime is a standalone runtime for WebAssembly. Prior to versions 2.0.2 and 1.0.2, there is a bug in Wasmtime's implementation of its pooling instance allocator where when a linear memory is reused for another instance the initial heap snapshot of the prior instance can be visible, erroneously to the next instance. This bug has been patched and users should upgrade to Wasmtime 2.0.2 and 1.0.2. Other mitigations include disabling the pooling allocator and disabling the `memory-init-cow`.
Affected products
Wasmtime. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Bytecodealliance Wasmtime runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/bytecodealliance/wasmtime/commit/2614f2e9d2d36805ead8a8da0fa0c6e0d9e428a0 · Patch
- github.com/bytecodealliance/wasmtime/security/advisories/GHSA-wh6w-3828-g9qf · Third Party Advisory
- github.com/bytecodealliance/wasmtime/commit/3535acbf3be032ef1ba0b469b8ab92538a8a18a6
- groups.google.com/a/bytecodealliance.org/g/sec-announce/c/c1HBDDJwNPA
- nvd.nist.gov/vuln/detail/CVE-2022-39393
- rustsec.org/advisories/RUSTSEC-2022-0075.html
- rustsec.org/advisories/RUSTSEC-2022-0098.html
- github.com/advisories/GHSA-wh6w-3828-g9qf
- nvd.nist.gov/vuln/detail/CVE-2022-39393
- cve.org/CVERecord?id=CVE-2022-39393
More vulnerabilities in Bytecodealliance products
CVE-2025-64713CVE-2025-64704CVE-2025-62711CVE-2025-61670CVE-2025-58749CVE-2025-54126CVE-2025-53901CVE-2025-43853All 34
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.