CVE-2023-27477 in Bytecodealliance Cranelift-Codegen and 1 more product
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 tha...
Affects 2 products from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Bytecodealliance | Cranelift-Codegen | 0.92.0 0.93.0 ≥ 0.84.0, < 0.91.1 |
| Bytecodealliance | Wasmtime | 5.0.0 6.0.0 ≥ 0.37.0, < 4.0.1 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2023-27477 |
|---|---|
| BreachSpider ID | BS-2023-GLOBAL-060928-M |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
| Published | 2023-03-08 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-193: CWE-193
Analysis AI-written, not human-reviewed
CVE-2023-27477 affects Wasmtime's Cranelift code generation backend on x86_64 platforms, causing incorrect results for the WebAssembly `i8x16.select` instruction when the same operand is used and some selected indices exceed 16 due to an off-by-one error in mask calculation.
The vulnerability arises from an off-by-one error in the mask calculation for the `pshufb` instruction in Cranelift when processing the `i8x16.select` WebAssembly instruction. This can lead to incorrect data being returned, potentially allowing an attacker to exploit the incorrect results for further attacks if the application logic relies on the accuracy of these operations.
Questions
What is CVE-2023-27477?
CVE-2023-27477 affects Wasmtime's Cranelift code generation backend on x86_64 platforms, causing incorrect results for the WebAssembly `i8x16.select` instruction when the same operand is used and some selected indices exceed 16 due to an off-by-one error in mask calculation.
What is the CVSS score for CVE-2023-27477?
CVE-2023-27477 has CVSS 4.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N. EPSS: 0.7%.
Is CVE-2023-27477 actively exploited?
No confirmed active exploitation of CVE-2023-27477 as of 2026-09-25.
How do I remediate CVE-2023-27477?
Priority: MEDIUM. PSIRT: [email protected]
What systems are affected by CVE-2023-27477?
CVE-2023-27477 affects Bytecodealliance Cranelift-Codegen, Wasmtime.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Bytecodealliance","product":"Cranelift-Codegen","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.