4.3

CVE-2023-27477: bytecodealliance cranelift-codegen Off-by-one Error

Modified
AliasesCGA-9m64-cvhg-g2rmCGA-mqfg-2p3p-f993GHSA-xm67-587q-r2vw
Published 08-03-2023Last modified 25-02-2025

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.

Priority
Routine

Not severe (CVSS 3.1, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
4.3/10
010
Medium · v3.1 (NVD)
EPSS score
0.62%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 0 · Related 2

Timeline

  1. 08-03-2023
    PublishedVulnerability first disclosed.
  2. 25-02-2025
    Last 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

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

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

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