{"id":"JLSEC-2026-2444","summary":"Wasmtime: Bit-packing in Cranelift compiler causes silent overflow and miscompilation","details":"## 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.","modified":"2026-12-04T22:13:49.690177131Z","published":"2026-12-04T21:46:30.597Z","upstream":["CVE-2026-115889","EUVD-2026-109186","GHSA-897f-g5gm-fmxm"],"database_specific":{"license":"CC-BY-4.0","sources":[{"imported":"2026-12-03T18:07:10.477Z","modified":"2026-10-26T18:17:38.213Z","published":"2026-10-23T22:16:58.400Z","url":"https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-115889","html_url":"https://nvd.nist.gov/vuln/detail/CVE-2026-115889","database_specific":{"status":"Deferred"},"id":"CVE-2026-115889"},{"url":"https://api.github.com/advisories/GHSA-897f-g5gm-fmxm","html_url":"https://github.com/advisories/GHSA-897f-g5gm-fmxm","id":"GHSA-897f-g5gm-fmxm","imported":"2026-12-03T18:05:51.579Z","modified":"2026-10-23T22:02:21Z","published":"2026-10-23T22:02:20Z"},{"html_url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-109186","affected":{"bytecodealliance:wasmtime":["37.0.0, \u003c 43.0.0","\u003c 36.0.19"]},"id":"EUVD-2026-109186","imported":"2026-12-03T18:05:44.387Z","modified":"2026-10-26T17:42:15Z","published":"2026-10-23T21:23:27Z","url":"https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-109186"}]},"references":[{"type":"WEB","url":"https://github.com/advisories/GHSA-897f-g5gm-fmxm"},{"type":"WEB","url":"https://github.com/bytecodealliance/wasmtime/commit/ba8f7d70caa1825b7f64fa75cd9d03f4a438dae0"},{"type":"WEB","url":"https://github.com/bytecodealliance/wasmtime/commit/f517bd6e890c7c1291ab9fe05d8cc0c9f11e56aa"},{"type":"WEB","url":"https://github.com/bytecodealliance/wasmtime/pull/12613"},{"type":"WEB","url":"https://github.com/bytecodealliance/wasmtime/pull/14818"},{"type":"WEB","url":"https://github.com/bytecodealliance/wasmtime/releases/tag/v36.0.19"},{"type":"WEB","url":"https://github.com/bytecodealliance/wasmtime/releases/tag/v43.0.0"},{"type":"WEB","url":"https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-897f-g5gm-fmxm"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2026-0380.html"}],"affected":[{"package":{"name":"Wasmtime_jll","ecosystem":"Julia","purl":"pkg:julia/Wasmtime_jll?uuid=d20e7296-4f3e-515c-90b9-d2595a77bf72"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"45.0.1+0"}]}],"database_specific":{"source":"https://github.com/JuliaLang/SecurityAdvisories.jl/tree/generated/osv/2026/JLSEC-2026-2444.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","source":"CNA"}],"credits":[{"name":"jaydns","contact":["https://github.com/jaydns"],"type":"REPORTER"}]}