Skip to content
RCE Advisory Advanced CVE-2023-36882

Microsoft WDAC OLE DB provider for SQL Server Remote Code Execution Vulnerability (CVE-2023-36882)

A flaw in the Microsoft WDAC OLE DB provider for SQL Server allowed a malicious SQL server to send specially crafted replies to a connecting client. An attacker who convinced an authenticated user to connect could then execute arbitrary code in the context of that user's SQL client application.

bee13oy Follow

Originally disclosed on Microsoft

High 8.8 View original

FAQ

According to the CVSS metric, user interaction is required (UI:R). What interaction would the user have to do? An attacker could exploit the vulnerability by tricking an authenticated user (CVSS metric UI:R) into attempting to connect to a malicious SQL server via a connection driver (for example: ODBC and / or OLEDB as applicable).

FAQ

According to the CVSS metric, the attack vector is network (AV:N) and the user interaction is required (UI:R). What is the target context of the remote code execution? An authenticated victim who is connected to the network must be tricked or persuaded to connect to a malicious SQL database using their SQL client application. After the connection is made, the server can send specially crafted replies to the client that exploit the vulnerability and permit execution of arbitrary code within the context of the user's SQL client application.

Microsoft WDAC OLE DB provider for SQL

Microsoft WDAC OLE DB provider for SQL

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by bee13oy with Cyber Kunlun 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 the provider failed to properly validate or handle specially crafted replies from the SQL server, allowing data from the server to influence code execution on the client.

Impact

An attacker could execute arbitrary code within the context of the victim's SQL client application, but only after the user was tricked into connecting to the malicious server.

What the attacker needed

Victim is authenticated; victim connects to a malicious SQL server; attacker controls the SQL server

How it was found

  1. Trick an authenticated user into attempting to connect to a malicious SQL server through a connection driver.
  2. Once the connection is made, have the malicious server send specially crafted replies to the client.
  3. The crafted replies exploit the vulnerability and run arbitrary code in the user's SQL client context.

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 database client is a program people use to talk to a database server. Here the client trusted whatever the server sent back, so a fake or hostile server could send a reply that made the client run the attacker's code on the victim's own machine. The victim had to be persuaded to connect to that server 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 bee13oy

View all

34 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.