Skip to the content
The Update Bureau
SQL Server 2017 CU31 + GDR SQL Server 2017 CU31 + GDR Security update
Patch Tuesday

KB5058714

KB5058714: Security update for SQL Server 2017, CU branch, July 2025. Information disclosure flaw and SQL Setup interruptions fixed

In short

Addresses a publicly disclosed SQL Server information disclosure vulnerability and fixes two issues, including restarts that can prevent SQL Setup from continuing.

Does it affect you? Applies to: SQL Server 2017 installations with SQL Server 2017 or any SQL Server 2017 CU release through CU31 GDR installed. The available package is for x64.

Build
14.0.3495.9
Servicing branch
CU
Security
1 fixed
Restart
Required

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 2 changes

Query Execution

  • In rare cases, variable-length parameters no longer cause uninitialized memory to be read.1
    Fixes the issue in SQL Server Engine query execution involving uninitialized memory and variable-length parameters.

Patching

  • SQL Setup no longer encounters the issue that causes restarts and prevents Setup from continuing.2
    When you apply updates to SQL Server, the PendingFileRenameOperations registry key value is deleted.

Technical details

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

Data sheet

Released
2025-07-08
Classification
Security Updates
Type
Cumulative update
Servicing branch
CU
Restart
Required
Replaces
KB5050533, KB5046858, KB5046061, KB5042215, KB5040940
Replaced by
KB5063759
VersionBuildChannel
2017 14.0.3495.9 General availability

Security

1 vulnerability fixed
1 important
VulnerabilitySeverityCVSS
Microsoft SQL Server Information Disclosure Vulnerability
Important 7.5

Downloads (Microsoft Update Catalog)

Sources

Updated
Cited passages from Microsoft's official notes (2)
  1. 1. Fixes an issue in which uninitialized memory can be read in some rare cases when using variable length parameters. support.microsoft.com
  2. 2. Fixes an issue that was introduced in a previous Windows update that causes restarts and prevents Setup from continuing. support.microsoft.com
Checked automatically: 8 of 8 checks passed, 2 quoted passages · compared with Microsoft's page on Oct 20, 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 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