Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-34987

CVE-2026-34987: Wasmtime Winch Compiler RCE Vulnerability

CVE-2026-34987 is a remote code execution flaw in Wasmtime's Winch compiler that allows WebAssembly guests to escape memory sandboxes and access host memory. This article covers technical details, affected versions, and fixes.

Published: April 9, 2026

CVE-2026-34987 Overview

CVE-2026-34987 is a critical Out-of-Bounds Read vulnerability affecting Wasmtime, a runtime for WebAssembly. The vulnerability exists in the Winch (baseline) compiler backend, which is a non-default compiler option. When using the Winch compiler, properly constructed guest WebAssembly code can access host memory outside of its designated linear-memory sandbox, potentially leading to denial of service, arbitrary data leakage, or remote code execution.

Critical Impact

This vulnerability allows WebAssembly guests using the Winch compiler to escape sandbox boundaries and access up to 32KiB before or ~4GiB after the linear-memory region, potentially enabling arbitrary memory access, host process crashes, data exfiltration, or remote code execution.

Affected Products

  • Wasmtime versions 25.0.0 to before 36.0.7
  • Wasmtime versions 42.0.0 to before 42.0.2
  • Wasmtime versions 43.0.0 to before 43.0.1

Discovery Timeline

  • 2026-04-09 - CVE CVE-2026-34987 published to NVD
  • 2026-04-09 - Last updated in NVD database

Technical Details for CVE-2026-34987

Vulnerability Analysis

This vulnerability stems from an incorrect assumption in the Winch compiler backend regarding 32-bit memory offset handling within 64-bit registers. The Winch compiler incorrectly assumes that when a 32-bit memory offset is stored in a 64-bit register, the upper 32 bits will always be cleared. However, this assumption does not always hold true, creating a condition where the upper bits may contain residual data.

The impact is severe: an attacker controlling a WebAssembly guest can craft specific Wasm code that exploits this assumption to read or write memory outside the intended linear-memory sandbox. The proof-of-concept demonstrates access to 32KiB before the start of memory and approximately 4GiB after the start of memory. Since the underlying bug involves uncleared upper bits in 64-bit registers, closely related variants could potentially access truly arbitrary memory within the host process.

This vulnerability affects both aarch64 and x86-64 architectures theoretically, though the aarch64 case has a working proof-of-concept while the x86-64 case remains theoretical and may not be reachable in practice.

Root Cause

The root cause is a memory safety flaw in the Winch compiler's code generation (CWE-125: Out-of-bounds Read). The compiler generates code that assumes 32-bit memory offsets stored in 64-bit registers will have their upper 32 bits zeroed out. When this assumption fails, the resulting memory address calculation can point to locations outside the WebAssembly linear memory sandbox, bypassing both pre-guard and post-guard memory protections regardless of their configuration or size.

Attack Vector

The attack vector is network-accessible, requiring an attacker to deploy malicious WebAssembly code to a Wasmtime runtime configured to use the Winch compiler (-Ccompiler=winch). The attack requires:

  1. A Wasmtime instance using the non-default Winch compiler backend
  2. The ability to execute attacker-controlled WebAssembly code on the target system
  3. Crafted Wasm bytecode that manipulates memory offset values to trigger the incorrect register handling

The vulnerability enables sandbox escape where the WebAssembly guest can:

  • Read arbitrary host process memory (information disclosure)
  • Cause segmentation faults in the host process (denial of service)
  • With write primitives, potentially achieve arbitrary code execution

For detailed technical information, refer to the GitHub Security Advisory.

Detection Methods for CVE-2026-34987

Indicators of Compromise

  • Unexpected segmentation faults or crashes in Wasmtime host processes
  • Anomalous memory access patterns from WebAssembly modules
  • Wasmtime instances configured with -Ccompiler=winch flag running untrusted Wasm code
  • Unusual memory reads targeting addresses outside expected linear-memory boundaries

Detection Strategies

  • Monitor for Wasmtime process crashes with memory access violations in production environments
  • Audit Wasmtime configurations to identify instances using the Winch compiler backend
  • Implement runtime monitoring for WebAssembly modules accessing memory outside expected boundaries
  • Review application logs for unusual behavior from WebAssembly guest execution

Monitoring Recommendations

  • Enable detailed crash logging for Wasmtime processes to capture memory access violations
  • Implement host-level memory access monitoring for WebAssembly runtime processes
  • Set up alerts for unexpected process terminations in systems running Wasmtime with Winch
  • Monitor for signs of data exfiltration from hosts running WebAssembly workloads

How to Mitigate CVE-2026-34987

Immediate Actions Required

  • Upgrade Wasmtime to patched versions 36.0.7, 42.0.2, or 43.0.1 immediately
  • Switch from Winch compiler to the default Cranelift backend if upgrade is not immediately possible
  • Audit all Wasmtime deployments for use of the -Ccompiler=winch flag
  • Restrict execution of untrusted WebAssembly code until patches are applied

Patch Information

Bytecode Alliance has released security patches to address this vulnerability. The fixes are available in the following versions:

  • Wasmtime 36.0.7 - Fixes the vulnerability for the 36.x release branch
  • Wasmtime 42.0.2 - Fixes the vulnerability for the 42.x release branch
  • Wasmtime 43.0.1 - Fixes the vulnerability for the 43.x release branch

Organizations should upgrade to the appropriate patched version for their deployment. For additional details, consult the GitHub Security Advisory.

Workarounds

  • Switch to the default Cranelift compiler backend by removing the -Ccompiler=winch configuration option
  • Avoid running untrusted WebAssembly code on systems using the Winch compiler
  • Implement additional process isolation for Wasmtime instances executing third-party Wasm modules
  • Consider using container or VM-based isolation as an additional defense layer for WebAssembly workloads
bash
# Switch from Winch to Cranelift compiler (default)
# Remove or replace the -Ccompiler=winch flag
wasmtime run --config-option compiler=cranelift your_module.wasm

# Verify compiler backend in use
wasmtime compile --help | grep compiler

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechWasmtime

  • SeverityCRITICAL

  • CVSS Score9.0

  • Known ExploitedNo
  • CVSS Vector
  • 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-125
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-34971: Wasmtime Cranelift RCE Vulnerability

  • CVE-2026-35195: Wasmtime Buffer Overflow Vulnerability

  • CVE-2026-35186: Wasmtime Winch Compiler DoS Vulnerability

  • CVE-2026-34988: Wasmtime Information Disclosure Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English