CVE-2023-27477

Published Mar 8, 2023 CVSS 3.1 · 3.1 Low EPSS < 1% KEV · Not listed
Description
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2023-1143 wasmtime vulnerable to miscompilation of `i8x16.select` with the same inputs on x86_64
Github GHSA Github GHSA GHSA-xm67-587q-r2vw wasmtime vulnerable to miscompilation of `i8x16.select` with the same inputs on x86_64
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Feb 25, 2025, 2:59 PM
Reserved
Mar 1, 2023, 12:00 AM
Status
Modified
Published
Mar 8, 2023, 9:15 PM
Modified
Jun 17, 2026, 5:45 AM