Skip to content
Memory corruption Advisory Advanced CVE-2026-40367

Microsoft Word Remote Code Execution Vulnerability (CVE-2026-40367)

Microsoft Word contains a type confusion flaw where a resource is accessed using an incompatible type, which lets an unauthorised attacker run code on the local machine. The attacker must get code to execute locally, for example by having a user preview a crafted attachment.

0ccbbf129444eb66344ccafb92b00df4 Follow

Originally disclosed on Microsoft

Critical 8.4 View original

Description

Access of resource using incompatible type ('type confusion') in Microsoft Office Word allows an unauthorized attacker to execute code locally.

FAQ

Is the Attachment Preview Pane an attack vector for this vulnerability? Yes. The attachment Preview Pane that is accessed when a user clicks to preview an attached file is an attack vector; however, the email Preview Pane itself is not.

FAQ

There are multiple update packages available for some of the affected software. Do I need to install all the updates listed in the Security Updates table for the software? Yes. Customers should apply all updates offered for the software installed on their systems. If multiple updates apply, they can be installed in any order.

FAQ

According to the CVSS metric, the attack vector is local (AV:L). Why does the CVE title indicate that this is a remote code execution? The word Remote in the title refers to the location of the attacker. This type of exploit is sometimes referred to as Arbitrary Code Execution (ACE). The attack itself is carried out locally. This means an attacker or victim needs to execute code from the local machine to exploit the vulnerability.

Microsoft Office Word

Microsoft Office Word

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by 0ccbbf129444eb66344ccafb92b00df4. Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a type confusion in how Word handles a resource, where data of one type is used as another, corrupting program behaviour.

Impact

An attacker could execute arbitrary code locally on the victim's machine, and the attachment Preview Pane is a possible attack vector while the email Preview Pane is not.

What the attacker needed

Attacker can run code locally; victim previews a crafted attachment

The fix

Microsoft issued update packages for the affected software and customers should apply all updates offered for their installed software.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A type confusion bug means a program treats one kind of data as if it were a different kind, so it can be tricked into doing things it should not. Here, opening or previewing a specially crafted Word file could let an attacker run their own code on the victim's computer. The attacker has to get that code onto the machine first, which is why Microsoft calls the attack local even though the title says remote.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by 0ccbbf129444eb66344ccafb92b00df4

View all

269 more disclosed reports, best first.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.