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

CVE-2026-40358: Microsoft Office Use After Free Flaw

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

Published: May 17, 2026

CVE-2026-40358 Overview

CVE-2026-40358 is a use-after-free vulnerability [CWE-416] in Microsoft Office that enables local code execution. An unauthorized attacker can exploit improper memory handling to execute arbitrary code in the context of the current user. The vulnerability requires no privileges and no user interaction once the malicious content is processed.

Microsoft published the advisory on May 12, 2026, and updated it on May 13, 2026. The flaw carries a high severity rating with confidentiality, integrity, and availability impacts. Successful exploitation grants attackers the same permissions as the victim user, which can lead to data theft, persistence, or lateral movement within enterprise environments.

Critical Impact

Local code execution in Microsoft Office allows attackers to run arbitrary code with the privileges of the logged-on user, enabling document-based attack chains against enterprise endpoints.

Affected Products

  • Microsoft Office (version details available in the Microsoft Security Update Guide)
  • Refer to the vendor advisory for the complete list of affected Office builds and channels
  • Both perpetual and Click-to-Run distributions may be impacted pending Microsoft confirmation

Discovery Timeline

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

Technical Details for CVE-2026-40358

Vulnerability Analysis

The vulnerability is a use-after-free condition [CWE-416] within Microsoft Office. Use-after-free flaws occur when an application continues to reference memory after it has been freed. An attacker who controls the contents of the reallocated memory region can hijack program flow and execute arbitrary code.

In the context of Microsoft Office, this class of bug is typically reached through crafted document content that triggers object lifecycle mismanagement. When the application dereferences a dangling pointer, attacker-controlled data is interpreted as a valid object, leading to code execution under the user's security context.

The attack vector is local, meaning the attacker must deliver a malicious file to the target system. Common delivery methods for Office-based exploits include phishing emails with attachments and links to malicious documents on file shares.

Root Cause

The root cause is improper memory management within an Office component that fails to nullify or track pointers after the underlying object is released. Subsequent operations reuse the freed allocation, allowing attacker-supplied content to occupy the memory region. The application then operates on corrupted object state.

Attack Vector

Exploitation requires a victim to open or process a malicious Office document on a vulnerable system. The CVSS vector indicates no privileges and no user interaction are required at the exploitation stage, though delivery of the payload typically involves social engineering. Successful exploitation yields code execution in the current user context, which attackers can chain with privilege escalation primitives.

No verified public proof-of-concept code is currently available for CVE-2026-40358. Technical specifics should be obtained from the Microsoft Security Update Guide.

Detection Methods for CVE-2026-40358

Indicators of Compromise

  • Unexpected child processes spawned by winword.exe, excel.exe, powerpnt.exe, or outlook.exe such as cmd.exe, powershell.exe, or rundll32.exe
  • Office applications writing executable content to %TEMP%, %APPDATA%, or %PUBLIC% directories
  • Outbound network connections initiated directly from Office processes to untrusted hosts
  • Crash telemetry referencing access violations or heap corruption in Office binaries

Detection Strategies

  • Monitor process lineage where Office applications launch script interpreters or LOLBins
  • Inspect inbound email attachments and shared documents for anomalous embedded objects, OLE streams, or active content
  • Correlate Office crash events from Windows Error Reporting with subsequent suspicious process activity on the same host

Monitoring Recommendations

  • Enable Microsoft Defender Attack Surface Reduction (ASR) rules that block Office from creating child processes and writing executable content
  • Forward Sysmon process creation, image load, and file creation events to a centralized SIEM for behavioral analytics
  • Track endpoints that have not yet received the Microsoft May 2026 security update to prioritize patch deployment

How to Mitigate CVE-2026-40358

Immediate Actions Required

  • Apply the Microsoft security update referenced in the MSRC advisory for CVE-2026-40358 to all affected Office installations
  • Prioritize patching for users who routinely handle external documents, including finance, HR, and executive staff
  • Verify that Click-to-Run updates have completed by checking Office build numbers against the vendor-published fixed versions

Patch Information

Microsoft has issued a security update addressing CVE-2026-40358. Administrators should consult the Microsoft Security Update Guide for the specific KB numbers and Office build versions that remediate the vulnerability. Deploy updates through Microsoft Update, WSUS, Intune, or Configuration Manager.

Workarounds

  • Enable Protected View and Office Application Guard to isolate documents originating from the internet or email
  • Configure ASR rules to block Office child process creation and executable content creation from Office macros
  • Disable or restrict legacy file formats and active content where they are not required for business operations
  • Apply application allow-listing to prevent untrusted binaries from executing if exploitation succeeds
bash
# Enable Microsoft Defender ASR rules to reduce Office exploitation risk
# Block Office applications from creating child processes
Set-MpPreference -AttackSurfaceReductionRules_Ids D4F940AB-401B-4EFC-AADC-AD5F3C50688A -AttackSurfaceReductionRules_Actions Enabled

# Block Office applications from creating executable content
Set-MpPreference -AttackSurfaceReductionRules_Ids 3B576869-A4EC-4529-8536-B80A7769E899 -AttackSurfaceReductionRules_Actions Enabled

# Block Win32 API calls from Office macros
Set-MpPreference -AttackSurfaceReductionRules_Ids 92E97FA1-2EDF-4476-BDD6-9DD0B4DDDC7B -AttackSurfaceReductionRules_Actions 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 Score8.4

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-416
  • Technical References
  • Microsoft Security Update CVE-2026-40358
  • 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-40359: Microsoft Excel Use After Free Vulnerability
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