Incorrect calculation in Wasmtime - CVE-2022-31104

 

Incorrect calculation in Wasmtime - CVE-2022-31104

Published: June 28, 2022 / Updated: April 23, 2026


Vulnerability identifier: #VU127028
CSH Severity: Medium
CVSSv4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2022-31104
CWE-ID: CWE-682
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vulnerable software:
Wasmtime
Software vendor:
Bytecode Alliance

Description

The vulnerability allows a remote attacker to cause incorrect program execution within a guest program.

The vulnerability exists due to improper instruction lowering in Cranelift swizzle lowering when executing the i8x16.swizzle WebAssembly instruction on x86_64 hosts. A remote attacker can execute a specially crafted WebAssembly program to cause incorrect program execution within a guest program.

Only x86_64 hosts with WebAssembly SIMD support are affected.


Remediation

Install security update from vendor's website.

External links