Skip to content
RCE Advisory Advanced CVE-2023-29356

Microsoft ODBC Driver for SQL Server Remote Code Execution Vulnerability (CVE-2023-29356)

A vulnerability in the Microsoft ODBC Driver for SQL Server allows an attacker to achieve arbitrary code execution on a victim's machine. The attacker must trick an authenticated user into connecting to a malicious SQL server through the connection driver.

だんご 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 だんご. 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 driver fails to properly validate or handle data returned by the SQL server it connects to, allowing a malicious server to influence memory or execution on the client.

Impact

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

What the attacker needed

Victim connects to a malicious SQL server; authenticated user; local code execution by attacker or victim

The fix

Microsoft recommends installing the latest cumulative update to be protected from 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.

A driver is software that lets one program talk to another, here letting Windows applications talk to a database server. The flaw means that if a user is persuaded to connect to a server controlled by an attacker, the attacker can run their own code on the user's computer. The user has to be tricked into making that connection, so it is not something that happens on its own.

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.