CVE-2026-40367 Microsoft Word Remote Code Execution Vulnerability

High 8.4 Published Updated

An attacker can execute arbitrary code locally by exploiting a type confusion vulnerability in Microsoft Word.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-40367?

CVE-2026-40367 is a high-severity memory corruption vulnerability in Microsoft 365 Apps, published on 12 May 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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

Weakness: CWE-822

Which versions are affected by CVE-2026-40367?

It affects 5 products.

Products include Microsoft 365 Apps, Microsoft Office, Microsoft Office Long Term Servicing Channel, Microsoft Sharepoint Server, Microsoft Word.

How do I fix CVE-2026-40367?

No fix has been published for CVE-2026-40367 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2026-40367 being exploited?

There is no known exploitation of CVE-2026-40367 in the wild and no public exploit code.

All Microsoft 365 Apps vulnerabilities

Sources

Also known as GHSA-hv6m-qg7h-hqf7.

Is CVE-2026-40367 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free