Skip to content
SQL injection Advisory Intermediate CVE-2026-66819

Microsoft SQL Server Elevation of Privilege Vulnerability (CVE-2026-66819)

SQL Server fails to neutralise special elements used in SQL commands, which is a SQL injection flaw. An authenticated attacker holding explicit permissions could log in and raise their privileges to sysadmin level.

Fabiano Amorim Follow

Originally disclosed on Microsoft

High 8.8 View original

Description

Improper neutralization of special elements used in an sql command ('sql injection') in SQL Server allows an authorized attacker to elevate privileges over a network.

FAQ

How could an attacker exploit this vulnerability? An authenticated attacker with explicit permissions could exploit the vulnerability by logging in to the SQL server and could then elevate their privileges to sysadmin.

FAQ

What privileges could be gained by an attacker who successfully exploited the vulnerability? An attacker who successfully exploited this vulnerability could gain SQL sysadmin privileges.

SQL Server

SQL Server

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Fabiano Amorim with Pythian. 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 improper neutralisation of special elements in SQL commands, meaning user input was not safely separated from command syntax.

Impact

An authenticated attacker with explicit permissions could gain SQL sysadmin privileges.

What the attacker needed

Authenticated SQL Server login; explicit permissions on the 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.

SQL Server is a database program, and it builds commands out of text. If it does not treat user-supplied text as plain data, that text can be read as part of the command itself. Here a logged-in user with some permissions could use this to become the all-powerful database administrator.

What is SQL injection?

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.

More by Fabiano Amorim

View all

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

SQL injection

The lesson behind this report.

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.