Skip to content
RCE Advisory Advanced CVE-2023-29349

Microsoft ODBC and OLE DB Remote Code Execution Vulnerability (CVE-2023-29349)

A vulnerability existed in Microsoft ODBC and OLE DB connection drivers where an authenticated user could be tricked into connecting to a malicious SQL server, allowing code to run on the victim's machine. The text gives no technical detail on the flaw itself, only FAQ answers about CVSS scoring and patching.

Yisekai Ojisan Follow

Originally disclosed on Microsoft

High 7.8 View original

FAQ

According to the CVSS metric, the attack vector is local (AV:L). Why does the CVE title indicate that this is a remote code execution? The word Remote in the title refers to the location of the attacker. This type of exploit is sometimes referred to as Arbitrary Code Execution (ACE). The attack itself is carried out locally. This means an attacker or victim needs to execute code from the local machine to exploit the vulnerability.

FAQ

According to the CVSS metric, user interaction is required (UI:R). What interaction would the user have to do? An attacker could exploit the vulnerability by tricking an authenticated user (CVSS metric UI:R) into attempting to connect to a malicious SQL server via a connection driver (for example: ODBC and / or OLEDB as applicable).

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.

SQL Server

SQL Server

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Yisekai Ojisan. 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 how the ODBC/OLE DB driver processes data returned by a SQL server, though the text does not state the cause.

Impact

An attacker who convinces an authenticated user to connect to a malicious SQL server could run code on that user's machine, though the attack requires local execution and user interaction.

What the attacker needed

Authenticated user; victim connects to attacker's SQL server

The fix

It should be fixed by installing the latest cumulative update for the affected SQL Server versions, which the text says protects against the 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 and OLE DB are pieces of software that let programs talk to databases. Here, a victim who connects to a database server controlled by an attacker could have code run on their own computer. The text does not explain the actual coding mistake, only that a fix exists.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

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.