9.9critical
Wasmtime: Bit-packing in Cranelift compiler causes silent overflow and miscompilation
- Severity
- 9.9critical CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.82% (higher than 58% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-897f-g5gm-fmxmRUSTSEC-2026-0380
Description
Wasmtime is a runtime for WebAssembly. Prior to 36.0.19 and 43.0.0, the Cranelift compiler backend bit-packs SSA value indices in a way that can silently overflow in release builds when compiling a sufficiently large or specially crafted Wasm function with many SSA values. The overflow can make Cranelift reference incorrect IR values, causing arbitrary miscompilation, type confusion, and other attacker-controlled effects that may escape the Wasm sandbox on any architecture using the default Cranelift backend. This issue is fixed in versions 36.0.19 and 43.0.0.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| bytecodealliance wasmtime | < 36.0.19, >= 37.0.0, < 43.0.0 | CVE List |
| wasmtime (crates.io) | before 36.0.19, from 37.0.0 before 43.0.0, from 0.0.0-0 before 36.0.19 | GitHub Advisory Database, RustSec Advisory Database |
All scores
| GitHub_M | 9.9critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| GitHub | 9.9critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| RustSec Advisory Database | 9.9critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
Classification
What each source says
CVE List
Wasmtime is a runtime for WebAssembly. Prior to 36.0.19 and 43.0.0, the Cranelift compiler backend bit-packs SSA value indices in a way that can silently overflow in release builds when compiling a sufficiently large or specially crafted Wasm function with many SSA values. The overflow can make Cranelift reference incorrect IR values, causing arbitrary miscompilation, type confusion, and other attacker-controlled effects that may escape the Wasm sandbox on any architecture using the default Cranelift backend. This issue is fixed in versions 36.0.19 and 43.0.0.
GitHub Advisory Database
Summary
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.
Impact
A Wasmtime engine with default settings (using the Cranelift backend) on any architecture/platform could experience a sandbox escape from a specially-crafted Wasm module.
Patches
Wasmtime v36.0.19 has been released which fixes this issue.
RustSec Advisory Database
This is an entry in the RustSec database for the Wasmtime security advisory located at https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-897f-g5gm-fmxm For more information see the GitHub-hosted security advisory.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-115889 changed 2026-10-26 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-897f-g5gm-fmxm changed 2026-10-23 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2026-0380 changed 2026-10-24 | CC0-1.0 |
| NVD | CVE-2026-115889 changed 2026-10-26 | Public domain |