CVE-2026-34971 Wasmtime miscompiled guest heap access enables sandbox escape on aarch64 Cranelift
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- UbuntuDebianRed Hat
Description
Wasmtime is a runtime for WebAssembly. From 32.0.0 to before 36.0.7, 42.0.2, and 43.0.1, Wasmtime's Cranelift compilation backend contains a bug on aarch64 when performing a certain shape of heap accesses which means that the wrong address is accessed. When combined with explicit bounds checks a guest WebAssembly module this can create a situation where there are two diverging computations for the same address: one for the address to bounds-check and one for the address to load. This difference in address being operated on means that a guest module can pass a bounds check but then load a different address. Combined together this enables an arbitrary read/write primitive for guest WebAssembly when accesssing host memory. This is a sandbox escape as guests are able to read/write arbitrary host memory. This vulnerability has a few ingredients, all of which must be met, for this situation to occur and bypass the sandbox restrictions. This miscompiled shape of load only occurs on 64-bit WebAssembly linear memories, or when Config::wasm_memory64 is enabled. 32-bit WebAssembly is not affected. Spectre mitigations or signals-based-traps must be disabled. When spectre mitigations are enabled then the offending shape of load is not generated. When signals-based-traps are disabled then spectre mitigations are also automatically disabled. The specific bug in Cranelift is a miscompile of a load of the shape load(iadd(base, ishl(index, amt))) where amt is a constant. The amt value is masked incorrectly to test if it's a certain value, and this incorrect mask means that Cranelift can pattern-match this lowering rule during instruction selection erroneously, diverging from WebAssembly's and Cranelift's semantics. This incorrect lowering would, for example, load an address much further away than intended as the correct address's computation would have wrapped around to a smaller value insetad. This vulnerability is fixed in 36.0.7, 42.0.2, and 43.0.1.
Upgrade path
9 packages: 3 fixed, 5 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/rust-wasmtime(Debian 13) | = 26.0.1+dfsg-3; = 26.0.1+dfsg-4; = 26.0.1+dfsg-5; = 26.0.1+dfsg-6 +40 more | No fix listed | No fix yet |
| redhat connectivity link | All versions | No fix listed | No fix yet |
| redhat/redhat-user-workloads/rhcl-1-3-wasm-shim(Red Hat connectivity_link 1) | All versions | No fix listed | No fix yet |
| ubuntu/rust-wasmtime(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/rust-wasmtime(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| bytecodealliance wasmtime | = 43.0.0; = >= 32.0.0, < 36.0.7; = >= 37.0.0, < 42.0.2; = >= 43.0.0, < 44.0.1 +2 more | 36.0.7, 42.0.2 | Fixed |
| crates.io wasmtime(crates.io) | = 43.0.0; >= 0.0.0-0, < 36.0.7; >= 32.0.0, < 36.0.7; >= 37.0.0, < 42.0.2 +1 more | 36.0.7, 42.0.2, 43.0.1 | Fixed |
| debian/rust-wasmtime(Debian 14) | < 36.0.7+dfsg-1; = 26.0.1+dfsg-3; = 26.0.1+dfsg-4; = 26.0.1+dfsg-5 +31 more | 36.0.7+dfsg-1 | Fixed |
| redhat enterprise linux | = 10 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| bytecodealliance wasmtime | = >= 32.0.0, < 36.0.7 | No fix listed |
| bytecodealliance wasmtime | = >= 37.0.0, < 42.0.2 | No fix listed |
| bytecodealliance wasmtime | = >= 43.0.0, < 44.0.1 | No fix listed |
| redhat connectivity link | All versions | No fix listed |
| redhat enterprise linux | = 10 | No fix listed |
| crates.io wasmtime(crates.io) | >= 32.0.0, < 36.0.7 | 36.0.7 |
| crates.io wasmtime(crates.io) | >= 37.0.0, < 42.0.2 | 42.0.2 |
| crates.io wasmtime(crates.io) | >= 43.0.0, < 43.0.1 | 43.0.1 |
| crates.io wasmtime(crates.io) | = 43.0.0 | No fix listed |
| crates.io wasmtime(crates.io) | >= 0.0.0-0, < 36.0.7 | 36.0.7 |
| debian/rust-wasmtime(Debian:13) | All versions | No fix listed |
| debian/rust-wasmtime(Debian:13) | = 26.0.1+dfsg-10 | No fix listed |
| debian/rust-wasmtime(Debian:13) | = 26.0.1+dfsg-3 | No fix listed |
| debian/rust-wasmtime(Debian:13) | = 26.0.1+dfsg-4 | No fix listed |
| debian/rust-wasmtime(Debian:13) | = 26.0.1+dfsg-5 | No fix listed |
| debian/rust-wasmtime(Debian:13) | = 26.0.1+dfsg-6 | No fix listed |
| debian/rust-wasmtime(Debian:13) | = 26.0.1+dfsg-7 | No fix listed |
| debian/rust-wasmtime(Debian:13) | = 26.0.1+dfsg-8 | No fix listed |
| debian/rust-wasmtime(Debian:13) | = 26.0.1+dfsg-9 | No fix listed |
| debian/rust-wasmtime(Debian:13) | = 27.0.0+dfsg-2 | No fix listed |
| debian/rust-wasmtime(Debian:13) | = 27.0.0+dfsg-3 | No fix listed |
| debian/rust-wasmtime(Debian:13) | = 27.0.0+dfsg-4 | No fix listed |
| debian/rust-wasmtime(Debian:13) | = 28.0.1+dfsg-1 | No fix listed |
| debian/rust-wasmtime(Debian:13) | = 28.0.1+dfsg-2 | No fix listed |
| debian/rust-wasmtime(Debian:13) | = 28.0.1+dfsg-3 | No fix listed |
Show 70 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/rust-wasmtime(Debian:13) | = 29.0.1+dfsg-1 | No fix listed |
| debian/rust-wasmtime(Debian:13) | = 29.0.1+dfsg-2 | No fix listed |
| debian/rust-wasmtime(Debian:13) | = 29.0.1+dfsg-3 | No fix listed |
| debian/rust-wasmtime(Debian:13) | = 29.0.1+dfsg-4 | No fix listed |
| debian/rust-wasmtime(Debian:13) | = 29.0.1+dfsg-5 | No fix listed |
| debian/rust-wasmtime(Debian:13) | = 29.0.1+dfsg-6 | No fix listed |
| debian/rust-wasmtime(Debian:13) | = 29.0.1+dfsg-7 | No fix listed |
| debian/rust-wasmtime(Debian:13) | = 29.0.1+dfsg-8 | No fix listed |
| debian/rust-wasmtime(Debian:13) | = 36.0.11+dfsg-1 | No fix listed |
| debian/rust-wasmtime(Debian:13) | = 36.0.12+dfsg-1 | No fix listed |
| debian/rust-wasmtime(Debian:13) | = 36.0.12+dfsg-2 | No fix listed |
| debian/rust-wasmtime(Debian:13) | = 36.0.12+dfsg-3 | No fix listed |
| debian/rust-wasmtime(Debian:13) | = 36.0.13+dfsg-1 | No fix listed |
| debian/rust-wasmtime(Debian:13) | = 36.0.5+dfsg-1 | No fix listed |
| debian/rust-wasmtime(Debian:13) | = 36.0.5+dfsg-2 | No fix listed |
| debian/rust-wasmtime(Debian:13) | = 36.0.5+dfsg-3 | No fix listed |
| debian/rust-wasmtime(Debian:13) | = 36.0.5+dfsg-4 | No fix listed |
| debian/rust-wasmtime(Debian:13) | = 36.0.5+dfsg-5 | No fix listed |
| debian/rust-wasmtime(Debian:13) | = 36.0.6+dfsg-1 | No fix listed |
| debian/rust-wasmtime(Debian:13) | = 36.0.6+dfsg-2 | No fix listed |
| debian/rust-wasmtime(Debian:13) | = 36.0.6+dfsg-3 | No fix listed |
| debian/rust-wasmtime(Debian:13) | = 36.0.6+dfsg-4 | No fix listed |
| debian/rust-wasmtime(Debian:13) | = 36.0.6+dfsg-5 | No fix listed |
| debian/rust-wasmtime(Debian:13) | = 36.0.6+dfsg-6 | No fix listed |
| debian/rust-wasmtime(Debian:13) | = 36.0.6+dfsg-7 | No fix listed |
| debian/rust-wasmtime(Debian:13) | = 36.0.7+dfsg-1 | No fix listed |
| debian/rust-wasmtime(Debian:13) | = 36.0.8+dfsg-1 | No fix listed |
| debian/rust-wasmtime(Debian:13) | = 36.0.9+dfsg-1 | No fix listed |
| debian/rust-wasmtime(Debian:13) | = 36.0.9+dfsg-2 | No fix listed |
| debian/rust-wasmtime(Debian:14) | < 36.0.7+dfsg-1 | 36.0.7+dfsg-1 |
| debian/rust-wasmtime(Debian:14) | = 26.0.1+dfsg-10 | No fix listed |
| debian/rust-wasmtime(Debian:14) | = 26.0.1+dfsg-3 | No fix listed |
| debian/rust-wasmtime(Debian:14) | = 26.0.1+dfsg-4 | No fix listed |
| debian/rust-wasmtime(Debian:14) | = 26.0.1+dfsg-5 | No fix listed |
| debian/rust-wasmtime(Debian:14) | = 26.0.1+dfsg-6 | No fix listed |
| debian/rust-wasmtime(Debian:14) | = 26.0.1+dfsg-7 | No fix listed |
| debian/rust-wasmtime(Debian:14) | = 26.0.1+dfsg-8 | No fix listed |
| debian/rust-wasmtime(Debian:14) | = 26.0.1+dfsg-9 | No fix listed |
| debian/rust-wasmtime(Debian:14) | = 27.0.0+dfsg-2 | No fix listed |
| debian/rust-wasmtime(Debian:14) | = 27.0.0+dfsg-3 | No fix listed |
| debian/rust-wasmtime(Debian:14) | = 27.0.0+dfsg-4 | No fix listed |
| debian/rust-wasmtime(Debian:14) | = 28.0.1+dfsg-1 | No fix listed |
| debian/rust-wasmtime(Debian:14) | = 28.0.1+dfsg-2 | No fix listed |
| debian/rust-wasmtime(Debian:14) | = 28.0.1+dfsg-3 | No fix listed |
| debian/rust-wasmtime(Debian:14) | = 29.0.1+dfsg-1 | No fix listed |
| debian/rust-wasmtime(Debian:14) | = 29.0.1+dfsg-2 | No fix listed |
| debian/rust-wasmtime(Debian:14) | = 29.0.1+dfsg-3 | No fix listed |
| debian/rust-wasmtime(Debian:14) | = 29.0.1+dfsg-4 | No fix listed |
| debian/rust-wasmtime(Debian:14) | = 29.0.1+dfsg-5 | No fix listed |
| debian/rust-wasmtime(Debian:14) | = 29.0.1+dfsg-6 | No fix listed |
| debian/rust-wasmtime(Debian:14) | = 29.0.1+dfsg-7 | No fix listed |
| debian/rust-wasmtime(Debian:14) | = 29.0.1+dfsg-8 | No fix listed |
| debian/rust-wasmtime(Debian:14) | = 36.0.5+dfsg-1 | No fix listed |
| debian/rust-wasmtime(Debian:14) | = 36.0.5+dfsg-2 | No fix listed |
| debian/rust-wasmtime(Debian:14) | = 36.0.5+dfsg-3 | No fix listed |
| debian/rust-wasmtime(Debian:14) | = 36.0.5+dfsg-4 | No fix listed |
| debian/rust-wasmtime(Debian:14) | = 36.0.5+dfsg-5 | No fix listed |
| debian/rust-wasmtime(Debian:14) | = 36.0.6+dfsg-1 | No fix listed |
| debian/rust-wasmtime(Debian:14) | = 36.0.6+dfsg-2 | No fix listed |
| debian/rust-wasmtime(Debian:14) | = 36.0.6+dfsg-3 | No fix listed |
| debian/rust-wasmtime(Debian:14) | = 36.0.6+dfsg-4 | No fix listed |
| debian/rust-wasmtime(Debian:14) | = 36.0.6+dfsg-5 | No fix listed |
| debian/rust-wasmtime(Debian:14) | = 36.0.6+dfsg-6 | No fix listed |
| debian/rust-wasmtime(Debian:14) | = 36.0.6+dfsg-7 | No fix listed |
| redhat/redhat-user-workloads/rhcl-1-3-wasm-shim(Red Hat:connectivity_link:1) | All versions | No fix listed |
| ubuntu/rust-wasmtime(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/rust-wasmtime(Ubuntu:26.10) | All versions | No fix listed |
| bytecodealliance wasmtime | >= 32.0.0, < 36.0.7 | 36.0.7 |
| bytecodealliance wasmtime | >= 37.0.0, < 42.0.2 | 42.0.2 |
| bytecodealliance wasmtime | = 43.0.0 | No fix listed |
References
- https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-jhxm-h53p-jm7w mitigation vendor-advisory
- Red Hat CVE page mitigation vdb-entry vendor-advisory
- RHBZ#2457008 issue-tracking
- security.access.redhat.com
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- rustsec.org vendor-advisory
- crates.io product
- github.com
- github.com
- Debian Security Tracker CVE-2026-34971 vendor-advisory
- www.cve.org
- Ubuntu CVE tracker vendor-advisory
- bugs.debian.org issue-tracking