CVE-2023-27477

Summary

CVECVE-2023-27477
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2023-03-08 21:15:00 UTC
Updated2023-03-15 16:56:00 UTC
Descriptionwasmtime 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.

Risk And Classification

Problem Types: CWE-193

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Bytecodealliance Cranelift-codegen All All All All
Application Bytecodealliance Cranelift-codegen 0.92.0 All All All
Application Bytecodealliance Cranelift-codegen 0.93.0 All All All
Application Bytecodealliance Wasmtime All All All All
Application Bytecodealliance Wasmtime 5.0.0 All All All
Application Bytecodealliance Wasmtime 6.0.0 All All All

References

ReferenceSourceLinkTags
Config in wasmtime - Rust MISC docs.rs
Upcoming security release for Wasmtime MISC groups.google.com
Merge pull request from GHSA-xm67-587q-r2vw · bytecodealliance/wasmtime@5dc2bbc · GitHub MISC github.com
GitHub - WebAssembly/simd: Branch of the spec repo scoped to discussion of SIMD in WebAssembly MISC github.com
Miscompilation of `i8x16.select` with the same inputs on x86_64 · Advisory · bytecodealliance/wasmtime · GitHub MISC github.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 906925 Common Base Linux Mariner (CBL-Mariner) Security Update for rust (25857-1)
  • 996226 Rust (Rust) Security Update for cranelift-codegen (GHSA-xm67-587q-r2vw)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report