Arbitrary Code Execution Affecting wasmtime package, versions <0.85.2
Threat Intelligence
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
Introduced: 22 Jul 2022
CVE-2022-31169 Open this link in a new tabHow 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.