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

KB5040936

KB5040936: Security update for SQL Server 2022, GDR branch, July 2024. 38 OLE DB vulnerabilities addressed; unused Stretch DB components removed

In short

Resolves 38 vulnerabilities, all rated Important, including remote-code-execution flaws in OLE DB components. It also removes unused Stretch DB components from setup.

Does it affect you? Applies to: The update is for x64 servers running SQL Server 2022 or a SQL Server 2022 GDR release through this update. It is offered to all servers running SQL Server, but installation is optional on computers that do not host Reporting Services.

Build
16.0.1121.4
Servicing branch
GDR
Security
38 fixed
Restart
Required

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

Removal 1 change

Stretch DB

  • Unused Stretch DB components are removed from SQL Server Setup.1
    Bug reference 3294516.

Technical details

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

Data sheet

Released
2024-07-09
Classification
Security Updates
Type
Cumulative update
Servicing branch
GDR
Restart
Required
Replaces
KB5035432, KB5032968
Replaced by
KB5042211
VersionBuildChannel
2022 16.0.1121.4 General availability

Security

38 vulnerabilities fixed
38 important
VulnerabilitySeverityCVSS

The table lists the 0 exploited, publicly disclosed or critical vulnerabilities. See all 38 vulnerabilities →

Downloads (Microsoft Update Catalog)

Sources

Updated
Cited passages from Microsoft's official notes (1)
  1. 1. Removes unused components from SQL Server Setup. support.microsoft.com
Checked automatically: 8 of 8 checks passed, 1 quoted passage · 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 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