Patch tracker / KB5040942

KB5040942: Microsoft SQL Server 2017 for x64-base Security Update (July 2024)

KB5040942 is a High security update for Microsoft SQL Server 2017 for x64-base, released 2024-07-09. It closes 36 CVEs with a maximum CVSS of 8.8. It is the eighth largest of the 32 updates Microsoft shipped that month, by CVEs closed.

Update summary

High
2024-07-09
Released
36
CVEs fixed
8.8
Max CVSS
High
Severity
Deploy this cycle
Fixes 36 CVEs for Microsoft SQL Server 2017 for x64-base. No confirmed in-the-wild exploitation in this set today.

Fixes 36 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.

Senserva found thiswe track every release for this product line, so we can tell you this package is behind

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.

Senserva AI Opinion for KB5040942

KB5040942 is the July 2024 GDR rollup for SQL Server 2016 SP3, 2017, and 2019, closing 36 CVEs at a highest Severity of High with a CVSS of 8.8. Most of these are SQL Server engine flaws (for example CVE-2024-38088 and CVE-2024-37318), so any host running a database instance under these versions is in scope. None are on the CISA KEV list and EPSS tops out at 2%, meaning there is no evidence of active exploitation yet, but the count of 36 fixes makes this a substantial single-shot patch.

Do this: Schedule the GDR update across your SQL Server 2016 SP3, 2017, and 2019 instances during your next maintenance window, prioritizing internet-facing or business-critical database hosts first.

AI-generated from public data, 2026-07-21. Verify against the vendor advisory before acting.

Senserva AI Opinion and rich prompt for KB5040942

Copy this prompt into Claude, ChatGPT, or Copilot. The facts are included, sourced from this page.

Full tracking and change history for KB5040942

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 KB5040942 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.

CVESeverityCVSSEPSSExploited
CVE-2024-20701High8.81.8%No
CVE-2024-21303High8.81.8%No
CVE-2024-21308High8.81.8%No
CVE-2024-21317High8.81.8%No
CVE-2024-21331High8.81.8%No
CVE-2024-21332High8.81.8%No
CVE-2024-21333High8.81.8%No
CVE-2024-21335High8.81.8%No
CVE-2024-21373High8.81.8%No
CVE-2024-21398High8.81.8%No
CVE-2024-21414High8.81.8%No
CVE-2024-21415High8.81.8%No
CVE-2024-21425High8.81.8%No
CVE-2024-21428High8.81.8%No
CVE-2024-21449High8.81.8%No
CVE-2024-28928High8.81.8%No
CVE-2024-35256High8.81.8%No
CVE-2024-35271High8.81.8%No
CVE-2024-37318High8.81.8%No
CVE-2024-37319High8.81.8%No
CVE-2024-37320High8.81.8%No
CVE-2024-37321High8.81.8%No
CVE-2024-37322High8.81.8%No
CVE-2024-37323High8.81.8%No
CVE-2024-37324High8.81.8%No
CVE-2024-37326High8.81.8%No
CVE-2024-37327High8.81.8%No
CVE-2024-37328High8.81.8%No
CVE-2024-37329High8.81.8%No
CVE-2024-37330High8.81.8%No
CVE-2024-37331High8.81.8%No
CVE-2024-37332High8.81.8%No
CVE-2024-37333High8.81.8%No
CVE-2024-37336High8.81.8%No
CVE-2024-38087High8.81.8%No
CVE-2024-38088High8.81.8%No

See this and every Microsoft update ranked by real-world risk on the Microsoft Patch Tracker.

New to a term on this page? CVE, KB, KEV, CVSS, and EPSS are each explained once, on the Senserva security lexicon. Reference: Microsoft CVE and vulnerability management and the Microsoft patching guide.
Provided as is, without warranty; verify against the vendor advisory before acting. Data notice and terms.