Wasmtime: Bit-packing in Cranelift compiler causes silent overflow and miscompilation
CVE-2026-115889 · GHSA-897f-g5gm-fmxm · RUSTSEC-2026-0380 · published 19 Oct 2026
How serious is it
- Severity: critical, CVSS score 9.9 out of 10.
- No exploit prediction (EPSS) score yet.
- Not on the CISA list of exploited vulnerabilities.
- No public exploit in Exploit-DB.
Is your app affected by CVE-2026-115889?
Paste this prompt into Claude Code, Cursor or any AI coding tool: it runs a free Shippable scan of your project and fixes what it finds. Built with Lovable, Bolt or v0? Scan your live app. Or upload your package file.
Who is affected
wasmtime(crates.io) < 36.0.19wasmtime(crates.io) >= 37.0.0, < 43.0.0
How to check
- Run
cargo tree -i wasmtimein your project to see the installed version, including copies pulled in by other packages. - Or paste your lockfile into the checker: it lists every package with a known vulnerability, this one included.
How to fix
Copies a prompt for Claude Code, Cursor or Codex: it checks your lockfiles for this and upgrades it.
- On < 36.0.19: Upgrade
wasmtimeto 36.0.19 or later, commit the lockfile and redeploy. - On >= 37.0.0, < 43.0.0: Upgrade
wasmtimeto 43.0.0 or later, commit the lockfile and redeploy. - If a vulnerable version was live, check your logs and rotate the secrets that server could read.
The advisory
## 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.
Check your whole app
Dependencies are only half of it. Free and read-only: before you push, run npx shippable-dev scan localhost:3000 in your project folder, no account needed. For your live app, you prove it's yours with a one-line tag first.
References
- github.com/bytecodealliance/wasmtime/security/advisories/GHSA-897f-g5gm-fmxm
- github.com/bytecodealliance/wasmtime/pull/12613
- github.com/bytecodealliance/wasmtime/pull/14818
- github.com/bytecodealliance/wasmtime/commit/ba8f7d70caa1825b7f64fa75cd9d03f4a438dae0
- github.com/bytecodealliance/wasmtime/commit/f517bd6e890c7c1291ab9fe05d8cc0c9f11e56aa
- github.com/bytecodealliance/wasmtime/releases/tag/v36.0.19
- github.com/bytecodealliance/wasmtime/releases/tag/v43.0.0
- rustsec.org/advisories/RUSTSEC-2026-0380.html
- github.com/advisories/GHSA-897f-g5gm-fmxm
- github.com/bytecodealliance/wasmtime
- crates.io/crates/wasmtime
Merged from GitHub Advisory Database, OSV. Last updated 26 Oct 2026. All vulnerabilities · RSS · JSON