Skip to main content
← All vulnerabilities
CVE-2023-27477RUSTSEC-2023-0093GHSA-XM67-587Q-R2VW

wasmtime is a fast and secure runtime for WebAssembly.

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.0.1, 5.0.1, 6.0.1, 0.91.1, 0.92.1, and 1 more
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

wasmtime is a fast and secure runtime for WebAssembly. Wasmtime's code generation backend, Cranelift, has a bug on x86_64 platforms for the WebAssembly `i8x16.select` instruction which will produce the wrong results when the same operand is provided to the instruction and some of the selected indices are greater than 16. There is an off-by-one error in the calculation of the mask to the `pshufb` instruction which causes incorrect results to be returned if lanes are selected from the second vector. This codegen bug has been fixed in Wasmtiem 6.0.1, 5.0.1, and 4.0.1. Users are recommended to upgrade to these updated versions. If upgrading is not an option for you at this time, you can avoid this miscompilation by disabling the Wasm simd proposal. Additionally the bug is only present on x86_64 hosts. Other platforms such as AArch64 and s390x are not affected.

Timeline

  1. CVE published
  2. CISA SSVC assessment

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

  3. Record last updated

Affected versions

  • bytecodealliance wasmtime

    Version range not reported

  • wasmtimecrates.io

    From 0.0.0-0 · fixed in 4.0.1; From 5.0.0 · fixed in 5.0.1; From 6.0.0 · fixed in 6.0.1

  • wasmtimecrates.io

    From 1.0.0 · fixed in 4.0.1

  • wasmtimecrates.io

    From 5.0.0 · fixed in 5.0.1

  • wasmtimecrates.io

    From 6.0.0 · fixed in 6.0.1

  • cranelift-codegencrates.io

    From 0.88.0 · fixed in 0.91.1

  • cranelift-codegencrates.io

    From 0.92.0 · fixed in 0.92.1

  • cranelift-codegencrates.io

    From 0.93.0 · fixed in 0.93.1

References 5

docs.rs

GitHub · webassembly/simd

groups.google.com

GitHub · bytecodealliance/wasmtime