CVE-2022-39393Bytecodealliance Wasmtime
High 8.6 No auth needed
Follow: this CVE · Bytecodealliance · Bytecodealliance Wasmtime We alert you by email or Slack (account required).
- Priority
- 67
- CVSS 3.1
- 8.6
- EPSS
- 1.0% probability of exploitation in 30 days · percentile 60
- Auth required
- No
- Published
- Nov 10, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
What happens
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`.
What to do
- Apply the vendor's security update for Wasmtime.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| crates.io | wasmtime |
≥ 2.0.0 < 2.0.2 |
2.0.2 |
cargo update -p wasmtime --precise 2.0.2 |
| crates.io | wasmtime |
< 1.0.2 |
1.0.2 |
cargo update -p wasmtime --precise 1.0.2 |
| crates.io | wasmtime |
≥ 0.0.0-0 < 1.0.2 |
1.0.2 |
cargo update -p wasmtime --precise 1.0.2 |
| crates.io | wasmtime |
≥ 2.0.0 < 2.0.2 |
2.0.2 |
cargo update -p wasmtime --precise 2.0.2 |
| crates.io | wasmtime |
≥ 0.0.0-0 < 1.0.2 |
1.0.2 |
cargo update -p wasmtime --precise 1.0.2 |
| crates.io | wasmtime |
≥ 2.0.0 < 2.0.2 |
2.0.2 |
cargo update -p wasmtime --precise 2.0.2 |
Per OSV / GitHub Advisories (GHSA-wh6w-3828-g9qf, RUSTSEC-2022-0075, RUSTSEC-2022-0098). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| bytecodealliance | wasmtime | < 1.0.2 |
| bytecodealliance | wasmtime | ≥ 2.0.0 < 2.0.2 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Third Party Advisory