wasmtime is a fast and secure runtime for WebAssembly.
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- 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
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- 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
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: partial
- 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