Microsoft SQL Server Elevation of Privilege Vulnerability
Published July 14, 2026Updated July 14, 2026
Source data
Overview
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.
Impact & technical details
Elevation of Privilege
What privileges could be gained by an attacker who successfully exploited the vulnerability? An attacker who successfully exploited this vulnerability could gain sysadmin privileges.
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… 5101346 Security update for SQL Server 2025 CU6+GDR 17.0.4060.2 17.0.4006.2 - 17.0.4055.5 KB5093421 - Previous SQL2025 RTM CU6 5102333 Security update for SQL Server 2025 RTM+GDR 17.0.1125.2 17.0.1000.7 - 17.0.1115.1 KB5091223 - Previous SQL2025 RTM GDR 5101347 Security update for SQL Server 2022 CU25+GDR 16.0.4262.2 16.0.4003.1 - 16.0.4255.1 KB5081477 - Previous SQL2022 RTM CU25 5102334 Security update for SQL Server 2022 RTM+GDR 16.0.1190.2 16.0.1000.6 - 16.0.1180.1 KB5091158 - Previous SQL2022 RTM GDR 5102335 Security update for SQL Server 2019 CU32+GDR 15.0.4480.2 15.0.4003.23 - 15.0.4470.1 KB5090407 - Previous SQL2019 RTM CU32 GDR 5102336 Security update for SQL Server 2019 RTM+GDR 15.0.2180.2 15.0.2000.5 - 15.0.2170.1 KB 5090408 - Previous SQL2019 RTM GDR 5102337 Security update for SQL Server 2017 CU31+GDR 14.0.3540.1 14.0.3006.16 - 14.0.3530.2 KB 5090354 - Previous SQL2017 RTM CU31 GDR 5102338 Security update for SQL Server 2017 RTM+GDR 14.0.2120.1 14.0.1000.169 - 14.0.2110.2 KB 5090347 - Previous SQL2017 RTM GDR 5102339 Security update for SQL Server 2016 Azure Connect Feature Pack+GDR 13.0.7095.1 13.0.7000.253 - 13.0.7085.1 KB 5089270 - Previous SQL2016 Azure Connect Feature Pack GDR 5102340 Security update for SQL Server 2016 SP3+GDR 13.0.6500.1 13.0.6300.2 - 13.0.6490.1 KB 5089271 - Previous SQL2016 RTM GDR What are the GDR and CU update designations and how do they differ? T
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.
According to the CVSS metric, the attack complexity is high (AC:H). What does that mean for this vulnerability? Successful exploitation of this vulnerability requires an attacker to coordinate an attack with another privileged process executed by another user in the system.
- CVSS base score
- 7.5 / 10
- CVSS vector
- CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Highest base score supplied by MSRC for this record; the vector belongs to that score. Ratings can vary by product. Microsoft Important is displayed as High; Moderate is displayed as Medium.
Affected products
- Microsoft SQL Server 2016 for x64-based Systems Service Pack 3 (GDR)
- Microsoft SQL Server 2016 for x64-based Systems Service Pack 3 Azure Connect Feature Pack
- Microsoft SQL Server 2017 for x64-based Systems (CU 31)
- Microsoft SQL Server 2017 for x64-based Systems (GDR)
- Microsoft SQL Server 2019 for x64-based Systems (CU 32)
- Microsoft SQL Server 2019 for x64-based Systems (GDR)
- Microsoft SQL Server 2022 for x64-based Systems (CU 25)
- Microsoft SQL Server 2022 for x64-based Systems (GDR)
Show all 10 affected products
- Microsoft SQL Server 2025 for x64-based Systems (CU6)
- Microsoft SQL Server 2025 for x64-based Systems (GDR)
Source guidance
Remediation
The source provides update references without a separate remediation summary. Review the applicable update links below.
At least one Microsoft vendor-fix reference is available. Check each affected product for its applicable update, prerequisites, and supported version.
GTP recommendation · Rule-based guidance
Recommended next step
Review affected Microsoft products and apply the applicable security updates through your organization's normal patch-management process. Confirm availability and prerequisites in the Microsoft advisory.
Authoritative sources & updates
Findings and update information come from the linked publishers. GTP compiles the public record and provides the recommendation above. CVSS ratings shown here come from Microsoft. NVD references provide additional public context.
- Microsoft Security Response Center (opens in a new tab)
- Microsoft security update · 5101347 (opens in a new tab)
- Microsoft remediation guidance (opens in a new tab)
- Microsoft security update · 5101346 (opens in a new tab)
- Microsoft remediation guidance (opens in a new tab)
- Microsoft security update · 5102338 (opens in a new tab)
- Microsoft remediation guidance (opens in a new tab)
- Microsoft security update · 5102336 (opens in a new tab)
- Microsoft remediation guidance (opens in a new tab)
- Microsoft security update · 5102340 (opens in a new tab)
- Microsoft remediation guidance (opens in a new tab)
- Microsoft security update · 5102339 (opens in a new tab)
- Microsoft remediation guidance (opens in a new tab)
- Microsoft security update · 5102337 (opens in a new tab)
- Microsoft remediation guidance (opens in a new tab)
- Microsoft security update · 5102334 (opens in a new tab)
- Microsoft remediation guidance (opens in a new tab)
- Microsoft security update · 5102333 (opens in a new tab)
- Microsoft remediation guidance (opens in a new tab)
- Microsoft security update · 5102335 (opens in a new tab)
- Microsoft remediation guidance (opens in a new tab)
Managed by GTP?
Griffin Technology Partners managed customers may receive additional environment-specific security guidance and remediation assistance through their managed services relationship.
Security bulletins are provided for informational purposes and compiled from authoritative public sources. Vulnerability applicability varies by environment. Validate affected products, configuration, compatibility requirements, and vendor guidance before making production changes.
