{"id":"CVE-2026-115889","aliases":["CVE-2026-115889","GHSA-897f-g5gm-fmxm","RUSTSEC-2026-0380"],"related":[],"kind":"vulnerability","state":"published","title":"Wasmtime: Bit-packing in Cranelift compiler causes silent overflow and miscompilation","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nIn 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.\n\nCranelift 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.\n\n## Impact\n\nA Wasmtime engine with default settings (using the Cranelift backend) on any architecture/platform could experience a sandbox escape from a specially-crafted Wasm module.\n\n## Patches\n\nWasmtime v36.0.19 has been released which fixes this issue.","format":"markdown","source":"ghsa"},{"lang":"en","text":"This is an entry in the RustSec database for the Wasmtime security advisory\nlocated at\nhttps://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-897f-g5gm-fmxm\nFor more information see the GitHub-hosted security advisory.","format":"markdown","source":"rustsec"}],"published":"2026-10-19T12:00:00.000Z","modified":"2026-10-26T18:17:38.213Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":9.9,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":9.9,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":9.9,"rating":"CRITICAL"},{"scorer":"RustSec Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":9.9,"rating":"CRITICAL"}],"cwes":["CWE-197","CWE-843"],"affected":[{"ranges":[{"version":"< 36.0.19","status":"affected"},{"version":">= 37.0.0, < 43.0.0","status":"affected"}],"vendor":"bytecodealliance","product":"wasmtime","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"36.0.19"}],"ecosystem":"crates.io","package":"wasmtime","purl":"pkg:cargo/wasmtime","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"37.0.0","status":"affected","fixed":"43.0.0"}],"ecosystem":"crates.io","package":"wasmtime","purl":"pkg:cargo/wasmtime","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"36.0.19"},{"type":"semver","introduced":"37.0.0","status":"affected","fixed":"43.0.0"}],"ecosystem":"crates.io","package":"wasmtime","purl":"pkg:cargo/wasmtime","source":"rustsec"}],"references":[{"url":"https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-897f-g5gm-fmxm","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/bytecodealliance/wasmtime/pull/12613","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://github.com/bytecodealliance/wasmtime/pull/14818","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/bytecodealliance/wasmtime/commit/ba8f7d70caa1825b7f64fa75cd9d03f4a438dae0","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/bytecodealliance/wasmtime/commit/f517bd6e890c7c1291ab9fe05d8cc0c9f11e56aa","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/bytecodealliance/wasmtime/releases/tag/v36.0.19","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/bytecodealliance/wasmtime/releases/tag/v43.0.0","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/bytecodealliance/wasmtime","tags":["package"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0380.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/wasmtime","tags":["package"],"sources":["rustsec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-26T15:40:36.390Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-115889","url":"https://www.cve.org/CVERecord?id=CVE-2026-115889","licence":"CVE Terms of Use","modified":"2026-10-26T17:42:15.319Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-897f-g5gm-fmxm","url":"https://github.com/advisories/GHSA-897f-g5gm-fmxm","licence":"CC-BY-4.0","modified":"2026-10-23T22:25:51.511Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0380","url":"https://rustsec.org/advisories/RUSTSEC-2026-0380.html","licence":"CC0-1.0","modified":"2026-10-24T06:25:41.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-115889","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-115889","licence":"Public domain","modified":"2026-10-26T18:17:38.213Z"}],"updatedAt":"2026-11-25T22:59:47.016Z","epss":{"score":0.00824,"percentile":0.58484,"date":"2026-12-01T12:00:22.000Z"}}