Microsoft ODBC Driver Remote Code Execution Vulnerability (CVE-2023-29373)
The Microsoft ODBC driver contained a flaw that could be triggered when a client connected to a malicious SQL server. A crafted reply from that server could let an attacker run arbitrary code on the victim's machine within the context of their SQL client application.
Originally disclosed on Microsoft
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 ODBC, which could result in the server receiving a malicious networking packet. This could allow the attacker to execute code remotely on the client.
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.
Windows ODBC Driver
Windows ODBC Driver
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 ODBC driver did not properly validate or handle the data returned by a SQL server, allowing a malicious server response to corrupt memory or otherwise control execution on the client.
Impact
An attacker could execute arbitrary code on the client machine, but only after an authenticated user was tricked into connecting to a malicious SQL server.
What the attacker needed
Victim uses an ODBC SQL client; victim connects to attacker's SQL server; attacker controls a malicious SQL server
The fix
Microsoft addressed the vulnerability in an update, and customers were told to apply it.
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.
ODBC is a standard way for programs to talk to databases. Here, if someone used their database tool to connect to a server controlled by an attacker, that server could send back a rigged response that made the victim's own computer run the attacker's code. The victim has to be persuaded to make that connection first.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.