{"id":"CVE-2026-115889","published":"2026-10-23T21:23:27Z","modified":"2026-10-26T17:42:15Z","title":"Wasmtime: Bit-packing in Cranelift compiler causes silent overflow and miscompilation","vendor":"bytecodealliance","product":"wasmtime","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.9,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00454,"percentile":0.40177,"provenance":"source"},"cwes":[{"id":"CWE-197","name":"Numeric Truncation Error"},{"id":"CWE-843","name":"Access of Resource Using Incompatible Type"}],"references":[{"url":"https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-897f-g5gm-fmxm","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/bytecodealliance/wasmtime/pull/12613","tags":["x_refsource_MISC"]},{"url":"https://github.com/bytecodealliance/wasmtime/pull/14818","tags":["x_refsource_MISC"]},{"url":"https://github.com/bytecodealliance/wasmtime/commit/ba8f7d70caa1825b7f64fa75cd9d03f4a438dae0","tags":["x_refsource_MISC"]},{"url":"https://github.com/bytecodealliance/wasmtime/commit/f517bd6e890c7c1291ab9fe05d8cc0c9f11e56aa","tags":["x_refsource_MISC"]},{"url":"https://github.com/bytecodealliance/wasmtime/releases/tag/v36.0.19","tags":["x_refsource_MISC"]},{"url":"https://github.com/bytecodealliance/wasmtime/releases/tag/v43.0.0","tags":["x_refsource_MISC"]}],"priority":{"score":20.0,"factors":[{"name":"EPSS percentile","points":8.04},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.93}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-10-27","earliestUrl":"https://github.com/ideator-labs/wasmtime-sweep","repos":[{"name":"ideator-labs/wasmtime-sweep","url":"https://github.com/ideator-labs/wasmtime-sweep","stars":0,"created":"2026-10-27"}]},"first":{"date":"2026-10-27","source":"PoC-in-GitHub","url":"https://github.com/ideator-labs/wasmtime-sweep"},"provenance":"source"},"vendorSlug":"bytecodealliance","affectedVersions":[{"vendor":"bytecodealliance","product":"wasmtime","versions":["< 36.0.19",">= 37.0.0, < 43.0.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-10-26T15:40:36.390562Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"wasmtime","vulnerableRanges":["<36.0.19",">=37.0.0, <43.0.0",">=0.0.0-0, <36.0.19"],"patched":["36.0.19","43.0.0"],"from":["GHSA-897f-g5gm-fmxm","RUSTSEC-2026-0380"],"provenance":"source"}],"summary":{"text":"The Cranelift compiler backend in Wasmtime, a WebAssembly runtime, bit-packs SSA value indices in a way that can silently overflow in release builds when compiling a large or specially crafted Wasm function with many SSA values. The overflow can cause miscompilation and type confusion that may escape the Wasm sandbox on any architecture using the default Cranelift backend, and an attacker needs only to supply a crafted Wasm module for the runtime to compile, with low-privilege network access and no user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T03:46:22Z"},"euvd":{"id":"EUVD-2026-109186","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-bytecodealliance-wasmtime-cve-2022-39392","parents":[{"from":"CVE-2026-27195","to":"CVE-2026-115889","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["crates/wasi-http/src/types_impl.rs"],"commits":["https://github.com/bytecodealliance/wasmtime/commit/ba8f7d70caa1825b7f64fa75cd9d03f4a438dae0","https://github.com/bytecodealliance/wasmtime/commit/f517bd6e890c7c1291ab9fe05d8cc0c9f11e56aa","https://github.com/bytecodealliance/wasmtime/commit/9e51c0d9a240a9613d279c061f82286bd11383fd","https://github.com/bytecodealliance/wasmtime/commit/d86b00736b9ece60b3c81e52f7a7e4cdd9f7d895"],"basis":"rarely changed file"}]},{"from":"CVE-2026-27572","to":"CVE-2026-115889","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["crates/wasi-http/src/types_impl.rs"],"commits":["https://github.com/bytecodealliance/wasmtime/commit/ba8f7d70caa1825b7f64fa75cd9d03f4a438dae0","https://github.com/bytecodealliance/wasmtime/commit/f517bd6e890c7c1291ab9fe05d8cc0c9f11e56aa","https://github.com/bytecodealliance/wasmtime/commit/301dc7162cca51def19131019af1187f45901c0a"],"basis":"rarely changed file"}]}],"children":[{"from":"CVE-2026-115889","to":"CVE-2026-115892","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["cranelift/codegen/src/isa/aarch64/inst.isle","cranelift/codegen/src/isa/aarch64/inst/emit.rs","cranelift/codegen/src/isa/aarch64/inst/mod.rs","cranelift/codegen/src/isa/aarch64/lower/isle.rs","cranelift/filetests/filetests/isa/aarch64/bti.clif"],"commits":["https://github.com/bytecodealliance/wasmtime/commit/ba8f7d70caa1825b7f64fa75cd9d03f4a438dae0","https://github.com/bytecodealliance/wasmtime/commit/f517bd6e890c7c1291ab9fe05d8cc0c9f11e56aa","https://github.com/bytecodealliance/wasmtime/commit/222ff3a65dab9aa7011f8c246937751a0bac5abd","https://github.com/bytecodealliance/wasmtime/commit/48dacc76241f06088e79f3ce1b17642f2f7bf158"],"basis":"shared function","functions":["Assembler","CodeGenError","Context","Inst","MachInstEmit"]}]},{"from":"CVE-2026-115889","to":"CVE-2026-115893","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["cranelift/codegen/src/isa/aarch64/inst.isle","cranelift/codegen/src/isa/aarch64/inst/emit.rs","cranelift/codegen/src/isa/aarch64/inst/mod.rs","cranelift/codegen/src/isa/aarch64/lower/isle.rs","cranelift/filetests/filetests/isa/aarch64/bti.clif"],"commits":["https://github.com/bytecodealliance/wasmtime/commit/ba8f7d70caa1825b7f64fa75cd9d03f4a438dae0","https://github.com/bytecodealliance/wasmtime/commit/f517bd6e890c7c1291ab9fe05d8cc0c9f11e56aa","https://github.com/bytecodealliance/wasmtime/commit/222ff3a65dab9aa7011f8c246937751a0bac5abd","https://github.com/bytecodealliance/wasmtime/commit/994549891c8a706cb4f2809f9d17b9f67b31e618"],"basis":"shared function","functions":["Assembler","CodeGenError","Context","Inst","MachInstEmit"]}]}]}}