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

Microsoft Office Remote Code Execution Vulnerability (CVE-2026-40363)

A heap-based buffer overflow exists in Microsoft Office, which an attacker could exploit to execute code locally. The Preview Pane is an attack vector, meaning a crafted file could trigger the flaw without the user opening it fully.

Jeongmin Choi Follow

Originally disclosed on Microsoft

Critical 8.4 View original

Description

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

FAQ

Is the Preview Pane an attack vector for this vulnerability? Yes, the Preview Pane is an attack vector.

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

Microsoft Office

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Jeongmin Choi with S2W. 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

Impact

An attacker could execute arbitrary code locally, and the Preview Pane is an attack vector, so viewing a file in the preview pane may be enough to trigger it.

What the attacker needed

Victim uses Microsoft Office; attacker delivers a crafted file; Preview Pane may be enough

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 buffer overflow is when a program writes more data into a memory area than it can hold, which can corrupt nearby memory. Here, Microsoft Office has this flaw, and an attacker could use a specially crafted file to run their own code on the victim's computer. The Preview Pane can trigger it, so just selecting a file might be enough.

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 Jeongmin Choi

View all

3 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.