CVE-2023-27477: bytecodealliance cranelift-codegen Off-by-one Error
Vulnerability summary
CVE-2023-27477 is a medium (CVSS 4.3) Off-by-one Error vulnerability in bytecodealliance cranelift-codegen. EPSS estimates a 0.62% chance of exploitation in the next 30 days, higher than 51.3% of scored vulnerabilities.
Not severe (CVSS 3.1, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 0 · Related 2Timeline
- 08-03-2023PublishedVulnerability first disclosed.
- 25-02-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- CVE.orgCNA3.1LowCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:NDiffers
- OSV · WolfiEcosystem advisory · calculated3.1LowCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:NDiffers
- OSV · ChainguardEcosystem advisory · calculated3.1LowCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:NDiffers
- OSV · Crates.ioEcosystem advisory · calculated3.1LowCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:NDiffers
EPSS trend
Probability
0.62%
Chance of exploitation in the next 30 days
Percentile
51%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.62% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Bytecodealliance2 products
- cranelift-codegen≥ 0.84.0, < 0.91.1 | 0.92.0 | 0.93.0
- wasmtimecranelift-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 | ≥ 0.37.0, < 4.0.1 | 5.0.0 | 6.0.0
Crates.Io2 products
- cranelift-codegen≥ 0.88.0, < 0.91.1 | ≥ 0.92.0, < 0.92.1 | ≥ 0.93.0, < 0.93.1
- wasmtime≥ 1.0.0, < 4.0.1 | ≥ 5.0.0, < 5.0.1 | ≥ 6.0.0, < 6.0.1
Chainguard1 product
- wasmtime< 6.0.1-r0
Wolfi1 product
- wasmtime< 6.0.1-r0
4 vendors · 6 products
References
10 links- groups.google.com/a/bytecodealliance.org/g/sec-announce/c/Mov-ItrNJsQWEBMailing ListRelease NotesVendor Advisory
- github.com/bytecodealliance/wasmtime/security/advisories/GHSA-xm67-587q-r2vwAdvisoryWEBMitigationPatchVendor Advisory
- crates.io/crates/wasmtimePACKAGE