Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
High

Microsoft Word Remote Code Execution Vulnerability

IdentifiersCVE-2026-40366CWE-416· Use After Free

CVE-2026-40366 is a critical use-after-free vulnerability in Microsoft Office Word. Microsoft classifies it as a Remote Code Execution vulnerability and maps it to CWE-416. The flaw arises from improper handling of object lifetime in Word, leading to a use-after-free condition that can be triggered during document processing. Microsoft states that the Preview Pane is an attack vector for this issue, meaning exploitation may occur when a specially crafted Word document is previewed rather than fully opened. Although the CVE title uses 'Remote Code Execution,' the published Microsoft description states that an unauthorized attacker can execute code locally.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation allows an unauthorized attacker to execute arbitrary code in the context of Microsoft Word on the local system. Microsoft rates the impacts to confidentiality, integrity, and availability as High, indicating the attacker could potentially read data accessible to the affected process, modify data, and disrupt system or application availability. Microsoft assigned a CVSS v3.1 base score of 8.4.

Mitigation

If you can’t patch tonight, do this now.

No vendor workaround is provided in the supplied content. As the Preview Pane is identified as an attack vector, exposure can be reduced by avoiding previewing or opening untrusted Word documents, limiting delivery and handling of untrusted files, and applying the official Microsoft patch as soon as possible.

Remediation

Patch, then assume compromise.

Apply Microsoft's official security update for the affected Microsoft Office Word versions. Microsoft indicated an official fix was available at publication time.
PUBLIC EXPLOITS

Exploits

No public exploits tracked yet. Mallory keeps watching.

VALID 0 / 0 TOTALView more in app

No public exploit code observed for this vulnerability.

EXPOSURE SURFACE

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Microsoft Corporation365 Appsapplication
Microsoft CorporationOfficeapplication
Microsoft CorporationOffice 2019application
Microsoft CorporationOffice 2021application
Microsoft CorporationOffice 2024application
Microsoft CorporationOffice Long Term Servicing Channelapplication
Microsoft CorporationOffice Macos 2021application
Microsoft CorporationOffice Macos 2024application
Microsoft CorporationOffice Wordapplication
Microsoft CorporationWordapplication
Microsoft CorporationWord 2016application

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware

Malware families riding this exploit, with evidence and IOCs.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity1

Community discussion across Reddit, Mastodon, and other social sources.