CVE-2026-42898 Microsoft Dynamics 365 On-Premises Remote Code Execution Vulnerability

Critical 9.9 Published Updated

An authorized attacker can execute arbitrary code remotely in Microsoft Dynamics 365 on-premises due to improper code generation control.

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-42898?

CVE-2026-42898 is a critical code injection vulnerability in Microsoft Dynamics 365, published on 12 May 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Improper control of generation of code ('code injection') in Microsoft Dynamics 365 (on-premises) allows an authorized attacker to execute code over a network.

Weakness: CWE-94

Which versions are affected by CVE-2026-42898?

It affects 1 product.

Products include Microsoft Dynamics 365.

How do I fix CVE-2026-42898?

No fix has been published for CVE-2026-42898 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-2026-42898 being exploited?

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

All Microsoft Dynamics 365 vulnerabilities

Sources

Also known as GHSA-f8w6-8hpv-rrjj.

Is CVE-2026-42898 in your software?

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

Check your SBOMs for free