CVE-2026-45497 Microsoft M365 Copilot Remote Code Execution Vulnerability

High 7.7 Published Updated

An authorized attacker can execute arbitrary code remotely via command injection in Microsoft 365 Copilot.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-45497?

CVE-2026-45497 is a high-severity command injection vulnerability in Microsoft 365 Copilot, published on 4 Jun 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Improper neutralization of special elements used in a command ('command injection') in Microsoft Copilot allows an authorized attacker to execute code over a network.

Weakness: CWE-77

Which versions are affected by CVE-2026-45497?

It affects 1 product.

Products include Microsoft Copilot.

How do I fix CVE-2026-45497?

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

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2026-45497 being exploited?

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

Sources

Also known as GHSA-96wf-4fpw-9pw8.

Is CVE-2026-45497 in your software?

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

Check your SBOMs for free