QID 996230

Date Published: 2023-12-13

QID 996230: Rust (Rust) Security Update for wasmtime (GHSA-gw5p-q8mj-p7gh)

Wasmtime versions from 10.0.0 to 12.0.1 contain a miscompilation of the WebAssembly i64x2.shr_s instruction on x86_64 platforms when the shift amount is a constant value that is larger than 32. Only x86_64 is affected so all other targets are not affected by this. The miscompilation results in the instruction producing an incorrect result, namely the low 32-bits of the second lane of the vector are derived from the low 32-bits of the second lane of the input vector instead of the high 32-bits. The primary impact of this issue is that any WebAssembly program using the i64x2.shr_s with a constant shift amount larger than 32 may produce an incorrect result.

Successful exploitation of this vulnerability could lead to a security breach or could affect integrity, availability, and confidentiality.

  • CVSS V3 rated as Medium - 5.3 severity.
  • CVSS V2 rated as Medium - 5.4 severity.
  • Solution
    Refer to Github security advisory GHSA-gw5p-q8mj-p7gh for updates and patch information.
    Vendor References

    CVEs related to QID 996230

    Software Advisories
    Advisory ID Software Component Link
    GHSA-gw5p-q8mj-p7gh wasmtime URL Logo github.com/advisories/GHSA-gw5p-q8mj-p7gh