Skip to content
RCE Advisory Advanced CVE-2023-38169

Microsoft SQL OLE DB Remote Code Execution Vulnerability (CVE-2023-38169)

A flaw in how SQL Server's OLE DB provider handles network packets from a server could let an attacker who controls a malicious SQL server send a crafted packet to a connecting client. This could allow the attacker to execute code remotely on the client machine.

bee13oy Follow

Originally disclosed on Microsoft

High 8.8 View original

FAQ

If I normally install GDR versions and have not installed the June Cumulative Update, am I affected by the vulnerability? Yes, customers who have installed Microsoft SQL Server 2022 for x64-based Systems (GDR) or Microsoft SQL Server 2019 for x64-based Systems (GDR) are vulnerable. Microsoft recommends updating to the latest cumulative update to be protected from this vulnerability.

FAQ

How could an attacker exploit this vulnerability? An attacker could exploit the vulnerability by tricking an authenticated user into attempting to connect to a malicious SQL server via OLEDB, which could result in the server receiving a malicious networking packet. This could allow the attacker to execute code remotely on the client.

SQL Server

SQL Server

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 SQL Server OLE DB provider does not properly validate networking packets received from a server before processing them.

Impact

An attacker could execute code remotely on the client, but only if they can trick an authenticated user into connecting to a malicious SQL server.

What the attacker needed

Attacker controls a malicious SQL server; victim is an authenticated user; victim connects to the malicious server

The fix

Microsoft recommends updating to the latest cumulative update to be protected from this vulnerability.

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.

OLE DB is a Microsoft technology that lets programs talk to databases. Here, if a user's computer connects to a database server controlled by an attacker, that server can send a specially crafted message back. The message can make the user's computer run the attacker's code, which is why users should only connect to trusted database servers.

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.