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-2025-30386

CVE-2025-30386: Microsoft 365 Apps Use After Free Flaw

CVE-2025-30386 is a use after free vulnerability in Microsoft 365 Apps that enables unauthorized attackers to execute code locally. This article covers the technical details, affected versions, security impact, and mitigation.

Published: May 26, 2026

CVE-2025-30386 Overview

CVE-2025-30386 is a use-after-free vulnerability [CWE-416] in Microsoft Office that enables local code execution. An unauthorized attacker can execute arbitrary code in the context of the current user after the victim opens a crafted Office document. Microsoft published the advisory on May 13, 2025, covering Microsoft 365 Apps, Microsoft 365 Copilot, Microsoft Office 2016 and 2019, and the Office Long Term Servicing Channel 2021 and 2024 on both Windows and macOS. Successful exploitation results in high impact to confidentiality, integrity, and availability, and exploitation requires user interaction such as opening a malicious file.

Critical Impact

Successful exploitation grants arbitrary code execution as the current user across supported Microsoft Office and 365 Apps builds, enabling malware installation and data theft.

Affected Products

  • Microsoft 365 Apps (Enterprise, x64 and x86)
  • Microsoft 365 Copilot (Android) and Microsoft Office 2016 / 2019 (x64 and x86)
  • Microsoft Office Long Term Servicing Channel 2021 and 2024 (Windows x64/x86 and macOS)

Discovery Timeline

  • 2025-05-13 - CVE-2025-30386 published to NVD and addressed in Microsoft's May 2025 security update
  • 2026-05-22 - Last updated in NVD database

Technical Details for CVE-2025-30386

Vulnerability Analysis

The issue is a use-after-free condition in Microsoft Office document parsing logic. The application references a heap object after the allocator has freed it, allowing an attacker to reclaim the memory with attacker-controlled data. When Office subsequently dereferences the dangling pointer, the controlled data is interpreted as a valid object, including function pointers and virtual table entries.

The attack is local and requires user interaction. A victim must open a crafted Office document delivered through email, a shared drive, or a download. The Preview Pane is also a viable trigger surface for Office use-after-free flaws, which reduces the interaction burden on the victim.

Exploitation yields code execution at the privilege level of the user running Office. Attackers commonly chain such flaws with a local privilege escalation to obtain SYSTEM-level access or use the foothold to stage ransomware, credential theft, and lateral movement.

Root Cause

The defect maps to CWE-416: Use After Free. Office releases an internal object during document processing but retains a reference that is later dereferenced. The lifetime mismanagement between object owners and consumers creates the dangling pointer that an attacker manipulates through specially crafted document structures.

Attack Vector

The attack vector is local with low complexity and no required privileges, but user interaction is mandatory. The attacker delivers a weaponized Office document, and the target opens it in a vulnerable build of Office, 365 Apps, or 365 Copilot. Specific exploitation code has not been published, and Microsoft has not reported in-the-wild exploitation.

For exploitation details, see the Microsoft Vulnerability Advisory CVE-2025-30386.

Detection Methods for CVE-2025-30386

Indicators of Compromise

  • Office processes such as WINWORD.EXE, EXCEL.EXE, or POWERPNT.EXE spawning command interpreters like cmd.exe, powershell.exe, or wscript.exe.
  • Unexpected child processes of Office writing executables, scripts, or DLLs into %TEMP%, %APPDATA%, or %LOCALAPPDATA%.
  • Outbound network connections initiated by Office processes shortly after a document is opened.
  • Crash or Watson telemetry showing access violations in Office binaries while parsing untrusted documents.

Detection Strategies

  • Hunt for Office applications loading unsigned or unusual DLLs from user-writable paths.
  • Alert on parent-child process anomalies where Office spawns LOLBins such as mshta.exe, regsvr32.exe, or rundll32.exe.
  • Inspect inbound email attachments and SharePoint uploads for Office documents containing embedded objects or obfuscated payloads.

Monitoring Recommendations

  • Enable and forward Microsoft Defender, Sysmon, and Office telemetry to a central data lake for behavioral analysis.
  • Track build numbers of Microsoft 365 Apps and Office across the fleet to confirm patch deployment status.
  • Correlate document open events with subsequent process, file, and network activity to identify post-exploitation behavior.

How to Mitigate CVE-2025-30386

Immediate Actions Required

  • Apply the May 2025 Microsoft security updates to all Office, Microsoft 365 Apps, and Office LTSC installations on Windows and macOS.
  • Update Microsoft 365 Copilot for Android through the Google Play Store to the patched release.
  • Restrict opening of Office documents from untrusted sources and enforce Protected View and Mark-of-the-Web on downloaded files.

Patch Information

Microsoft addressed CVE-2025-30386 in its May 13, 2025 security release. Patched builds are available through Click-to-Run updates for Microsoft 365 Apps, the Microsoft Update channel for Office 2016/2019 and Office LTSC 2021/2024, and the Mac AutoUpdate channel for macOS builds. Refer to the Microsoft Vulnerability Advisory CVE-2025-30386 for the exact build numbers per channel.

Workarounds

  • Enforce Office Attack Surface Reduction rules that block child process creation and Win32 API calls from Office macros.
  • Disable legacy Office file formats or require them to open in Protected View when patching is delayed.
  • Use email gateway and content disarm and reconstruction (CDR) controls to strip active content from inbound Office attachments.
bash
# Example: enable Microsoft Defender ASR rule blocking Office child processes
Set-MpPreference -AttackSurfaceReductionRules_Ids D4F940AB-401B-4EFC-AADC-AD5F3C50688A `
                 -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 Score7.8

  • EPSS Probability0.59%

  • 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
  • Vendor Resources
  • Microsoft Vulnerability Advisory CVE-2025-30386
  • Related CVEs
  • 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

  • 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