Microsoft Dynamics 365 (on-premises) Elevation of Privilege Vulnerability (CVE-2026-40371)
Microsoft Dynamics 365 (on-premises) did not properly check permissions on a scenario-switching page. An attacker already signed in could send a crafted request to that page and assign themselves the System Administrator role, gaining full administrative control of the organisation.
Kentaro Kawane Follow with f7d8c52bec79e42795cf15888b85cbad
Originally disclosed on Microsoft
Description
Improper handling of insufficient permissions or privileges in Microsoft Dynamics 365 (on-premises) allows an authorized attacker to elevate privileges over a network.
FAQ
How could an attacker exploit this vulnerability? An attacker who is already signed in to the affected Microsoft Dynamics 365 (On‑Premises) system could send a specially crafted request to the vulnerable scenario‑switching page, which does not properly check permissions. By doing so, the attacker could improperly assign themselves the System Administrator role and gain full administrative control of the organization.
FAQ
What privileges could be gained by an attacker who successfully exploited the vulnerability? An attacker who successfully exploited this vulnerability could gain administrator privileges.
Microsoft Dynamics 365 (on-premises)
Microsoft Dynamics 365 (on-premises)
Microsoft
Microsoft
Customer Action Required
Yes
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a missing or incorrect permission check on the scenario-switching page, allowing a low-privileged user to assign themselves a higher role.
Impact
An authenticated attacker could elevate themselves to System Administrator and gain full administrative control of the organisation.
What the attacker needed
Valid signed-in account on the system
The fix
The permission check on the scenario-switching page should be corrected so that role assignment requires proper authorisation.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Dynamics 365 is a business application that stores customer and company data. It has different roles, and the System Administrator role is the most powerful one. The page that lets users switch between scenarios was meant to check whether the person is allowed to do something, but it did not check properly, so a normal signed-in user could give themselves the top role.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.