SQL Server Elevation of Privilege Vulnerability (CVE-2026-66820)
SQL Server contains an SQL injection flaw that lets an authenticated user with explicit permissions escalate to sysadmin. An attacker who can log in could therefore gain full administrative control of the database server.
Originally disclosed on Microsoft
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
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.
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.
SQL Server
SQL Server
Microsoft
Microsoft
Customer Action Required
Yes
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 server fails to properly neutralise special characters in SQL commands, allowing an authenticated user to inject extra SQL that runs with higher privileges.
Impact
An authenticated attacker with explicit permissions could gain SQL sysadmin privileges, giving full control over the database server.
What the attacker needed
Authenticated SQL Server account; explicit permissions on the server; network access to the SQL server
The fix
Microsoft requires customer action, but the text does not describe the specific fix.
How it was found
- Log in to the SQL server as an authenticated user with explicit permissions.
- Exploit the SQL injection to elevate privileges to sysadmin.
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. A user with limited rights can send a specially crafted database command that the server mishandles, and the server then treats that user as a full administrator. This means someone who should only see part of the data could take control of the whole database.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.