Skip to main content

CVE-2026-115889 — Wasmtime: Bit-packing in wasmtime — CVE Details

CRITICAL

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

Published October 23, 2026Updated October 23, 2026Source: OSV

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.

Check my Cargo.lock

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 wasmtime to 43.0.0 or later
cargo update -p wasmtime --precise 43.0.0
Cargo
Update wasmtime to 36.0.19 or later
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).

PackageFixed In
wasmtime crates.io · Affected: All versions43.0.0
wasmtime crates.io · Affected: All versions36.0.19

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.9 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

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

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

CVSS Score
9.9

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
0.66%
EPSS percentile: 46.6

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

GHSA-897f-g5gm-fmxm
RUSTSEC-2026-0380

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my Cargo.lock