Microsoft WDAC OLE DB provider for SQL Server Remote Code Execution Vulnerability (CVE-2022-35840)
A vulnerability in the Microsoft WDAC OLE DB provider for SQL Server could allow an attacker to execute code remotely on a client. The attacker must trick an authenticated user into connecting to a malicious SQL server via OLEDB, which sends a malicious networking 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 a memory safety or input validation flaw in how the OLE DB provider processes network packets from a SQL server.
Impact
An attacker could execute code remotely on the client, but only after tricking an authenticated user into connecting to a malicious SQL server.
What the attacker needed
Authenticated user; user connects to malicious SQL server
The fix
Microsoft should fix the OLE DB provider to properly validate network packets; the text does not state that a fix is available.
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.
This is a flaw in a Windows component that lets programs talk to SQL Server databases. If a user is tricked into connecting to a bad database server, that server can send a harmful message back and run code on the user's computer. The attacker needs the user to start the connection, so it is not something that happens automatically.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.