SQL Server Elevation of Privilege Vulnerability (CVE-2026-77487)
An improper access control flaw in SQL Server lets an authenticated user with explicit permissions elevate their privileges to sysadmin. The attacker logs in to the SQL server and gains SQL sysadmin rights.
Originally disclosed on Microsoft
Description
Improper access control 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 an improper access control check in SQL Server that fails to stop an authenticated user with explicit permissions from gaining sysadmin 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
The fix
Microsoft requires a customer action, but the text does not describe the specific fix.
How it was found
- Log in to the SQL server as an authenticated attacker with explicit permissions.
- Exploit the vulnerability 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. It has different permission levels, and 'sysadmin' is the highest one, giving full control over the database. This flaw means someone who already has a normal account with some permissions can log in and give themselves the top-level rights they should not have.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.