Skip to content
SQL injection Advisory Advanced CVE-2026-32176

SQL Server Elevation of Privilege Vulnerability (CVE-2026-32176)

SQL Server contains an SQL injection flaw that lets an authorised attacker elevate privileges locally. Successful exploitation could grant the attacker SQL sysadmin privileges.

Anon Follow

Originally disclosed on Microsoft

High 6.7 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 locally.

FAQ

I am running SQL Server on my system. What action do I need to take? Update your relevant version of SQL Server using the applicable October 2026 security update listed below. 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, see Microsoft Knowledge Base Article 321185 - How to determine the version, edition, and update level of SQL Server and its components. Second, locate the range containing your current version number in the following table. The corresponding update is the one you need to install. Note: If your version is not represented in the table, review the applicable update's prerequisites and the support status of your SQL Server release before choosing an update. Absence from this table alone does not establish that a version is unsupported. Update Number Title Version Apply if current product version is… This security update also includes servicing releases up through… 5126967 SQL Server 2025 CU9+GDR (October GDR 2026) 17.0.5015.4 17.0.4006.2 - 17.0.5005.3 KB5122048 - SQL2025 RTM CU9 5128492 SQL Server 2025 RTM+GDR (October GDR 2026) 17.0.1145.4 17.0.1000.7 - 17.0.1135.8 KB5122770 - Previous SQL2025 RTM GDR 5126934 SQL Server 2022 CU27+GDR1 (October GDR 2026) 16.0.4305.5 16.0.4003.1 - 16.0.4295.3 KB5104824 - SQL2022 RTM CU27 5128493 SQL Server 2022 RTM+GDR (October GDR 2026) 16.0.1210.3 16.0.1000.6 - 16.0.1200.5 KB5122771 - Previous SQL2022 RTM GDR 5128494 SQL Server 2019 CU32+GDR (October GDR 2026) 15.0.4500.2 15.0.4003.23 - 15.0.4490.9 KB5122772 - Previous SQL2019 RTM CU32 GDR 5128495 SQL Server 2019 RTM+GDR (October GDR 2026) 15.0.2200.2 15.0.2000.5 - 15.0.2190.7 KB5122773 - Previous SQL2019 RTM GDR 5128496 SQL Server 2017 CU31+GDR (October GDR 2026) 14.0.3560.2 14.0.3006.16 - 14.0.3550.4 KB5122774 - Previous SQL2017 RTM CU31 GDR 5128497 SQL Server 2017 RTM+GDR (October GDR 2026) 14.0.2140.2 14.0.1000.169 - 14.0.2130.4 KB5122775 - Previous SQL2017 RTM GDR What are the GDR and CU update designations and how do they differ? General Distribution Release (GDR) updates provide security and other broadly applicable critical fixes. Cumulative Updates (CUs) include accumulated fixes for the applicable SQL Server release. Use the version ranges above to select the security update for your installed servicing branch; CU+GDR updates apply to the listed CU branch, while RTM+GDR updates apply to the listed RTM/GDR branch.

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… 5083245 Security update for SQL Server 2025 CU3+GDR 17.0.4030.1 17.0.4006.2 - 17.0.4025.3 KB5077896 - Previous SQL2025 RTM CU3 5084814 Security update for SQL Server 2025 RTM+GDR 17.0.1110.1 17.0.1000.7 - 17.0.1105.2 KB5077468 - Previous SQL2025 RTM GDR 5083252 Security update for SQL Server 2022 CU24+GDR 16.0.4250.1 16.0.4003.1 - 16.0.4245.2 KB5080999 - Previous SQL2022 RTM CU24 5084815 Security update for SQL Server 2022 RTM+GDR 16.0.1175.1 16.0.1000.6 - 16.0.1170.5 KB5077465 - Previous SQL2022 RTM GDR 5084816 Security update for SQL Server 2019 CU32+GDR 15.0.4465.1 15.0.4003.23 - 15.0.4460.4 KB 5077469 - Previous SQL2019 RTM CU32 GDR 5084817 Security update for SQL Server 2019 RTM+GDR 15.0.2165.1 15.0.2000.5 - 15.0.2160.4 KB 5077470 - Previous SQL2019 RTM GDR 5084818 Security update for SQL Server 2017 CU31+GDR 14.0.3525.1 14.0.3006.16 - 14.0.3520.4 KB 5077471 - Previous SQL2017 RTM CU31 GDR 5084819 Security update for SQL Server 2017 RTM+GDR 14.0.2105.1 14.0.1000.169 - 14.0.2100.4 KB 5077472 - Previous SQL2017 RTM GDR 5084820 Security update for SQL Server 2016 Azure Connect Feature Pack+GDR 13.0.7080.1 13.0.7000.253 - 13.0.7075.5 KB 5077473 - Previous SQL2016 Azure Connect Feature Pack GDR 5084821 Security update for SQL Server 2016 SP3+GDR 13.0.6485.1 13.0.6300.2 - 13.0.6480.4 KB 5077474 - 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.

SQL Server

SQL Server

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Anon. 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 an SQL command, allowing crafted input to alter the executed query.

Impact

An authorised attacker could elevate privileges locally and gain SQL sysadmin privileges.

What the attacker needed

Authorised local access to SQL Server

The fix

The vulnerability was fixed by installing the applicable October 2026 security update for the relevant SQL Server version.

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 injection is when a program builds a database command out of untrusted input without cleaning it, so the input can change the command. Here, someone who already has some access to the database server could use that weakness to give themselves the highest database role, called sysadmin. The text does not explain the exact input or code path.

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 Anon

View all

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