Skip to main content
Vulnerability Database/CVE-2026-77902

CVE-2026-77902: Microsoft 365 Apps Buffer Overflow

CVE-2026-77902 is a heap-based buffer overflow in Microsoft Office Excel that enables attackers to execute malicious code remotely. This article covers the technical details, affected versions, security impact, and mitigation strategies.

Published:

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-2026-77902 Overview

CVE-2026-77902 is a heap-based buffer overflow vulnerability in Microsoft Office Excel that enables remote code execution. The flaw affects Microsoft 365 Apps, Microsoft 365, Office 2021, and Office 2024 across Windows (x86 and x64) and macOS platforms. An unauthorized attacker can execute arbitrary code when a target user opens a crafted Excel document delivered over a network channel such as email or a web download. The vulnerability is classified under CWE-122: Heap-based Buffer Overflow and requires user interaction to trigger. Microsoft published the advisory on October 13, 2026.

Critical Impact

Successful exploitation grants attackers code execution in the context of the logged-in user, enabling malware deployment, credential theft, and lateral movement from a single opened spreadsheet.

Affected Products

  • Microsoft 365 Apps (Enterprise, x86 and x64)
  • Microsoft 365 for macOS
  • Microsoft Office 2021 LTSC (Windows x86/x64 and macOS)
  • Microsoft Office 2024 LTSC (Windows x86/x64 and macOS)

Discovery Timeline

  • 2026-10-13 - Microsoft publishes security advisory for CVE-2026-77902
  • 2026-10-13 - CVE-2026-77902 published to the National Vulnerability Database (NVD)
  • 2026-10-14 - Last updated in NVD database

Technical Details for CVE-2026-77902

Vulnerability Analysis

The vulnerability stems from improper bounds checking when Excel parses structured data within spreadsheet files. When a crafted workbook is opened, Excel allocates a heap buffer sized based on attacker-controlled fields in the file. Subsequent write operations exceed the allocated buffer, corrupting adjacent heap memory. Attackers can shape the heap layout to overwrite function pointers, vtable entries, or object metadata and redirect execution to attacker-controlled code. Because Excel runs in the user's security context, code execution inherits the user's permissions and local access. The network attack vector reflects the common delivery path — phishing attachments or links to malicious spreadsheets hosted on web servers or SharePoint-like services.

Root Cause

The root cause is a heap-based buffer overflow [CWE-122] within Excel's document parsing logic. Microsoft has not published parser-level details, but heap overflows in Office file formats typically originate from inconsistent length fields, missing integer-overflow checks during size calculations, or unchecked memcpy-style operations when deserializing records.

Attack Vector

Exploitation requires an attacker to deliver a malicious Excel file and convince a user to open it. Common delivery mechanisms include phishing emails with attachments, links to attacker-controlled web pages, cloud storage shares, and Preview Pane rendering where applicable. No credentials are required on the target system, and no prior foothold is needed.

No public proof-of-concept exploit is available. Technical details are limited to the vendor advisory; see the Microsoft CVE-2026-77902 Advisory for authoritative information.

Detection Methods for CVE-2026-77902

Indicators of Compromise

  • Unexpected EXCEL.EXE child processes such as cmd.exe, powershell.exe, rundll32.exe, regsvr32.exe, or mshta.exe.
  • Excel spawning network connections to untrusted hosts shortly after a document is opened.
  • Creation of executables, scripts, or scheduled tasks in user-writable directories (%APPDATA%, %TEMP%, %LOCALAPPDATA%) by Office processes.
  • Crash events referencing EXCEL.EXE with access violation faults in heap manager modules.

Detection Strategies

  • Monitor process ancestry for Office applications spawning scripting or living-off-the-land binaries.
  • Alert on Excel writing to or executing files in temp and startup locations.
  • Correlate inbound email attachments containing .xls, .xlsx, .xlsm, .xlsb, and .xll files with downstream endpoint behavior.
  • Enable Microsoft Defender Attack Surface Reduction (ASR) rules that block Office child-process creation and audit the telemetry.

Monitoring Recommendations

  • Centralize endpoint, email gateway, and proxy telemetry to trace delivery through execution.
  • Hunt for Office processes making outbound HTTP/HTTPS requests to recently registered or low-reputation domains.
  • Track Office version inventory to confirm patch coverage across Windows and macOS endpoints.

How to Mitigate CVE-2026-77902

Immediate Actions Required

  • Apply the Microsoft security update referenced in the MSRC advisory across all affected Office SKUs.
  • Prioritize patching for users who routinely process external spreadsheets, including finance, procurement, and executive assistants.
  • Verify Microsoft 365 Apps update channels are current and that macOS Office installations receive updates through AutoUpdate.
  • Reinforce user awareness that unsolicited Excel attachments should not be opened or enabled for editing.

Patch Information

Microsoft released a fix as part of its security update cycle. The vendor advisory at Microsoft CVE-2026-77902 Advisory lists the specific build numbers for Microsoft 365 Apps, Microsoft 365 for macOS, Office 2021 LTSC, and Office 2024 LTSC. Administrators should validate patch deployment through Microsoft Intune, Configuration Manager, WSUS, or equivalent management tooling.

Workarounds

  • Enable Protected View for files originating from the internet and other untrusted locations.
  • Block or quarantine macro-enabled and legacy Excel formats at the email gateway when not required for business.
  • Deploy Microsoft Defender ASR rules to block Office applications from creating child processes and from injecting into other processes.
  • Disable the Outlook Preview Pane for high-risk mailboxes until patching completes.
bash
# Enable key ASR rules via PowerShell to reduce Office exploit impact
Add-MpPreference -AttackSurfaceReductionRules_Ids `
  D4F940AB-401B-4EFC-AADC-AD5F3C50688A `
  -AttackSurfaceReductionRules_Actions Enabled

Add-MpPreference -AttackSurfaceReductionRules_Ids `
  3B576869-A4EC-4529-8536-B80A7769E899 `
  -AttackSurfaceReductionRules_Actions 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

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.