Patch tracker / KB5040939
KB5040939: Microsoft SQL Server 2017 for x64-base Security Update (July 2024)
KB5040939 is a High security update for Microsoft SQL Server 2017 for x64-base, released 2024-07-09. It closes 38 CVEs with a maximum CVSS of 8.8. It is the largest of the 32 updates Microsoft shipped that month, by CVEs closed.
Update summary
Fixes 38 CVEs. Most severe CVSS 8.8 (High). EPSS exploit probability up to 1.8%. Among the lower half of tracked Microsoft updates by EPSS exploit probability.
A newer security update for Microsoft SQL Server 2017 for x64-based Systems (GDR) has shipped since this one: KB5101346 (2026-07-14). For cumulative update families the newer package includes these fixes, so installing that one is usually the shorter path. Verify against your own update rings before you skip this package.
KB5040939 is a July 2024 GDR update covering SQL Server 2016 SP3, 2017, and 2019 on x64, bundling fixes for 38 CVEs including several in the SQL Server Native Client OLE DB/ODBC drivers. The highest rated issue reaches CVSS 8.8, though none are in CISA KEV and EPSS remains low at 2 percent. This matters because the sheer volume of driver-side flaws means both database servers and any clients using the Native Client are in scope, not just the engine itself.
Do this: Apply the GDR package matching your SQL Server branch (2016 SP3, 2017, or 2019) and update Native Client components on connecting application hosts as well.
AI-generated from public data, 2026-07-21. Verify against the vendor advisory before acting.
Senserva AI Opinion and rich prompt for KB5040939
Copy this prompt into Claude, ChatGPT, or Copilot. The facts are included, sourced from this page.
Full tracking and change history for KB5040939
- Released
- 2024-07-09
- Last changed
- 2024-07-09
- Changes tracked
- 1
Senserva began recording day-to-day change history on 2026-07-07, and refreshes it several times a day. Release dates are historical where Microsoft publishes them; revision history is tracked from that date forward, so it does not include changes made before then.
Check if KB5040939 is installed
Elevated PowerShell. No output means it is not installed.
CVEs fixed by this update
Sorted exploited-first, then by CVSS. Every CVE links to its Senserva page with the full risk facts, references, and a ready-to-paste AI prompt.
Scope and sources
- Affected products
- Also released in July 2024
KB5002606
4 CVEs · High · exploitedKB5002615
4 CVEs · High · exploitedKB5002618
4 CVEs · High · exploitedKB5040426
1 CVE · High · exploitedKB5002620
2 CVEs · HighKB5040711
1 CVE · HighKB5040712
1 CVE · HighKB5040936
38 CVEs · HighThe full month, summarized: Microsoft Patch Tuesday.
- Authoritative references
See this and every Microsoft update ranked by real-world risk on the Microsoft Patch Tracker.