Skip to content
SQL injection Advisory Advanced CVE-2022-35805

Microsoft Dynamics CRM (on-premises) Remote Code Execution Vulnerability (CVE-2022-35805)

An authenticated user could run a specially crafted trusted solution package to execute arbitrary SQL commands, then escalate to execute commands as db_owner within their Dynamics CRM database.

Fabian Schmidt Follow

Originally disclosed on Microsoft

Critical 8.8 View original

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

The original report as published on the Microsoft Security Response Center, by Fabian Schmidt. 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 the trusted solution import path did not sufficiently restrict the SQL that a package could cause to be executed.

Impact

An authenticated user could execute arbitrary SQL and escalate to db_owner within their CRM database, giving broad control over that database.

What the attacker needed

Authenticated Dynamics CRM 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.

A trusted solution package is a bundle of customisations that a Dynamics CRM user can import. The software did not properly check what that package was allowed to do, so a logged-in user could make the database run their own commands. This is serious because the database account involved has broad rights over the CRM data.

What is SQL injection?

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.

More by Fabian Schmidt

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.

SQL injection

The lesson behind this report.

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.