Skip to the content
The Update Bureau
SQL Server 2025 CU6 + GDR SQL Server 2025 CU6 + GDR Security update
Patch Tuesday

KB5101346

KB5101346: Security update for SQL Server 2025, CU branch, July 2026. MessageQueueTask blocks unsafe MSMQ deserialization; MSDASQL links fail

In short

Fixes SQL Server vulnerabilities, including two critical remote code execution flaws. Linked-server queries using MSDASQL and a provider string might fail with error 7416.

Does it affect you? Applies to: SQL Server 2025 on Windows and Linux, all editions. The update brings the product to version 17.0.4060.2.

Build
17.0.4060.2
Servicing branch
CU
Security
8 fixed · 2 critical
Restart
Required
Review notes Additional details from the official release notes (1) Read note
  • This page The update removes support for the legacy BinaryMessageFormatter and restricts SoapFormatter deserialization. Linked-server queries using MSDASQL with a provider string can fail with error 7416 in certain configurations.

The official sources are linked at the end of the page.

For servers on the CU branch: they install cumulative updates, which also bring fixes beyond security. Servers on the GDR branch (security fixes only) get a separate update. Which branch am I on?

What changes

Fixes 7 changes

Integration Services

  • Untrusted MSMQ messages can no longer trigger remote code execution through MessageQueueTask using the legacy BinaryMessageFormatter.1
    Removes support for the legacy BinaryMessageFormatter (2000 format).

Integration Service

  • Untrusted MSMQ messages can no longer trigger remote code execution through MessageQueueTask's restricted SoapFormatter deserialization.2
    Restricts SoapFormatter deserialization by using an allow list binder.

Metadata

  • A newly created principal no longer inherits unintended EXECUTE permission on EXTERNAL MODEL objects when it reuses the ID of a former principal.3
    Prevents unintended EXECUTE permission inheritance for EXTERNAL MODEL objects when a newly created principal reuses the ID of a previous principal that had the permission.

Programmability

  • Low-privilege authenticated SQL Server users can no longer use certain vector functions to expose sqlservr.exe process memory.4
    Addresses the vulnerability when VECTOR_DISTANCE, VECTOR_NORM, or VECTOR_NORMALIZE uses varchar(max) for the distance metric or norm algorithm.

Query Execution

  • Using sys.dm_exec_input_buffer or DBCC INPUTBUFFER no longer causes a memory leak.5
    Resolves a memory leak involving the sys.dm_exec_input_buffer dynamic management function (DMF) or the DBCC INPUTBUFFER command.

Replication

  • Input passed to an internal replication stored procedure is validated and sanitized before the procedure uses it.6
    Addresses input validation and sanitization for a parameter passed to an internal replication stored procedure.

SQL Agent

  • An authenticated attacker can no longer use specially crafted SQL Server commands to elevate privileges over a network.7
    Resolves an SQL injection vulnerability caused by improper neutralization of special elements in SQL Server commands.

Known issues

  1. Open Affects: Organizations and IT administrators

    Linked server queries that use MSDASQL fail with error 7416

    Linked-server queries that use the MSDASQL provider and specify a provider string (@provstr) might fail with error 7416, stating that no login mapping exists. This can occur with certain configurations even if earlier builds allowed the connections.8

    Workaround status No workaround yet

    Microsoft has not published a manual workaround for this issue yet. Monitor release health until a resolving update is available.

Technical details

Data sheet · Security · Downloads · Components Click to collapse or expand

Data sheet

Released
2026-07-14
Classification
Security Updates
Type
Cumulative update
Servicing branch
CU
Restart
Required
Replaces
KB5093421, KB5084896, KB5089899, KB5081495
+5 earlier KB5083245, KB5077896, KB5077466, KB5075211, KB5078298
Replaced by
KB5122769
VersionBuildChannel
2025 17.0.4060.2 General availability

Security

8 vulnerabilities fixed
2 critical 5 important 1 not rated
VulnerabilitySeverityCVSS
Microsoft SQL Server Remote Code Execution Vulnerability
Critical 9.8
Microsoft SQL Server Remote Code Execution Vulnerability
Critical 9.8
Microsoft SQL Server Elevation of Privilege Vulnerability
Important 8.8
Microsoft SQL Server Elevation of Privilege Vulnerability
Important 8.8
Microsoft SQL Server Elevation of Privilege Vulnerability
Important 7.5
Microsoft SQL Server Information Disclosure Vulnerability
Important 6.5
Microsoft SQL Server Information Disclosure Vulnerability
Important 6.5
Windows MultiPoint Services Elevation of Privilege Vulnerability
Not rated —

Downloads (Microsoft Update Catalog)

Updated components

147 files changed since the previous update for the same versions.

Top changed componentsFiles
SQL Server Engine114
SQL Server PolyBase3

Sources

Updated
Cited passages from Microsoft's official notes (8)
  1. 1. This fix resolves an insecure deserialization vulnerability in MessageQueueTask by removing support for the legacy BinaryMessageFormatter (2000 format). support.microsoft.com
  2. 2. This fix resolves an insecure deserialization vulnerability in MessageQueueTask by restricting SoapFormatter deserialization that uses an allow list binder. support.microsoft.com
  3. 3. This fix prevents unintended EXECUTE permission inheritance for EXTERNAL MODEL objects if a newly created principal reuses the same ID as a previously existing principal that had this permission. support.microsoft.com
  4. 4. This fix addresses a vulnerability in SQL Server in which vector intrinsics (VECTOR_DISTANCE, VECTOR_NORM, and VECTOR_NORMALIZE) leak sqlservr.exe process memory to low‑privilege, authenticated SQL Server users if the distance metric or norm algorithm is specified as varchar(max). support.microsoft.com
  5. 5. This fix resolves a memory leak that occurs if the sys.dm_exec_input_buffer dynamic management function (DMF) or the DBCC INPUTBUFFER command is used. support.microsoft.com
  6. 6. This fix addresses input validation and sanitization of user input for a parameter that's passed to an internal replication stored procedure by validating and sanitizing the input before the stored procedure uses it. support.microsoft.com
  7. 7. This fix resolves an SQL injection vulnerability in SQL Server in which improper neutralization of special elements in SQL Server commands allows an authenticated attacker to elevate privileges over a network. support.microsoft.com
  8. 8. Linked server queries that use the MSDASQL (OLE DB Provider for ODBC Drivers) provider and specify a provider string (@provstr) fail and return the following error message: support.microsoft.com
Checked automatically: 7 of 8 checks passed, 8 quoted passages · compared with Microsoft's page on Oct 16, 2026
  • Quotes found in the official pages: passed
  • Numbers found in the sources: passed
  • Vulnerabilities from the dossier only: passed
  • Links to allowed domains only: passed
  • Every official change covered: passed
  • Readable plain text: passed
  • Changes confirmed by the file list: passed
  • Sources agree: not passed

A second AI read the text against the sources: correctness 4/5, clarity 4/5, completeness 5/5. How we work

Published by The Update Bureau. Written with AI from Microsoft's own documents, checked by rules and a second AI. How we work · Report a mistake