Microsoft WDAC OLE DB provider for SQL Server Remote Code Execution Vulnerability (CVE-2022-34733)
A flaw in the Microsoft WDAC OLE DB provider for SQL Server could let an attacker run code on a victim's machine. The attacker must first trick an authenticated user into connecting to a malicious SQL server via OLEDB, which sends a crafted network packet to the client.
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.
Windows OLE DB
Windows OLE DB
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 OLE DB provider for SQL Server does not properly validate or handle the network packets it receives from a SQL server, allowing a malicious server to send data that leads to code execution on the client.
Impact
An attacker could execute code remotely on the client, but only after an authenticated user is tricked into connecting to a malicious SQL server.
What the attacker needed
Authenticated user; user tricked into connecting to malicious server
The fix
Microsoft addressed the vulnerability; the advisory states that customer action is required, which in practice means applying the relevant security update.
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 such as SQL Server. This bug means that if a user is persuaded to connect to a server controlled by an attacker, the reply from that server can be crafted to run code on the user's own computer. The user has to be logged in and must make the connection themselves; the attacker cannot do it remotely without that step.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.