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

KB5102333

KB5102333: Security update for SQL Server 2025, GDR branch, July 2026. Critical remote-code-execution flaws fixed; MSDASQL queries still fail

In short

The update fixes two critical remote-code-execution vulnerabilities, CVE-2026-54117 and CVE-2026-54118. Linked-server queries using MSDASQL and a provider string can still fail with error 7416.

Does it affect you? Applies to: SQL Server 2025 on Windows and Linux, all editions. The listed Integration Services fixes apply to Windows; the listed SQL Server Engine fixes apply to Windows and Linux.

Build
17.0.1125.2
Servicing branch
GDR
Security
8 fixed · 2 critical
Restart
Required
Review notes Additional details from the official release notes (1) Read note
  • Does it affect you? The Metadata fix for unintended EXECUTE permission inheritance is listed for Windows only. Other SQL Server Engine fixes in this update are listed for Windows and Linux.

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

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

What changes

Fixes 6 changes

Integration Services

For: Users of MessageQueueTask

  • MessageQueueTask restricts SoapFormatter deserialization to help prevent remote code execution from untrusted MSMQ messages.1
    The deserialization restriction uses an allow list binder.

Metadata

  • A newly created principal no longer unintentionally inherits EXECUTE permission on EXTERNAL MODEL objects when it reuses the ID of a previous principal that had that permission.2

Programmability

  • Vector functions no longer expose sqlservr.exe process memory to low-privilege, authenticated SQL Server users in the specified conditions.3
    The vulnerability involves VECTOR_DISTANCE, VECTOR_NORM, and VECTOR_NORMALIZE when the distance metric or norm algorithm is specified as varchar(max).

Query Execution

  • A memory leak is resolved when sys.dm_exec_input_buffer or DBCC INPUTBUFFER is used.4

Replication

  • Input passed to an internal replication stored procedure is validated and sanitized before the procedure uses it.5

SQL Agent

For: Authenticated SQL Server users

  • An SQL injection vulnerability that could let an authenticated attacker elevate privileges over a network is resolved.6
    The vulnerability involves improper neutralization of special elements in SQL Server commands.

Improvement 1 change

Integration Services

For: SQL Server 2025 Integration Services users

  • Password-protected Integration Services packages targeting SQL Server 2025 use stronger encryption. Packages saved after the update need compatible versions of SSDT and SSMS to open; packages targeting SQL Server 2022 and earlier are unaffected.7
    Password-based encryption uses PBKDF2 with SHA-256 and 100,000 iterations. This also applies to packages generated by the Import and Export Wizard.

Removal 1 change

Integration Services

For: Users of MessageQueueTask

  • MessageQueueTask no longer supports the legacy BinaryMessageFormatter (2000 format), preventing remote code execution from untrusted MSMQ messages.8

Known issues

  1. Open Affects: Organizations and IT administrators

    Linked server queries that use MSDASQL fail with error 7416

    Linked-server queries that use MSDASQL and specify a provider string (@provstr) can fail with error 7416. Stricter Database Engine connection validation can reject some configurations even if earlier builds allowed them.9

    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
GDR
Restart
Required
Replaces
KB5091223, KB5084814, KB5077468, KB5073177
Replaced by
KB5122770
VersionBuildChannel
2025 17.0.1125.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

144 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 (9)
  1. 1. This fix resolves an insecure deserialization vulnerability in MessageQueueTask by restricting SoapFormatter deserialization that uses an allow list binder. support.microsoft.com
  2. 2. 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
  3. 3. 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
  4. 4. 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
  5. 5. 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
  6. 6. 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
  7. 7. Upgrades SQL Server Integration Services (SSIS) password-based encryption (EncryptAllWithPassword and EncryptSensitiveWithPassword) to use PBKDF2 with SHA-256 and 100,000 iterations support.microsoft.com
  8. 8. This fix resolves an insecure deserialization vulnerability in MessageQueueTask by removing support for the legacy BinaryMessageFormatter (2000 format). MessageQueueTask prevents remote code execution from untrusted Microsoft Message Queuing (MSMQ) messages. support.microsoft.com
  9. 9. 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, 9 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