4.3
MEDIUM
CVE-2023-27477
"Wasmtime Cranelift x86_64 i8x16.select Integer Overflow"
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.

INFO

Published Date :

March 8, 2023, 9:15 p.m.

Last Modified :

March 15, 2023, 4:56 p.m.

Remotely Exploitable :

Yes !

Impact Score :

1.4

Exploitability Score :

2.8
Affected Products

The following products are affected by CVE-2023-27477 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Bytecodealliance wasmtime
2 Bytecodealliance cranelift-codegen
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2023-27477.

URL Resource
https://docs.rs/wasmtime/latest/wasmtime/struct.Config.html#method.wasm_simd Product
https://github.com/bytecodealliance/wasmtime/commit/5dc2bbccbb363e474d2c9a1b8e38a89a43bbd5d1 Patch
https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-xm67-587q-r2vw Mitigation Patch Vendor Advisory
https://github.com/webassembly/simd Not Applicable
https://groups.google.com/a/bytecodealliance.org/g/sec-announce/c/Mov-ItrNJsQ Mailing List Release Notes Vendor Advisory

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2023-27477 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2023-27477 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Initial Analysis by [email protected]

    Mar. 15, 2023

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
    Changed Reference Type https://docs.rs/wasmtime/latest/wasmtime/struct.Config.html#method.wasm_simd No Types Assigned https://docs.rs/wasmtime/latest/wasmtime/struct.Config.html#method.wasm_simd Product
    Changed Reference Type https://github.com/bytecodealliance/wasmtime/commit/5dc2bbccbb363e474d2c9a1b8e38a89a43bbd5d1 No Types Assigned https://github.com/bytecodealliance/wasmtime/commit/5dc2bbccbb363e474d2c9a1b8e38a89a43bbd5d1 Patch
    Changed Reference Type https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-xm67-587q-r2vw No Types Assigned https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-xm67-587q-r2vw Mitigation, Patch, Vendor Advisory
    Changed Reference Type https://github.com/webassembly/simd No Types Assigned https://github.com/webassembly/simd Not Applicable
    Changed Reference Type https://groups.google.com/a/bytecodealliance.org/g/sec-announce/c/Mov-ItrNJsQ No Types Assigned https://groups.google.com/a/bytecodealliance.org/g/sec-announce/c/Mov-ItrNJsQ Mailing List, Release Notes, Vendor Advisory
    Added CPE Configuration OR *cpe:2.3:a:bytecodealliance:cranelift-codegen:*:*:*:*:*:rust:*:* versions from (including) 0.84.0 up to (excluding) 0.91.1 *cpe:2.3:a:bytecodealliance:cranelift-codegen:0.92.0:*:*:*:*:rust:*:* *cpe:2.3:a:bytecodealliance:cranelift-codegen:0.93.0:*:*:*:*:rust:*:* *cpe:2.3:a:bytecodealliance:wasmtime:*:*:*:*:*:rust:*:* versions from (including) 0.37.0 up to (excluding) 4.0.1 *cpe:2.3:a:bytecodealliance:wasmtime:5.0.0:*:*:*:*:rust:*:* *cpe:2.3:a:bytecodealliance:wasmtime:6.0.0:*:*:*:*:rust:*:*
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2023-27477 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2023-27477 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.16 }} 0.01%

score

0.52698

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability