Skip to main content
Mallory
← Back to News
endpoint-software-vulnerabilitywidely-deployed-product-advisory

Microsoft Patches Critical Office and Word Use-After-Free RCE Flaws

Vulnerability Disclosure · 8 sources · Updated 5mo ago · First seen May 25, 2026

Microsoft Patches Critical Office and Word Use-After-Free RCE Flaws

Microsoft disclosed and fixed two critical use-after-free vulnerabilities affecting Microsoft Office and Microsoft Word: CVE-2026-40358 and CVE-2026-40366. Both bugs are classified as CWE-416 and carry a CVSS 8.4 rating, with Microsoft assessing impacts to confidentiality, integrity, and availability as high. The company said neither flaw had been publicly disclosed or exploited in the wild at the time of publication, and it rated exploitation as less likely.

Microsoft said the vulnerabilities can lead to remote code execution, although the attack vector is described as local, with the Preview Pane able to serve as an attack path when malicious content is handled. The disclosures continue a broader pattern of Microsoft patching multiple remote code execution issues across its product line, including earlier Office flaws such as CVE-2024-30101, CVE-2025-24080, and CVE-2025-59234, as well as RCE bugs in Windows Connected Devices Platform Service, Remote Desktop Protocol, and Inbox COM Objects.

Why it matters

Impact assessment

Microsoft patched two critical Microsoft Office-family memory corruption flaws, CVE-2026-40358 and CVE-2026-40366, that can result in code execution on Windows endpoints handling malicious Office content. The primary exposure is to enterprises and users running Microsoft Office and Microsoft Word, especially environments where Office documents are routinely previewed or opened through email and desktop workflows.

The potential impact is high because Microsoft rates confidentiality, integrity, and availability impact as High for both vulnerabilities, meaning successful exploitation could enable endpoint compromise, data theft, tampering, or disruption. Scope appears broad across Office deployments rather than targeted to a niche product, but Microsoft reported no public disclosure and no in-the-wild exploitation at publication and assessed exploitation as less likely.

Affected populations

  • Organizations using Microsoft Office.
  • Organizations using Microsoft Word.
  • End users who receive or handle untrusted Office documents.
  • Email-heavy business functions where Preview Pane handling of attachments is common.

Severity and business risk

  • Both vulnerabilities are rated Critical by Microsoft.
  • Both carry CVSS v3.1 base scores of 8.4.
  • Successful exploitation can lead to remote code execution semantics, though the triggering path is local handling of malicious content.
  • Business consequences include endpoint compromise, follow-on malware delivery, credential theft, data access, and operational disruption.

Scope and exploitation status

  • Exposure is potentially widespread because Microsoft Office and Word are broadly deployed in enterprise environments.
  • Microsoft stated neither CVE was publicly disclosed at time of publication.
  • Microsoft stated neither CVE was exploited in the wild at time of publication.
  • Microsoft assessed exploitation for both vulnerabilities as Less Likely.
Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

8 events · Jun 11, 2024 – May 12, 2026
  1. May 12, 20267mo ago

    Microsoft discloses and patches CVE-2026-40366 in Microsoft Word

    Microsoft disclosed CVE-2026-40366, a critical Microsoft Word use-after-free remote code execution vulnerability with a CVSS 8.4 score. Microsoft said the flaw was not publicly disclosed or exploited at publication, assessed exploitation as less likely, noted the Preview Pane as an attack vector, and made a fix available.

  2. May 12, 20267mo ago

    Microsoft discloses and patches CVE-2026-40358 in Microsoft Office

    Microsoft disclosed CVE-2026-40358, a critical Microsoft Office use-after-free vulnerability that can lead to remote code execution, with a CVSS 8.4 score. Microsoft said exploitation was less likely, there was no public disclosure or in-the-wild exploitation at publication, the Preview Pane could be an attack vector, and a fix was available.

  3. Oct 14, 20251y ago

    Microsoft discloses CVE-2025-59234 for Microsoft Office

    Microsoft published a Security Update Guide entry for CVE-2025-59234, a Microsoft Office remote code execution vulnerability. The disclosure was included in Microsoft's October 2025 security updates.

  4. Oct 14, 20251y ago

    Microsoft discloses CVE-2025-58737 in Remote Desktop Protocol

    Microsoft published a Security Update Guide entry for CVE-2025-58737, a Remote Desktop Protocol remote code execution vulnerability. The advisory was released on October 14, 2025.

  5. Oct 14, 20251y ago

    Microsoft discloses CVE-2025-58736 affecting Inbox COM Objects

    Microsoft published a Security Update Guide entry for CVE-2025-58736, a remote code execution vulnerability in Inbox COM Objects (Global Memory). The disclosure was issued as part of the October 2025 security updates.

  6. Jul 8, 20251y ago

    Microsoft discloses CVE-2025-49724 in Windows Connected Devices Platform Service

    Microsoft published a Security Update Guide entry for CVE-2025-49724, a remote code execution vulnerability in the Windows Connected Devices Platform Service. The advisory was released on July 8, 2025.

  7. Mar 11, 20252y ago

    Microsoft discloses CVE-2025-24080 for Microsoft Office

    Microsoft published a Security Update Guide entry for CVE-2025-24080, a Microsoft Office remote code execution vulnerability. The disclosure occurred with Microsoft's March 2025 security updates.

  8. Jun 11, 20242y ago

    Microsoft discloses CVE-2024-30101 for Microsoft Office

    Microsoft published a Security Update Guide entry for CVE-2024-30101, a Microsoft Office remote code execution vulnerability. The advisory indicates the vulnerability was disclosed as part of Microsoft's June 2024 security updates.

Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.