Skip to main content
← All vulnerabilities
CVE-2022-39393GHSA-WH6W-3828-G9QFRUSTSEC-2022-0075RUSTSEC-2022-0098

Wasmtime vulnerable to data leakage between instances in the pooling allocator

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.0.2, 1.0.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • bytecodealliance wasmtime

    From 2.0.0 · fixed in 2.0.2; fixed in 1.0.2

  • wasmtimecrates.io

    From 2.0.0 · fixed in 2.0.2

  • wasmtimecrates.io

    fixed in 1.0.2

  • wasmtimecrates.io

    From 0.0.0-0 · fixed in 1.0.2; From 2.0.0 · fixed in 2.0.2

References 2

GitHub · bytecodealliance/wasmtime