Microsoft Dynamics NAV and Microsoft Dynamics 365 Business Central (On Premises) Remote Code Execution Vulnerability (CVE-2022-41127)
An authenticated user of Microsoft Dynamics NAV or Dynamics 365 Business Central (on premises) could send a crafted network call to the service's open WCF TCP port and trigger malicious code. Successful exploitation would run code on the host server under the service account Dynamics uses.
Originally disclosed on Microsoft
FAQ
According to the CVSS metric, a successful exploitation could lead to a scope change (S:C). Can the exploit move from Dynamics NAV to the underlying operating system? Yes. An attacker who successfully exploited this vulnerability in Dynamics NAV could execute code on the host server in the context of the service account Dynamics has been configured to use.
FAQ
According to the CVSS metric, privileges required is low (PR:L). What does that mean for this vulnerability? The attacker must be authenticated to be able to exploit this vulnerability.
FAQ
According to the CVSS metric, the attack vector is network (AV:N). What is the target used in the context of the remote code execution? The Dynamics NAV opened port could be used to connect with the WCF TCP protocol. As an authenticated user, the attacker could attempt to trigger malicious code in the context of the server's account through a network call.
FAQ
According to the CVSS metric, the attack complexity is high (AC:H). What does that mean for this vulnerability? Successful exploitation of this vulnerability requires an attacker to prepare the target environment to improve exploit reliability.
Microsoft Dynamics 365
Microsoft Dynamics 365
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 unsafe handling of data received over the WCF TCP endpoint, allowing an authenticated caller to influence code execution on the server.
Impact
An authenticated attacker could execute code on the host server as the Dynamics service account, though exploitation is complex and requires preparing the target environment first.
What the attacker needed
Authenticated Dynamics account; network access to the WCF TCP port; attacker prepares the target environment
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 is business software that runs on a company server. This flaw meant someone who already had a login could send a specially crafted message over the network to that server and get their own code to run on it, which is about as bad as it gets for a server. The catch is that the attacker needed a valid account and had to set things up carefully first.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.