JLSEC-2026-2446: Wasmtime: Cranelift backend on aarch64 can jump to incorrect target on large Wasm `br_table` instruction
Summary
When running with the Cranelift compiler backend on an aarch64 target, Wasmtime can compile a Wasm module with more than ~256k targets on one brtable instruction in a way that results in an incorrect conditional branch target. This conditional branch could then jump to arbitrary other code (at an user-controlled offset), leading to arbitrary sandbox escapes.
Impact
Any Wasmtime engine running on aarch64 with default settings can be forced to jump to arbitrary code by a user-controlled Wasm module. All versions of Wasmtime/Cranelift that support aarch64, since the initial release of that support in 2020 (before Wasmtime v1.0), are affected.
Patches
Wasmtime v36.0.19, v48.0.7, and v49.0.4 have been released which all fix this issue.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in v36.0.19 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in v48.0.7 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in v49.0.4
Event History
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
Which deployments are exposed?
Wasmtime engines running on aarch64 are affected when using the Cranelift compiler backend. The issue affects default settings and applies to Wasmtime/Cranelift versions with aarch64 support dating back to its initial 2020 release, before Wasmtime v1.0.
What does an attacker need to exploit this?
An attacker needs to provide a user-controlled WebAssembly module containing a br_table instruction with more than approximately 256,000 targets. No user interaction is required, but the affected engine must compile and run that module on aarch64.
What is the practical impact of successful exploitation?
The malformed compilation can cause a conditional branch to target arbitrary other code at a user-controlled offset. This can lead to arbitrary sandbox escapes with high impact to confidentiality, integrity, and availability.
What should be done to remediate the issue?
Upgrade to a fixed Wasmtime release: v36.0.19, v48.0.7, or v49.0.4. These releases contain the fix for the incorrect branch-target generation.