Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2025-30393 Overview
CVE-2025-30393 is a use-after-free vulnerability [CWE-416] in Microsoft Office Excel that allows an unauthorized attacker to execute arbitrary code locally. The flaw affects Microsoft 365 Apps and Microsoft Office Long Term Servicing Channel 2021 and 2024 on both Windows and macOS. Exploitation requires user interaction, typically by opening a crafted Excel workbook. Successful exploitation yields code execution in the context of the user, leading to full compromise of confidentiality, integrity, and availability on the affected host. Microsoft published the advisory on May 13, 2025 as part of its monthly security release.
Critical Impact
Opening a malicious Excel file can give attackers arbitrary code execution with the privileges of the current user, enabling malware deployment, credential theft, and lateral movement.
Affected Products
- Microsoft 365 Apps (Enterprise)
- Microsoft Office Long Term Servicing Channel 2021 (Windows and macOS)
- Microsoft Office Long Term Servicing Channel 2024 (Windows and macOS)
Discovery Timeline
- 2025-05-13 - CVE-2025-30393 published to NVD and addressed in Microsoft's security update
- 2025-05-19 - Last updated in NVD database
Technical Details for CVE-2025-30393
Vulnerability Analysis
The vulnerability is a use-after-free condition inside Microsoft Office Excel. An attacker crafts an Excel document that triggers premature release of a heap-allocated object while a reference to it remains live. When Excel later dereferences the dangling pointer, the attacker-controlled memory layout drives execution to attacker-supplied code.
Exploitation is local and requires the victim to open the malicious file. The attacker does not need prior authentication on the target system. Because Excel runs in user context, the resulting code execution inherits the user's privileges and access to network resources, mailboxes, and cached credentials.
The attack surface includes phishing campaigns delivering weaponized .xlsx, .xlsm, or legacy .xls files, as well as documents hosted on file shares and collaboration platforms. Preview-pane rendering and Protected View reduce but do not eliminate risk if users enable editing.
Root Cause
The root cause is improper management of object lifetime within Excel's document parsing or object model. A code path frees a memory region but retains an outstanding pointer, allowing later operations on the freed object. Attackers shape the freed allocation through heap grooming so the reused memory contains controlled data.
Attack Vector
The attack vector is local with user interaction. An attacker delivers a malicious workbook through email, web download, or shared storage. The vulnerability triggers when Excel parses specific document structures or executes embedded logic that exercises the vulnerable code path.
The vulnerability mechanism is described in the Microsoft CVE-2025-30393 Advisory. No public proof-of-concept code or exploit module has been published, and the issue is not listed in the CISA Known Exploited Vulnerabilities catalog. The EPSS score is 0.742% (73rd percentile), indicating elevated but not confirmed exploitation likelihood.
Detection Methods for CVE-2025-30393
Indicators of Compromise
- Excel (EXCEL.EXE) spawning unusual child processes such as cmd.exe, powershell.exe, rundll32.exe, regsvr32.exe, or mshta.exe
- Office processes writing executable content to %TEMP%, %APPDATA%, or %PROGRAMDATA% and then launching it
- Crash or Watson reports for EXCEL.EXE referencing access violations on freed heap memory
- Outbound network connections initiated by EXCEL.EXE to uncategorized or newly registered domains shortly after a workbook is opened
Detection Strategies
- Hunt for parent-child process anomalies where EXCEL.EXE is the parent of script interpreters, LOLBins, or unsigned binaries
- Inspect inbound email attachments and file shares for Excel workbooks containing unusual embedded objects, OLE streams, or malformed BIFF/OOXML records
- Correlate user-opened document events with subsequent persistence creation in Run keys, scheduled tasks, or WMI subscriptions
Monitoring Recommendations
- Enable Microsoft Defender Attack Surface Reduction rules that block Office applications from creating child processes and from injecting code into other processes
- Log and review Excel macro and add-in execution events through AMSI and Sysmon Event IDs 1, 7, and 11
- Monitor endpoint telemetry for heap corruption signatures and exploit mitigation events (CFG, CET, EMET-style triggers) involving EXCEL.EXE
How to Mitigate CVE-2025-30393
Immediate Actions Required
- Apply the May 2025 Microsoft security updates to all Microsoft 365 Apps and Office LTSC 2021 and 2024 installations on Windows and macOS
- Verify Office build numbers across the fleet and prioritize endpoints used by high-risk roles such as finance, executives, and IT administrators
- Reinforce user awareness on opening unexpected spreadsheets, especially those requesting that Protected View or macros be disabled
Patch Information
Microsoft released fixes on May 13, 2025. Refer to the Microsoft CVE-2025-30393 Advisory for the specific build numbers per servicing channel. Update through Click-to-Run, Microsoft Update, WSUS, Intune, or the macOS AutoUpdate tool depending on deployment model.
Workarounds
- Keep Protected View enabled for files originating from the internet, Outlook attachments, and unsafe locations
- Block macros in Office files from the internet using Group Policy or Intune configuration profiles
- Apply ASR rules to prevent Office applications from spawning child processes and creating executable content
- Restrict delivery of Excel attachments at the email gateway or detonate them in a sandbox before delivery
# Configuration example: enable ASR rules via PowerShell
Set-MpPreference -AttackSurfaceReductionRules_Ids `
D4F940AB-401B-4EFC-AADC-AD5F3C50688A, `
3B576869-A4EC-4529-8536-B80A7769E899, `
92E97FA1-2EDF-4476-BDD6-9DD0B4DDDC7B `
-AttackSurfaceReductionRules_Actions Enabled,Enabled,Enabled
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

