Skip to content
Memory corruption Advisory Advanced CVE-2022-41047

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

A vulnerability in the Microsoft ODBC Driver could allow an attacker to execute code remotely on a client by tricking an authenticated user into connecting to a malicious SQL server. The malicious server sends a crafted networking packet that triggers the flaw.

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 a memory corruption flaw in the ODBC driver when parsing a malicious packet from a server.

What the attacker needed

Authenticated user; user connects to malicious SQL server

The fix

Microsoft released a security update to fix 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.

ODBC is a standard way for programs to talk to databases. This bug means that if you use a program that connects to a database and you are tricked into connecting to a bad server, that server can send a special message that lets the attacker run their own code on your computer. You would need to be logged in and actively try to connect to the malicious server.

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.

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.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.