CVE-2022-39393
HIGH 8.6CVSS 3.1Wasmtime may have data leakage between instances in the pooling allocator
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.
- Published
- 10 Nov 2022
- Last modified
- 12 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-212CWE-226
- Also known as
- GHSA-wh6w-3828-g9qfRUSTSEC-2022-0075RUSTSEC-2022-0098
- Sources
- NVDJSONOSV GHSA-wh6w-3828-g9qfJSONOSV RUSTSEC-2022-0075JSONOSV RUSTSEC-2022-0098JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N |
| OSV | RustSec | CVSS 3.1 | HIGH 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | bytecodealliance | wasmtimecpe:2.3:a:bytecodealliance:wasmtime:*:*:*:*:*:rust:*:* |
< 1.0.2 | 1.0.2 |
| NVD | bytecodealliance | wasmtimecpe:2.3:a:bytecodealliance:wasmtime:*:*:*:*:*:rust:*:* |
>= 2.0.0, < 2.0.2 | 2.0.2 |
| OSV | crates.io | wasmtime | >= 2.0.0, < 2.0.2 | 2.0.2 |
| OSV | crates.io | wasmtime | < 1.0.2 | 1.0.2 |
| OSV | crates.io | wasmtime | >= 0.0.0-0, < 1.0.2; >= 2.0.0, < 2.0.2 | 1.0.2, 2.0.2 |
References
- https://github.com/bytecodealliance/wasmtime/commit/2614f2e9d2d36805ead8a8da0fa0c6e0d9e428a0 · Patch, Third Party Advisory, WEB
- https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-wh6w-3828-g9qf · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-39393 · ADVISORY
- https://github.com/bytecodealliance/wasmtime/commit/3535acbf3be032ef1ba0b469b8ab92538a8a18a6 · WEB
- https://github.com/bytecodealliance/wasmtime · PACKAGE
- https://groups.google.com/a/bytecodealliance.org/g/sec-announce/c/c1HBDDJwNPA · WEB
- https://rustsec.org/advisories/RUSTSEC-2022-0075.html · WEB, ADVISORY
- https://rustsec.org/advisories/RUSTSEC-2022-0098.html · WEB, ADVISORY
- https://crates.io/crates/wasmtime · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 10 Nov 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 10 Nov 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 5 Nov 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 10 Nov 2022)