Wasmtime’s April 9, 2026 Security Advisories
Wasmtime 43.0.1, 42.0.2, 36.0.7 and 24.0.7 fix 12 security advisories, two of them Critical sandbox escapes (a Winch memory access bug and a miscompiled aarch64 heap access in Cranelift). Eleven were found in a 3-week sprint using a multi-agent LLM harness that analyzed code generators and unsafe runtime code and validated findings with proof-of-concept exploits, with no new unique issues after week two. Cranelift on x86_64 was unaffected by the critical bugs. Most flaws were in compiler backends and Component Model string transcoding. The gaps that let them through were no fuzzing of invalid strings, no continuous aarch64 fuzzing because oss-fuzz lacks aarch64 runners, and a formal verification model that had fallen out of sync with Cranelift's lowering rules. The team will now require LLM-based vulnerability discovery for tier 1 features, add invalid-input fuzzing, pursue aarch64 fuzzing and run Cranelift verification in CI.
Related posts
- Contributing support for a Wasm instruction to Winch
Shopify Engineering hardMasterAdding a WebAssembly instruction to Winch, Wasmtime's baseline non-optimizing compiler, touches several layers: the wasmparser VisitOperator visitor, the CodeGenContext that manages the value stack, register allocation and spilling, an ISA-independent MacroAssembler, and an x86_64 assembler built on Cranelift's ISLE-generated instruction definitions. The i32.clz example shows how the MacroAssembler emits lzcnt when the CPU supports it and otherwise falls back to a bsr/setne sequence. Changes are tested in two ways: filetests check the emitted machine code without running it, so they work on AArch64 Macs, and differential fuzzing on x86_64 hardware compares Winch's results against another Wasm engine.
- WebAssembly and Back Again: Fine-Grained Sandboxing in Firefox 95
Mozilla Hacks mediumAdeptFirefox 95 ships RLBox, a fine-grained sandboxing technique that compiles third-party C/C++ libraries (Graphite, Hunspell, Ogg, with Expat and Woff2 following in 96) to WebAssembly and then back to native code, so untrusted code runs in-process but cannot jump to unexpected code or touch memory outside its region. This avoids the asynchrony refactoring and memory overhead of process-based isolation, needing only sanitization of values crossing the boundary via RLBox's tainting layer. The production pipeline replaced the Cranelift prototype with wasm2c, translating wasm to C and feeding it back into Clang, which preserves PGO, cross-boundary inlining, crash reporting and debugger support. Mozilla now pays bug bounties for sandbox escapes even without a library vulnerability.
- GC and Exceptions in Wasmtime
Bytecode Alliance mediumAdeptWasmtime 47 enables the WebAssembly GC and exceptions proposals by default, letting objects-and-references languages use the runtime's collector instead of shipping their own, and letting exception-using languages use zero-overhead unwinding instead of custom return-flag calling conventions. Wasmtime's collector is a Cheney-style semi-space copying GC with bump allocation and no read/write barriers, built on top of a Wasm linear memory with 32-bit indices as references. That choice gives sandbox defense-in-depth against collector bugs, guard-page bounds-check elision, compact references, preserved 5µs pooled instantiation and portability. Correctness was hardened with GC support in wasm-smith plus two targeted fuzzers, but throughput and latency are not yet competitive with V8 or SpiderMonkey because the design targets many short-lived instances. Upcoming work covers GC-type-aware alias analysis and component model integration via lazy value lowering.
- Behind the Scenes Hardening Firefox with Claude Mythos Preview
Mozilla Hacks mediumAdeptMozilla fixed 271 latent security bugs in Firefox 150 found by Claude Mythos Preview, and 423 security bugs overall in April, using an agentic harness built on its existing fuzzing infrastructure. The harness writes and runs reproducible test cases to confirm or discard bug hypotheses, and jobs run in parallel on ephemeral VMs, each targeting a specific file. The surrounding pipeline handles deduplication, triage, tracking and fixes, and that project-specific work is what made the approach scale. Sample reports cover JIT and WebAssembly GC bugs, IPC sandbox escapes, an RLBox bypass and decades-old XSLT and layout bugs. Mozilla's advice is to start now with simple prompts ("there is a bug here, find it and build a testcase"), iterate, and move toward scanning patches in CI.
- GPT-5.5-Cyber built a zlib fuzzing lab in a day
Trail of Bits mediumAdeptGPT-5.5-Cyber, driven through Codex's /goal command, independently chose dynamic testing over static review of heavily audited zlib and built a full fuzzing campaign in a day. It produced ASan/UBSan builds, seed corpora derived from existing edge-case tests, C/C++ harnesses across a dozen entrypoints (inflate, inflateBack, gzFile, MiniZip, puff, blast and more) and compile-time variant builds such as INFLATE_STRICT and BUILDFIXED. Its most productive harness reached valid gz* states that only arise under OS backpressure, and it yielded several findings now in coordinated disclosure. Strict validity rules for what counts as a reportable finding were key: the model logged an unreachable inflateBack null-callback crash and moved on. The recommendation is for defenders to run bespoke fuzzing first, because the expertise barrier to doing it has largely disappeared.