BreachSpiderVerified, not vibes

CVE-2026-34987 in Bytecodealliance Wasmtime

Critical 9.9

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 (-Ccompi...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.19.9
CVSS v49.0
EPSS0.5%
EPSS percentile38th
FixUnknown

Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, can impact systems beyond the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Bytecodealliance Wasmtime 43.0.0 ≥ 25.0.0, < 36.0.7 ≥ 37.0.0, < 42.0.2

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official 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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2026-34987
BreachSpider IDBS-2026-GLOBAL-272706-C
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Published2026-04-09
Last modified2026-10-26
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-125: Out-of-Bounds Read

Software reads data past the boundary of an allocated buffer, leaking sensitive information or causing crashes.

CWE-787: Out-of-Bounds Write

Software writes data past buffer boundaries, corrupting memory and potentially enabling code execution.

Related attack patterns (CAPEC)

CAPEC-540 Overread Buffers via CWE-125

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

CVE-2026-34987 affects Wasmtime versions 25.0.0 to before 36.0.7, 42.0.2, and 43.0.1 when using the Winch compiler backend. It allows guest Wasm to access host memory outside its sandbox, potentially leading to arbitrary code execution.

The vulnerability arises from the Winch compiler backend in Wasmtime, which may improperly handle memory access in guest WebAssembly modules. This can be exploited by constructing malicious Wasm code that accesses host memory outside its allocated sandbox.

Questions

What is CVE-2026-34987?

CVE-2026-34987 affects Wasmtime versions 25.0.0 to before 36.0.7, 42.0.2, and 43.0.1 when using the Winch compiler backend. It allows guest Wasm to access host memory outside its sandbox, potentially leading to arbitrary code execution.

What is the CVSS score for CVE-2026-34987?

CVE-2026-34987 has CVSS 9.9 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H. EPSS: 0.5%.

Is CVE-2026-34987 actively exploited?

No confirmed active exploitation of CVE-2026-34987 as of 2026-11-03.

How do I remediate CVE-2026-34987?

Priority: IMMEDIATE. PSIRT: [email protected]

What systems are affected by CVE-2026-34987?

CVE-2026-34987 affects Bytecodealliance Wasmtime.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Bytecodealliance","product":"Wasmtime","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-10-26.