Skip to content
RCE Advisory Advanced CVE-2022-41127

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.

Yiming Xiang Follow

Originally disclosed on Microsoft

Critical 8.5 View original

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

The original report as published on the Microsoft Security Response Center, by Yiming Xiang with NSFOCUS TIANJI LAB. Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

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.

More by Yiming Xiang

View all

3 more disclosed reports, best first.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.