Microsoft Dynamics CRM (on-premises) Remote Code Execution Vulnerability (CVE-2022-34700)
An authenticated user could run a specially crafted trusted solution package to execute arbitrary SQL commands, escalating to execute commands as db_owner within their Dynamics CRM database.
Originally disclosed on Microsoft
FAQ
How could an attacker exploit this vulnerability? An authenticated user could run a specially crafted trusted solution package to execute arbitrary SQL commands. From there the attacker could escalate and execute commands as db_owner within their Dynamics CRM database.
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.
Microsoft Dynamics
Microsoft Dynamics
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 the trusted solution package import process did not properly validate or restrict the SQL commands that could be executed.
Impact
An authenticated attacker could execute arbitrary SQL commands and escalate to db_owner within their Dynamics CRM database.
What the attacker needed
Authenticated user
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.
This is a vulnerability in Microsoft Dynamics CRM where a logged-in user can upload a special package that lets them run database commands. Normally users should not be able to run arbitrary SQL, but the trusted solution package feature allowed it. The attacker could then take over the database with high privileges.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.