The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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-40359

CVE-2026-40359: Microsoft Excel Use After Free Vulnerability

CVE-2026-40359 is a use after free vulnerability in Microsoft Office Excel that enables unauthorized attackers to execute arbitrary code locally. This article covers technical details, affected versions, and mitigation strategies.

Published: May 17, 2026

CVE-2026-40359 Overview

CVE-2026-40359 is a use-after-free vulnerability [CWE-416] in Microsoft Office Excel that allows local code execution. An unauthorized attacker can execute arbitrary code on an affected system by convincing a user to open a crafted Excel document. The flaw resides in how Excel manages memory objects during document processing, where freed memory is subsequently accessed and reused. Exploitation requires user interaction but no prior privileges. Successful exploitation yields high impact on confidentiality, integrity, and availability of the target system.

Critical Impact

Attackers can achieve arbitrary code execution in the context of the current user by delivering a malicious Excel file, enabling lateral movement, data theft, and persistence.

Affected Products

  • Microsoft Office Excel (refer to the Microsoft CVE-2026-40359 Advisory for the full list of affected versions)

Discovery Timeline

  • 2026-05-12 - CVE-2026-40359 published to NVD
  • 2026-05-13 - Last updated in NVD database

Technical Details for CVE-2026-40359

Vulnerability Analysis

The vulnerability is a use-after-free condition in Microsoft Office Excel. Excel allocates and tracks numerous internal objects while parsing spreadsheets, including cell references, embedded objects, and formula structures. When an object is freed but a dangling pointer to the original memory remains accessible, subsequent operations can dereference that pointer. An attacker who controls allocator behavior through crafted document content can place attacker-influenced data into the freed slot, causing the dangling pointer to operate on attacker-controlled memory.

This condition leads to arbitrary code execution in the security context of the user opening the file. Because Excel commonly runs with standard user privileges, the immediate code execution inherits those privileges. Attackers typically chain such flaws with privilege escalation primitives to gain higher access.

Root Cause

The root cause is improper lifetime management of heap-allocated objects during Excel document processing [CWE-416]. A pointer continues to reference memory after that memory has been released to the allocator, and a later operation reads or writes through the stale reference.

Attack Vector

The attack vector is local and requires user interaction. An attacker delivers a crafted .xlsx, .xls, or related Excel-compatible file through phishing emails, file shares, web downloads, or removable media. Opening the file in a vulnerable Excel version triggers the freed-object reuse path and executes attacker-supplied code.

No verified proof-of-concept code is publicly available. Refer to the Microsoft CVE-2026-40359 Advisory for vendor-supplied technical details.

Detection Methods for CVE-2026-40359

Indicators of Compromise

  • Unexpected Excel processes (EXCEL.EXE) spawning child processes such as cmd.exe, powershell.exe, rundll32.exe, or wscript.exe.
  • Excel processes writing executable content to %TEMP%, %APPDATA%, or other user-writable directories.
  • Inbound Excel attachments from untrusted senders containing embedded objects, external links, or anomalous file structure.
  • Crash events for EXCEL.EXE with access violation exceptions preceding suspicious process activity.

Detection Strategies

  • Hunt for parent-child process relationships where Office applications spawn scripting interpreters or living-off-the-land binaries.
  • Inspect endpoint telemetry for memory access violations in EXCEL.EXE correlated with document open events.
  • Monitor for outbound network connections initiated by Excel immediately after document open operations.

Monitoring Recommendations

  • Forward Office process telemetry, Sysmon Event ID 1 (process create) and Event ID 11 (file create), and Windows Defender exploit guard logs to a central analytics platform.
  • Enable Microsoft Office Attack Surface Reduction (ASR) rules and audit blocked or alerted events.
  • Alert on Excel writing files to startup folders, scheduled task creation by Office processes, and registry persistence modifications shortly after document interaction.

How to Mitigate CVE-2026-40359

Immediate Actions Required

  • Apply the security update referenced in the Microsoft CVE-2026-40359 Advisory to all systems running Microsoft Office Excel.
  • Prioritize patching for users who routinely process external Excel attachments such as finance, procurement, and executive assistants.
  • Block inbound Excel attachments from untrusted senders at the email gateway until patching completes.

Patch Information

Microsoft has issued a security update through the standard update channel. Review the Microsoft CVE-2026-40359 Advisory for affected build numbers and KB references, then deploy through Microsoft Update, WSUS, Intune, or Configuration Manager.

Workarounds

  • Enable Protected View and Application Guard for Office to isolate documents originating from the internet and email.
  • Enable Microsoft Defender ASR rules that block Office applications from creating child processes and from injecting code into other processes.
  • Configure Group Policy to disable execution of macros from documents downloaded from the internet.
  • Educate users to avoid opening unexpected Excel attachments and to report suspicious files to the security team.
bash
# Configuration example: enable ASR rules via PowerShell to reduce Office abuse
Set-MpPreference -AttackSurfaceReductionRules_Ids `
  D4F940AB-401B-4EFC-AADC-AD5F3C50688A, `
  3B576869-A4EC-4529-8536-B80A7769E899, `
  75668C1F-73B5-4CF0-BB93-3ECF5CB7CC84 `
  -AttackSurfaceReductionRules_Actions Enabled,Enabled,Enabled

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

  • Vulnerability Details
  • TypeUse After Free

  • Vendor/TechMicrosoft Office

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-416
  • Technical References
  • Microsoft CVE-2026-40359 Advisory
  • Related CVEs
  • CVE-2025-30386: Microsoft 365 Apps Use After Free Flaw

  • CVE-2025-59234: Microsoft 365 Apps Use After Free Flaw

  • CVE-2025-59227: Microsoft 365 Apps Use-After-Free RCE

  • CVE-2026-40358: Microsoft Office Use After Free Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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