CVE-2026-115889 — Wasmtime: Bit-packing in wasmtime — CVE Details
Wasmtime: Bit-packing in Cranelift compiler causes silent overflow and miscompilation
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.66%). Schedule for your next planned update.
Does your project use an affected wasmtime version?
Paste your Cargo.lock to check it for CVE-2026-115889 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published October 23, 2026 (34 days ago).
- Last revised October 23, 2026 — 0 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
cargo update -p wasmtime --precise 43.0.0
cargo update -p wasmtime --precise 36.0.19
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: crates.io (1).
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-197
- CWE-843
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.9 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
References
- https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-897f-g5gm-fmxmWEB
- https://github.com/bytecodealliance/wasmtime/pull/12613WEB
- https://github.com/bytecodealliance/wasmtime/pull/14818WEB
- https://github.com/bytecodealliance/wasmtime/commit/ba8f7d70caa1825b7f64fa75cd9d03f4a438dae0WEB
- https://github.com/bytecodealliance/wasmtime/commit/f517bd6e890c7c1291ab9fe05d8cc0c9f11e56aaWEB
- https://github.com/bytecodealliance/wasmtimePACKAGE
- https://github.com/bytecodealliance/wasmtime/releases/tag/v36.0.19WEB
- https://github.com/bytecodealliance/wasmtime/releases/tag/v43.0.0WEB
- https://rustsec.org/advisories/RUSTSEC-2026-0380.htmlWEB
Frequently Asked Questions
- What is CVE-2026-115889?
- Wasmtime: Bit-packing in Cranelift compiler causes silent overflow and miscompilation. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.9/10).
- How do I check if my project is affected by CVE-2026-115889?
- CVE-2026-115889 affects wasmtime. It has a 0.7% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-115889 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is a below-median EPSS score — only 46.6% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-34987CRITICAL
Wasmtime with Winch compiler backend may allow a sandbox-escaping memory access
- CVE-2026-34971CRITICAL
Miscompiled guest heap access enables sandbox escape on aarch64 Cranelift
- CVE-2026-35195HIGH
Out-of-bounds write or crash when transcoding component model strings
- CVE-2026-27572MEDIUM
Panic adding excessive fields to a `wasi:http/types.fields` instance
- CVE-2026-34942MEDIUM
Panic when transcoding misaligned component model UTF-16 strings
- CVE-2026-34941MEDIUM
Heap OOB read in component model UTF-16 to latin1+utf16 string transcoding
- CVE-2026-35186MEDIUM
Improperly masked return value from `table.grow` with Winch compiler backend
- CVE-2026-115391MEDIUM
Guest controlled-size host heap allocation through WASIp3 streams