Skip to content
RCE Advisory Advanced CVE-2022-34727

Microsoft ODBC Driver Remote Code Execution Vulnerability (CVE-2022-34727)

The Microsoft ODBC Driver contained a vulnerability that could allow remote code execution. An attacker could exploit it by tricking an authenticated user into connecting to a malicious SQL server via ODBC, which could send a malicious networking packet and execute code on the client.

Haifei Li Follow

Originally disclosed on Microsoft

High 8.8 View original

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.

Windows ODBC Driver

Windows ODBC Driver

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Haifei Li with CyberKL 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 ODBC driver did not properly validate or handle a malicious networking packet from a SQL server, leading to memory corruption or unsafe processing.

Impact

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

What the attacker needed

Authenticated user; user tricked into connecting to malicious server

The fix

Microsoft released a security update to fix the vulnerability; customers should 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. This bug meant that if a user connected to a bad database server, that server could send a special message that let it run its own code on the user's computer. The user had to be logged in and be tricked into making the connection.

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 Haifei Li

View all

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