Skip to content
RCE Advisory Advanced CVE-2026-65674

Microsoft SQL Server Remote Code Execution Vulnerability (CVE-2026-65674)

SQL Server deserialises untrusted data, so an authenticated attacker who sends a crafted request over the network could run code on the server. The text also describes a memory corruption condition triggered by a crafted query, but gives no technical detail on either flaw.

Piotr Bazydło Follow

Originally disclosed on Microsoft

High 8.8 View original

Description

Deserialization of untrusted data in SQL Server allows an authorized attacker to execute code over a network.

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

How could an attacker exploit this vulnerability? An authenticated attacker could exploit this vulnerability by sending a specially crafted request to an affected service over the network. Successful exploitation could allow the attacker to execute code on the target system.

FAQ

How could an attacker exploit this vulnerability? An authenticated attacker could exploit this vulnerability by connecting to an affected SQL Server and submitting a specially crafted query or request that triggers a memory corruption condition, allowing the attacker to execute code on the server. Authentication is required; user interaction is not required.

SQL Server

SQL Server

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Piotr Bazydło (@chudypb). 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 the server deserialises attacker-influenced data without validating it, and a crafted query can also trigger a memory corruption condition.

Impact

An authenticated attacker could execute code on the target system; the text does not say whether any defence limited the exploit.

What the attacker needed

Valid SQL Server credentials; network access to the SQL Server

The fix

It should be fixed by installing the applicable October 2026 security update for the installed 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 Server is a database program that stores and answers queries for other software. Deserialisation means turning stored data back into live objects, and if that data is not checked, an attacker can slip in something that runs as code. Here an attacker who already has a login could send a crafted request and run their own code on the database server.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by Piotr Bazydło

View all

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

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.