Arbitrary Code Execution Affecting wasmtime package, versions <0.85.2


0.0
medium

Snyk CVSS

    Attack Complexity High
    Integrity High

    Threat Intelligence

    EPSS 0.07% (28th percentile)
Expand this section
NVD
7.5 high

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-RUST-WASMTIME-2958083
  • published 22 Jul 2022
  • disclosed 22 Jul 2022
  • credit Unknown

How to fix?

Upgrade wasmtime to version 0.85.2 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Code Execution. The translation rules for constants did not take into account whether sign or zero-extension should happen which resulted in an incorrect value being placed into a register when a division was encountered. The impact of this bug is that programs executing within the WebAssembly sandbox would not behave according to the WebAssembly specification. This means that it is hypothetically possible for execution within the sandbox to go awry and WebAssembly programs could produce unexpected results.