CVE-2026-42898 Microsoft Dynamics 365 On-Premises Remote Code Execution Vulnerability
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.
Other vulnerabilities in Microsoft Dynamics 365
- CVE-2026-47647 Dynamics 365 Elevation of Privilege Vulnerability
- CVE-2026-32210 Microsoft Dynamics 365 (online) Spoofing Vulnerability
- CVE-2026-42833 Microsoft Dynamics 365 On-Premises Remote Code Execution Vulnerability
- CVE-2024-38182 Microsoft Dynamics 365 Elevation of Privilege Vulnerability
- CVE-2026-65772 Microsoft Dynamics 365 On-Premises Remote Code Execution Vulnerability
Sources
Also known as GHSA-f8w6-8hpv-rrjj.