CVE-2025-21402 Microsoft Office OneNote Remote Code Execution Vulnerability

High 7.8 Published Updated

Attackers can execute arbitrary code via Microsoft Office OneNote, requiring users to apply vendor patches.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2025-21402?

CVE-2025-21402 is a high-severity code injection vulnerability in Microsoft Office, published on 14 Jan 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

Microsoft Office OneNote Remote Code Execution Vulnerability

Weakness: CWE-641

Which versions are affected by CVE-2025-21402?

It affects 3 products.

Products include Microsoft Office, Microsoft Office Long Term Servicing Channel, Microsoft Onenote.

How do I fix CVE-2025-21402?

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

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2025-21402 being exploited?

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

All Microsoft Office vulnerabilities

Sources

Also known as GHSA-hf5r-fmgp-v332.

Is CVE-2025-21402 in your software?

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

Check your SBOMs for free