{"id":"CVE-2023-27477","published":"2023-03-08T00:00:00Z","modified":"2025-02-25T14:59:59Z","title":"wasmtime is a fast and secure runtime for WebAssembly","vendor":"bytecodealliance","product":"wasmtime","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.1,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00624,"percentile":0.50852,"provenance":"source"},"cwes":[{"id":"CWE-193","name":"Off-by-one Error"}],"references":[{"url":"https://docs.rs/wasmtime/latest/wasmtime/struct.Config.html#method.wasm_simd","tags":[]},{"url":"https://github.com/webassembly/simd","tags":[]},{"url":"https://groups.google.com/a/bytecodealliance.org/g/sec-announce/c/Mov-ItrNJsQ","tags":[]},{"url":"https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-xm67-587q-r2vw","tags":[]},{"url":"https://github.com/bytecodealliance/wasmtime/commit/5dc2bbccbb363e474d2c9a1b8e38a89a43bbd5d1","tags":[]}],"priority":{"score":12.3,"factors":[{"name":"EPSS percentile","points":10.17},{"name":"CVSS severity","points":2.17}]},"vendorSlug":"bytecodealliance","affectedVersions":[{"vendor":"bytecodealliance","product":"wasmtime","versions":["cranelift-codegen: >= 0.88.0, < 0.91.1","cranelift-codegen: >= 0.92.0, < 0.92.1","cranelift-codegen: >= 0.93.0, < 0.93.1","wasmtime: >= 0.37.0, < 4.0.1","wasmtime: >= 5.0.0, < 5.0.1","wasmtime: >= 6.0.0, < 6.0.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-02-25T14:30:04.679521Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"wasmtime","vulnerableRanges":[">=1.0.0, <4.0.1",">=5.0.0, <5.0.1",">=6.0.0, <6.0.1",">=0.0.0-0, <4.0.1"],"patched":["4.0.1","5.0.1","6.0.1"],"from":["GHSA-xm67-587q-r2vw","RUSTSEC-2023-0093"],"provenance":"source"},{"ecosystem":"crates.io","package":"cranelift-codegen","vulnerableRanges":[">=0.88.0, <0.91.1",">=0.92.0, <0.92.1",">=0.93.0, <0.93.1"],"patched":["0.91.1","0.92.1","0.93.1"],"from":["GHSA-xm67-587q-r2vw"],"provenance":"source"}],"summary":{"text":"Wasmtime's Cranelift code generation backend, on x86_64 hosts only, miscompiles the WebAssembly i8x16.select instruction through an off-by-one error in the mask calculated for the pshufb instruction, which returns incorrect results for lanes selected from the second vector when the same operand is provided and some indices exceed 16. An attacker who can supply or influence the WebAssembly module being executed could cause wrong computation results, and exploitation requires a low-privilege account, high attack complexity, and a module that uses the SIMD proposal.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:56:59Z"},"euvd":{"id":"EUVD-2023-1143","exploited":false,"provenance":"source"}}