Skip to content
Memory corruption Advisory Advanced CVE-2023-32028

Microsoft SQL OLE DB Remote Code Execution Vulnerability (CVE-2023-32028)

A flaw in how SQL OLE DB handles networking packets from a server could let an attacker who controls a malicious SQL server run code on a client that connects to it. The attacker must first trick an authenticated user into making that connection.

bee13oy Follow

Originally disclosed on Microsoft

High 7.8 View original

FAQ

If I normally install GDR versions and have not installed the June Cumulative Update, am I affected by the vulnerability? Yes, customers who have installed Microsoft SQL Server 2022 for x64-based Systems (GDR) or Microsoft SQL Server 2019 for x64-based Systems (GDR) are vulnerable. Microsoft recommends updating to the latest cumulative update to be protected from this vulnerability.

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.

SQL Server

SQL Server

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by bee13oy with Cyber 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-safety flaw in SQL OLE DB's handling of a malicious networking packet received from a server.

Impact

An attacker could execute code remotely on the client, but only after tricking an authenticated user into connecting to the malicious server.

What the attacker needed

Attacker controls a malicious SQL server; victim is an authenticated user; victim connects to that server

The fix

It should be fixed by installing the latest cumulative update for SQL Server.

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. Here, a victim's database client could be made to run the attacker's code simply by connecting to a server the attacker controls, but only if the victim is persuaded to connect. The fix is to install the latest SQL Server update.

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 bee13oy

View all

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