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-40362

CVE-2026-40362: Microsoft Excel Buffer Overflow Vulnerability

CVE-2026-40362 is a heap-based buffer overflow vulnerability in Microsoft Office Excel that enables attackers to execute arbitrary code locally. This article covers technical details, affected versions, and mitigation strategies.

Published: May 17, 2026

CVE-2026-40362 Overview

CVE-2026-40362 is a heap-based buffer overflow vulnerability in Microsoft Office Excel. The flaw allows an unauthorized attacker to execute arbitrary code locally on a target system. Exploitation requires user interaction, typically through opening a crafted spreadsheet file. The issue is tracked under CWE-122: Heap-based Buffer Overflow and carries a CVSS 3.1 base score of 7.8.

Microsoft published the advisory on May 12, 2026, with the entry last modified on May 13, 2026. Successful exploitation results in high impact to confidentiality, integrity, and availability within the user's security context.

Critical Impact

An attacker who convinces a user to open a malicious Excel document can execute code with the privileges of the current user, enabling local compromise of the host.

Affected Products

  • Microsoft Office Excel (specific build numbers listed in the Microsoft Security Response Center advisory)
  • Microsoft 365 Apps installations that include Excel
  • Standalone Microsoft Office distributions containing the vulnerable Excel component

Discovery Timeline

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

Technical Details for CVE-2026-40362

Vulnerability Analysis

The vulnerability is a heap-based buffer overflow in Microsoft Office Excel. Heap overflows occur when a program writes data beyond the bounds of a buffer allocated on the heap. The adjacent heap metadata or neighboring allocations can be corrupted as a result.

In the context of Excel, parsing routines for spreadsheet file formats process attacker-controlled structures. When length fields or record sizes are not validated against the destination buffer, the parser writes past the allocation boundary. An attacker who shapes the heap layout can overwrite function pointers, virtual table entries, or other control data to redirect execution.

The attack vector is local and requires user interaction. The targeted user must open the crafted file in a vulnerable Excel build. No prior authentication is required on the system beyond the user's own session. Exploitation yields code execution at the privilege level of the Excel process.

Root Cause

The root cause is insufficient bounds checking during deserialization of spreadsheet content into heap-allocated buffers. The classification under [CWE-122] indicates that the overflow occurs in dynamically allocated memory rather than the stack. Parser logic accepts attacker-controlled size or offset values without validating them against allocation limits.

Attack Vector

An attacker crafts a malicious .xlsx, .xls, or related Excel document containing the triggering structure. The file is delivered through phishing email, web download, or a removable medium. When the victim opens the file, Excel parses the malformed content and the overflow occurs in the worker process, leading to attacker-controlled execution.

No verified proof-of-concept code is publicly available for CVE-2026-40362. See the Microsoft CVE-2026-40362 Advisory for vendor-confirmed technical context.

Detection Methods for CVE-2026-40362

Indicators of Compromise

  • Unexpected child processes spawned by EXCEL.EXE, particularly cmd.exe, powershell.exe, rundll32.exe, or wscript.exe
  • Excel writing executable content to user-writable directories such as %TEMP%, %APPDATA%, or %LOCALAPPDATA%
  • Crashes in EXCEL.EXE followed by anomalous process or network activity
  • Inbound delivery of unsolicited spreadsheet attachments from external senders

Detection Strategies

  • Monitor process lineage for EXCEL.EXE parents creating scripting interpreters or LOLBins
  • Inspect Office telemetry and Windows Error Reporting events for repeated Excel exceptions tied to heap corruption
  • Apply YARA or static rules to flag spreadsheet files containing malformed record structures or anomalous embedded objects

Monitoring Recommendations

  • Enable Microsoft Defender Attack Surface Reduction rules that block Office applications from creating child processes
  • Forward Sysmon Event IDs 1, 7, and 11 from endpoints running Office to a centralized analytics pipeline
  • Alert on outbound network connections originating from EXCEL.EXE to non-Microsoft destinations

How to Mitigate CVE-2026-40362

Immediate Actions Required

  • Apply the Microsoft security update referenced in the Microsoft CVE-2026-40362 Advisory to all systems running Excel
  • Inventory Office and Microsoft 365 Apps installations and confirm patch deployment status across the fleet
  • Enforce Protected View and Block Macros from the Internet for Office documents originating outside the organization

Patch Information

Microsoft has released security updates addressing CVE-2026-40362. Refer to the Microsoft CVE-2026-40362 Advisory for the specific Knowledge Base articles and build numbers that correspond to each affected channel of Microsoft Office and Microsoft 365 Apps.

Workarounds

  • Open untrusted spreadsheets only in Protected View and disable editing unless the source is verified
  • Block inbound email attachments with Excel file extensions from external senders pending patch deployment
  • Configure Group Policy to disable legacy binary file formats where business requirements allow
bash
# Verify Office Click-to-Run version on Windows
reg query "HKLM\SOFTWARE\Microsoft\Office\ClickToRun\Configuration" /v VersionToReport

# Force an Office update check
"C:\Program Files\Common Files\Microsoft Shared\ClickToRun\OfficeC2RClient.exe" /update user

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • 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-122
  • Technical References
  • Microsoft CVE-2026-40362 Advisory
  • Related CVEs
  • CVE-2026-42831: Microsoft Office Buffer Overflow Flaw

  • CVE-2026-40363: Microsoft Office Buffer Overflow Flaw

  • CVE-2026-26108: Microsoft Excel Buffer Overflow Vulnerability

  • CVE-2025-60724: Microsoft Office Buffer Overflow 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