KB5102337: Security update for SQL Server 2017, CU branch, July 2026. Critical remote-code-execution flaw fixed; linked-server error remains
The update fixes a critical remote-code-execution vulnerability and three other issues in SQL Server 2017. Linked-server queries using MSDASQL can still fail with error 7416.
Does it affect you? Applies to: The package is for x64-based SQL Server 2017. It applies to SQL Server 2017 or any SQL Server 2017 CU release through CU31 GDR.
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 4 changes
Integration Services
For: SQL Server instances using Integration Services
-
The fix restricts MessageQueueTask deserialization to help prevent remote code execution from untrusted MSMQ messages.1
Restricts
SoapFormatterdeserialization using an allow list binder.
Query Execution
For: SQL Server instances using these query diagnostics
-
A memory leak is fixed when
sys.dm_exec_input_bufferor the DBCC INPUTBUFFER command is used.2The leak occurs when thesys.dm_exec_input_bufferdynamic management function (DMF) or DBCC INPUTBUFFER is used.
Replication
For: SQL Server instances using replication
-
Input passed to an internal replication stored procedure is validated and sanitized before the procedure uses it.3
Adds input validation and sanitization for a parameter passed to an internal replication stored procedure.
SQL Agent
For: SQL Server instances using SQL Agent
-
An SQL injection vulnerability that could let an authenticated attacker elevate privileges over a network is fixed.4
Fixes improper neutralization of special elements in SQL Server commands.
Known issues
-
Linked server queries that use MSDASQL fail with error 7416
Linked-server queries using the
MSDASQLprovider and a provider string (@provstr) fail with error 7416. The error says access to the remote server is denied because no login mapping exists.5Workaround status No workaround yetMicrosoft 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
- KB5090354, KB5084818, KB5077471, KB5068402
- Replaced by
- KB5122774
| Version | Build | Channel |
|---|---|---|
| 2017 | 14.0.3540.1 | General availability |
Security
| Vulnerability | Severity | CVSS |
|---|---|---|
|
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 |
Downloads (Microsoft Update Catalog)
Updated components
120 files changed since the previous update for the same versions.
| Top changed components | Files |
|---|---|
| SQL Server Engine | 94 |
| SQL Server PolyBase | 2 |
Sources
Cited passages from Microsoft's official notes (5)
-
1.
This fix resolves an insecure deserialization vulnerability in MessageQueueTask by restricting SoapFormatter deserialization that uses an allow list binder. The restriction prevents remote code execution (RCE) from untrusted Microsoft Message Queuing (MSMQ) message.
support.microsoft.com -
2.
This fix resolves a memory leak that occurs if the
support.microsoft.comsys.dm_exec_input_bufferdynamic management function (DMF) or the DBCC INPUTBUFFER command is used. -
3.
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 -
4.
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 -
5.
Linked server queries that use the
support.microsoft.comMSDASQL(OLE DB Provider for ODBC Drivers) provider and specify a provider string (@provstr) fail and return the following error message:
Checked automatically: 8 of 8 checks passed, 5 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: passed
A second AI read the text against the sources: correctness 5/5, clarity 5/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