Microsoft SQL Server Elevation of Privilege Vulnerability (CVE-2026-21262)
SQL Server contained an improper access control flaw that let an authenticated user with explicit permissions escalate their own rights. By logging in to the server, an attacker could gain SQL sysadmin privileges.
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
I am running SQL Server on my system. What action do I need to take? Update your relevant version of SQL Server. Any applicable driver fixes are included in those updates. There are GDR and/or CU (Cumulative Update) updates offered for my version of SQL Server. How do I know which update to use? First, determine your SQL Server version number. For more information on determining your SQL Server version number, see Microsoft Knowledge Base Article 321185 - How to determine the version, edition, and update level of SQL Server and its components. Second, in the following table, locate your version number or the version range that your version number falls within. The corresponding update is the one you need to install. Note If your SQL Server version number is not represented in the table below, your SQL Server version is no longer supported. Please upgrade to the latest Service Pack or SQL Server product to apply this and future security updates. Update Number Title Version Apply if current product version is… This security update also includes servicing releases up through… 5077466 Security update for SQL Server 2025 CU2+GDR 17.0.4020.2 17.0.4006.2 - 17.0.4015.4 KB5075211 - Previous SQL2025 RTM CU2 5077468 Security update for SQL Server 2025 RTM+GDR 17.0.1105.2 17.0.1000.7 - 17.0.1050.2 KB5073177 - Previous SQL2025 RTM GDR 5077464 Security update for SQL Server 2022 CU23+GDR 16.0.4240.4 16.0.4003.1 - 16.0.4236.2 KB5078297 - Previous SQL2022 RTM CU23 5077465 Security update for SQL Server 2022 RTM+GDR 16.0.1170.5 16.0.1000.6 - 16.0.1165.1 KB5073031 - Previous SQL2022 RTM GDR 5077469 Security update for SQL Server 2019 CU32+GDR 15.0.4460.4 15.0.4003.23 - 15.0.4455.2 KB 5068404 - Previous SQL2019 RTM CU32 GDR 5077470 Security update for SQL Server 2019 RTM+GDR 15.0.2160.4 15.0.2000.5 - 15.0.2155.2 KB 5068405 - Previous SQL2019 RTM GDR 5077471 Security update for SQL Server 2017 CU31+GDR 14.0.3520.4 14.0.3006.16 - 14.0.3515.1 KB 5068402 - Previous SQL2017 RTM CU31 GDR 5077472 Security update for SQL Server 2017 RTM+GDR 14.0.2100.4 14.0.1000.169 - 14.0.2095.1 KB 5068403 - Previous SQL2017 RTM GDR 5077473 Security update for SQL Server 2016 Azure Connect Feature Pack+GDR 13.0.7075.5 13.0.7000.253 - 13.0.7070.1 KB 5068400 - Previous SQL2016 Azure Connect Feature Pack GDR 5077474 Security update for SQL Server 2016 SP3+GDR 13.0.6480.4 13.0.6300.2 - 13.0.6475.1 KB 5068401 - Previous SQL2016 RTM GDR What are the GDR and CU update designations and how do they differ? The General Distribution Release (GDR) and Cumulative Update (CU) designations correspond to the two different servicing options in place for SQL Server baseline releases. A baseline can be either an RTM release or a Service Pack release. GDR updates – cumulatively only contain security updates for the given baseline. CU updates – cumulatively contain all functional fixes and security updates for the given baseline. For any given baseline, either the GDR or CU updates could be options (see below). If SQL Server installation is at a baseline version, you can choose either the GDR or CU update. If SQL Server installation has intentionally only installed past GDR updates, then choose to install the GDR update package. If SQL Server installation has intentionally installed previous CU updates, then choose to install the CU security update package. Note: You are allowed to make a change from GDR updates to CU updates ONE TIME. Once a SQL Server CU update is applied to a SQL Server installation, there is NO way to go back to the GDR update path. Can the security updates be applied to SQL Server instances on Windows Azure (IaaS)? Yes. SQL Server instances on Windows Azure (IaaS) can be offered the security updates through Microsoft Update, or customers can download the security updates from Microsoft Download Center and apply them manually.
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 that lets a user with explicit permissions grant themselves higher privileges than intended.
Impact
An authenticated attacker with explicit permissions could gain full SQL sysadmin control of the server.
What the attacker needed
A valid SQL Server login; explicit permissions granted to that login; network access to the server
The fix
It was fixed by installing the relevant SQL Server GDR or CU security update for your version.
How it was found
- Log in to the SQL server as an authenticated user with explicit permissions
- Exploit the access control flaw to raise your own 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 product, and a 'sysadmin' is the all-powerful account inside it. The bug meant someone who already had a login and some granted permissions could quietly give themselves that top-level power. The text does not explain the technical mechanism, only that access control was done incorrectly.
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.