Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. wasmtime
  4. ›
  5. CVE-2026-115889

CVE-2026-115889: Wasmtime: Bit-packing in Cranelift compiler causes silent overflow and miscompilation

October 23, 2026

In Wasmtime prior to v43, the Cranelift compiler backend bit-packs its SSA value indices in a way that can result in silent overflow in release builds, and result in incorrect value references in the IR resulting in arbitrary miscompilation. A very large Wasm function body, or one that is specially crafted to use many SSA values, can use this to force type-confusion or other arbitrary side-effects and escape the sandbox.

Cranelift was changed in Wasmtime v43 to use a full u32 index, with checks if that limit is exceeded, and so is no longer susceptible to this bug.

References

  • github.com/advisories/GHSA-897f-g5gm-fmxm
  • github.com/bytecodealliance/wasmtime/commit/ba8f7d70caa1825b7f64fa75cd9d03f4a438dae0
  • github.com/bytecodealliance/wasmtime/commit/f517bd6e890c7c1291ab9fe05d8cc0c9f11e56aa
  • github.com/bytecodealliance/wasmtime/pull/12613
  • github.com/bytecodealliance/wasmtime/pull/14818
  • github.com/bytecodealliance/wasmtime/releases/tag/v36.0.19
  • github.com/bytecodealliance/wasmtime/releases/tag/v43.0.0
  • github.com/bytecodealliance/wasmtime/security/advisories/GHSA-897f-g5gm-fmxm
  • nvd.nist.gov/vuln/detail/CVE-2026-115889
  • rustsec.org/advisories/RUSTSEC-2026-0380.html

Code Behaviors & Features

Detect and mitigate CVE-2026-115889 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 36.0.19, all versions starting from 37.0.0 before 43.0.0

Fixed versions

  • 36.0.19
  • 43.0.0

Solution

Upgrade to versions 36.0.19, 43.0.0 or above.

Impact 9.9 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-197: Numeric Truncation Error
  • CWE-843: Access of Resource Using Incompatible Type ('Type Confusion')

Source file

cargo/wasmtime/CVE-2026-115889.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 24 Oct 2026 00:16:19 +0000.