CVE-2026-81386 Overview
CVE-2026-81386 is a heap-based buffer overflow [CWE-122] in Microsoft Office Excel that allows an attacker to execute arbitrary code on a target system. Exploitation requires a user to open a malicious Excel document, making the flaw well-suited for phishing and targeted spear-phishing campaigns. The vulnerability affects a broad range of Microsoft Office and Microsoft 365 releases across Windows and macOS. Successful exploitation yields code execution in the context of the current user, which can be used to install malware, exfiltrate data, or stage further intrusion.
Critical Impact
A crafted Excel file can trigger heap corruption in EXCEL.EXE, leading to arbitrary local code execution under the invoking user's privileges across supported Windows and macOS Office builds.
Affected Products
- Microsoft 365 Apps (Enterprise, x86 and x64)
- Microsoft Excel 2016, Microsoft Office 2016 / 2019 / 2021 LTSC / 2024 LTSC (x86 and x64)
- Microsoft 365 and Office 2021 / 2024 LTSC for macOS
Discovery Timeline
- 2026-09-08 - CVE-2026-81386 published to NVD
- 2026-09-09 - Last updated in NVD database
Technical Details for CVE-2026-81386
Vulnerability Analysis
The vulnerability is a heap-based buffer overflow inside Microsoft Excel's document parsing logic. When Excel processes a specially crafted spreadsheet, it writes attacker-controlled data beyond the bounds of a heap-allocated buffer. The overflow corrupts adjacent heap metadata or object pointers, giving an attacker a path to hijack control flow.
Because the flaw resides in the parser, the malicious payload is delivered as a file. The user only needs to open the document; no additional privileges are required. Code executes with the rights of the logged-on user, so exploitation on a workstation with local administrator rights yields full host compromise.
The issue affects Office builds on both Windows and macOS, indicating the vulnerable parsing code is shared across platforms. Attackers commonly weaponize this class of flaw by pairing it with a heap-grooming primitive to place a controlled object adjacent to the overflown buffer.
Root Cause
The root cause is improper validation of a size or length field during deserialization of an Excel workbook structure. The allocator reserves a buffer based on one value, while a subsequent copy operation trusts a different, attacker-controlled length, resulting in an out-of-bounds write on the heap [CWE-122].
Attack Vector
The attack vector is local and requires user interaction. An attacker delivers a malicious .xlsx, .xls, or related Excel file through email, a shared drive, a web download, or a collaboration platform. Opening the file in a vulnerable Excel build triggers the overflow and executes attacker-supplied shellcode.
The vulnerability manifests during workbook parsing. Refer to the Microsoft CVE-2026-81386 Update Guide for vendor technical details.
Detection Methods for CVE-2026-81386
Indicators of Compromise
- Unexpected child processes spawned by EXCEL.EXE, such as cmd.exe, powershell.exe, wscript.exe, mshta.exe, or rundll32.exe.
- Excel process crashes with heap corruption exceptions (STATUS_HEAP_CORRUPTION, 0xC0000374) shortly after opening a document.
- Outbound network connections initiated by EXCEL.EXE to previously unseen domains or IPs following document open events.
- New persistence artifacts written after Excel activity, including Run keys, scheduled tasks, or startup folder entries.
Detection Strategies
- Hunt for Office applications writing executable content (.exe, .dll, .js, .hta) to disk in user-writable paths such as %TEMP% or %APPDATA%.
- Correlate Excel document open telemetry with subsequent process creation and network activity to identify anomalous parent-child chains.
- Alert on Office applications loading unexpected modules or performing memory allocations with RWX permissions, consistent with shellcode staging.
Monitoring Recommendations
- Enable and forward Sysmon Event ID 1 (process create), 3 (network connect), and 11 (file create) from endpoints running Microsoft Office.
- Monitor Windows Error Reporting and application crash logs for repeated EXCEL.EXE faults, which may indicate exploitation attempts or unstable payloads.
- Ingest email gateway logs to track delivery of Excel attachments from external senders and correlate with endpoint open events.
How to Mitigate CVE-2026-81386
Immediate Actions Required
- Apply the security updates referenced in the Microsoft CVE-2026-81386 Update Guide to all affected Office and Microsoft 365 Apps installations.
- Prioritize patching endpoints belonging to high-risk users such as executives, finance, HR, and IT administrators who routinely open external Excel files.
- Block or quarantine inbound Excel attachments from untrusted external senders at the email gateway until patches are deployed.
Patch Information
Microsoft has published fixes through its standard update channels. Microsoft 365 Apps receive updates through Click-to-Run, while perpetual releases (Office 2016, 2019, 2021 LTSC, 2024 LTSC) receive updates through Microsoft Update or the Office Deployment Tool. macOS builds are updated through Microsoft AutoUpdate. Confirm each managed host reports a build number at or above the fixed version listed in the vendor advisory.
Workarounds
- Enable Protected View and Office Protected View for files originating from the Internet and from Outlook attachments, preventing active parsing of untrusted content.
- Configure Attack Surface Reduction (ASR) rules to block Office applications from creating child processes and from writing executable content.
- Enforce Office macro and add-in restrictions through Group Policy or Intune, and disable legacy binary formats where feasible using the File Block Settings policy.
# Configuration example
# Refer to Microsoft's advisory for exact patch build numbers per channel
# https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-81386
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

