# CVE-2026-34987: Wasmtime with Winch compiler backend on aarch64 may allow a sandbox-escaping memory access

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.0
- **CVSS:** 9.0 (v4.0, CNA) `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: Low; User interaction: None; Confidentiality impact: High; Integrity impact: High; Availability impact: High; Confidentiality impact on other systems: High; Integrity impact on other systems: High; Availability impact on other systems: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.52% (percentile 38, 2026-11-26)
- **CWE:** CWE-125, CWE-787
- **Aliases:** GHSA-xx5w-cvp6-jv83, RUSTSEC-2026-0095
- **Published:** 2026-04-09T12:00:00.000Z
- **Modified:** 2026-10-26T22:10:00.163Z

## Who should check

- Projects that depend on crates.io package wasmtime (\>= 25.0.0, \< 36.0.7)
- Anyone running bytecodealliance wasmtime \>= 25.0.0, \< 36.0.7; \>= 37.0.0, \< 42.0.2; \>= 43.0.0, \< 44.0.1

## Description

Wasmtime is a runtime for WebAssembly. From 25.0.0 to before 36.0.7, 42.0.2, and 43.0.1, Wasmtime with its Winch (baseline) non-default compiler backend may allow properly constructed guest Wasm to access host memory outside of its linear-memory sandbox. This vulnerability requires use of the Winch compiler (-Ccompiler=winch). By default, Wasmtime uses its Cranelift backend, not Winch. With Winch, the same incorrect assumption is present in theory on both aarch64 and x86-64. The aarch64 case has an observed-working proof of concept, while the x86-64 case is theoretical and may not be reachable in practice. This Winch compiler bug can allow the Wasm guest to access memory before or after the linear-memory region, independently of whether pre- or post-guard regions are configured. The accessible range in the initial bug proof-of-concept is up to 32KiB before the start of memory, or ~4GiB after the start of memory, independently of the size of pre- or post-guard regions or the use of explicit or guard-region-based bounds checking. However, the underlying bug assumes a 32-bit memory offset stored in a 64-bit register has its upper bits cleared when it may not, and so closely related variants of the initial proof-of-concept may be able to access truly arbitrary memory in-process. This could result in a host process segmentation fault (DoS), an arbitrary data leak from the host process, or with a write, potentially an arbitrary RCE. This vulnerability is fixed in 36.0.7, 42.0.2, and 43.0.1.

## Affected and fixed versions

- crates.io `wasmtime`: affected \>= 25.0.0, \< 36.0.7; fixed 36.0.7, 42.0.2, 43.0.1 (osv)
- bytecodealliance wasmtime: \>= 25.0.0, \< 36.0.7; \>= 37.0.0, \< 42.0.2; \>= 43.0.0, \< 44.0.1 (cvelist)

## Mitigation

- Upgrade wasmtime to one of 36.0.7, 42.0.2, 43.0.1 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-34987. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-34987.md
Affected: wasmtime >= 25.0.0, < 36.0.7
Fixed in: 36.0.7, 42.0.2, 43.0.1

Steps:
1. Search this machine and project for wasmtime (crates.io), bytecodealliance wasmtime: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-34987 being exploited?

There is no confirmed exploitation: CVE-2026-34987 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.52% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-34987?

Critical: CVSS 9.0 (v4.0, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2026-34987?

wasmtime \>= 25.0.0, \< 36.0.7.

### Is there a fix for CVE-2026-34987?

Yes. Fixed in 36.0.7, 42.0.2, 43.0.1. Upgrade wasmtime to one of 36.0.7, 42.0.2, 43.0.1 (or later in the same release line).

### How do I check if I'm affected by CVE-2026-34987?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-xx5w-cvp6-jv83>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-34987>
- vendor: <https://rustsec.org/advisories/RUSTSEC-2026-0095.html>
- patch: <https://github.com/bytecodealliance/wasmtime/pull/13014>
- other: <https://github.com/bytecodealliance/wasmtime>
- other: <https://crates.io/crates/wasmtime>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-34987>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-xx5w-cvp6-jv83> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/RUSTSEC-2026-0095> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-34987> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-34987>
