Live threats

All CVEs / Bytecodealliance

CVE-2022-39393Bytecodealliance Wasmtime

High 8.6 No auth needed

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
Weakness (CWE)
CWE-226, CWE-212
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`.

Original NVD text.

What to do

  1. Apply the vendor's security update for Wasmtime.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
bytecodealliancewasmtime< 1.0.2
bytecodealliancewasmtime≥ 2.0.0 < 2.0.2

Official sources

References

Links published by the sources. Open them with care.