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