Microsoft Patches Critical Office and Word Use-After-Free RCE Flaws
Vulnerability Disclosure · 8 sources · Updated 5mo ago · First seen May 25, 2026

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.


