High severityNVD Advisory· Published Nov 10, 2022· Updated May 2, 2025
Wasmtime vulnerable to data leakage between instances in the pooling allocator
CVE-2022-39393
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
wasmtimecrates.io | >= 2.0.0, < 2.0.2 | 2.0.2 |
wasmtimecrates.io | < 1.0.2 | 1.0.2 |
Affected products
2- Range: >= 2.0.0, < 2.0.2
Patches
Vulnerability mechanics
References
8- github.com/advisories/GHSA-wh6w-3828-g9qfghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2022-39393ghsaADVISORY
- github.com/bytecodealliance/wasmtime/commit/2614f2e9d2d36805ead8a8da0fa0c6e0d9e428a0ghsax_refsource_MISCWEB
- github.com/bytecodealliance/wasmtime/commit/3535acbf3be032ef1ba0b469b8ab92538a8a18a6ghsaWEB
- github.com/bytecodealliance/wasmtime/security/advisories/GHSA-wh6w-3828-g9qfghsax_refsource_CONFIRMWEB
- groups.google.com/a/bytecodealliance.org/g/sec-announce/c/c1HBDDJwNPAghsaWEB
- rustsec.org/advisories/RUSTSEC-2022-0075.htmlghsaWEB
- rustsec.org/advisories/RUSTSEC-2022-0098.htmlghsaWEB
News mentions
0No linked articles in our index yet.