Heap-based buffer overflow in Microsoft Office Excel allows local code execution

Note: This data is for reference and cybersecurity research purposes only.CyStack advises users not to use this information for unlawful purposes.

What is CVE-2026-81959?

CVE-2026-81959 is a vulnerability classified as Heap-based Buffer Overflow and Integer Overflow or Wraparound, affecting Microsoft 365 Apps for Enterprise (affected versions: 16.0.1 – < 16.0.20326.20140), Microsoft Excel 2016 (affected versions: 16.0.0.0 – < 16.0.5569.1003), Microsoft Office 2016 (affected versions: 16.0.0 – < 16.0.5569.1003), and 6 more products. This vulnerability is rated High, with a CVSS score of 7.8. Current sources do not report this vulnerability as exploited.

Overview

Original source data

Heap-based buffer overflow in Microsoft Office Excel allows an unauthorized attacker to execute code locally.

Affected products and scope

The vulnerability affects the Excel component across a wide range of Microsoft Office editions: Office 2016, Office 2019, Office 365 Apps for Enterprise, Office LTSC 2021, Office LTSC 2024, Office 365 for Mac, and Office LTSC for Mac 2021 and 2024. All listed builds prior to the patched builds are affected. No specific configuration, add-in, or feature toggle is noted as a mitigating factor in the record; the vulnerability appears to be present in the base Excel installation on all affected editions.

Technical details

The vulnerability is a heap-based buffer overflow (CWE-122) in the Excel component of Microsoft Office. A secondary weakness, integer overflow or wraparound (CWE-190), is also associated, suggesting the overflow size is miscalculated during arithmetic on untrusted input. The fault is in how Excel processes data within a file: a value read from the file causes a size calculation to wrap or exceed the allocation, and the subsequent write overruns the heap block. Public detail on the specific data structure, file format, or offset is limited; Microsoft has not published a technical advisory beyond the standard update guide entry.

Exploitability

The attack vector is local. The attacker must place a malicious file on the target machine and the victim must open it in Excel. No special privileges are required on the part of the attacker. No public exploit code has been released, and there is no report of exploitation in the wild or in ransomware campaigns. The low exploitability profile is consistent with the local delivery and user-interaction requirements: the attacker needs a foothold or a social engineering channel to get the file to the right person at the right time.

Technical impact

An attacker who successfully triggers the overflow gains the same privileges as the user running Excel. Because the attack vector is local with user interaction required, the attacker cannot compromise a system remotely without first delivering a file to the target and convincing the user to open it. The compromise is bounded by the user's permissions: a standard user account gives access to that user's files and network presence; an administrator account gives full system control. The scope is unchanged, meaning the vulnerable component and the affected system are in the same security boundary.

Business impact

Any organisation where staff open Excel files from untrusted sources is exposed. If an attacker gets a malicious workbook onto a user's machine (via email attachment, shared drive, download) and that user opens it, the attacker gains full control of the user's account: read access to files, the ability to install persistence, and the ability to act as that user on the network. For organisations handling sensitive data, this is a data exfiltration and lateral movement risk. It also creates a regulatory exposure if the compromised account touches regulated data. Desktop support and IT security teams should treat this as a patch priority, particularly for users who regularly open files from external sources.

Remediation

Apply the Microsoft security update that addresses this vulnerability. The patch is available through Windows Update, the Microsoft Update Catalog, and enterprise update management tools (WSUS, Microsoft Endpoint Configuration Manager, or Intune). Verify that Excel on all affected machines has received the update by checking the installed build number against the patched build published in the Microsoft Security Update Guide. There is no documented workaround; the only reliable mitigation is the patch. As a general hygiene measure, discourage users from opening Excel files of unknown origin, and consider enabling Protected View for files from the internet, though this reduces risk rather than eliminating it.

Detection

Look for Excel process activity that follows a pattern of opening a file and then spawning child processes, connecting to the network, or modifying system files in a way inconsistent with normal spreadsheet use. Endpoint detection and response (EDR) tools with heuristic or behavioural rules for Excel spawning unexpected children are the most effective control. Check mail gateway logs for.xlsx or.xls attachments from external senders, especially to users in roles that handle sensitive data. Review application control or allowlist policies: if your environment restricts which file paths Excel can read, that is a partial mitigating control. Monitor for the patched build number being absent on endpoints, particularly those that recently received email attachments.

Sources (7)
Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.