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

KB5042578

KB5042578: Security update for SQL Server 2022, CU branch, September 2024. CDC capture jobs can fail; temporal-table quoting fixed

In short

Addresses 12 vulnerabilities and fixes temporal-table name quoting. In databases with CDC enabled, some column names might be missing from tracking tables, which can cause capture jobs to fail.

Does it affect you? Applies to: Systems running SQL Server 2022. The update package is for x64; the known issue affects databases with change data capture (CDC) enabled.

Build
16.0.4140.3
Servicing branch
CU
Security
12 fixed
Restart
Required
Review notes Additional details from the official release notes (1) Read note
  • Known issues CDC upgrades or restores can also be affected by tracking-table column names containing symbols such as &, <, or >, or certain control characters—not only commas.

The official sources are linked at the end of the page.

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

Improvements 2 changes

Query Execution

  • Running PREDICT with an incorrect model gets validation to help avoid errors.1
    Adds validation for the MODEL parameter when running PREDICT.

Replication

  • CDC gains a capability to lock down metadata definitions and block DDL operations.2
    Adds metadata definition lockdown capability to change data capture (CDC).

Fix 1 change

Temporal

  • Stored procedures that manage temporal tables quote table and column names correctly when building internal SQL batches.3
    Fixes cases where names read from database metadata were not correctly quoted.

Known issues

  1. Open Affects: Organizations and IT administrators

    CDC capture job might fail if columns are missing in CDC change tables

    In databases with CDC enabled, columns with commas might be missing from CDC tracking tables and cause capture jobs to fail. If a database is restored with KEEP_CDC, the restore can report an error near the end even though the database restores successfully.4

    How to apply the workaround SQL Trace Flag

    Add trace flag T15006 and restart the SQL Server service before upgrading. If the GDR is already applied, use the flag and restart before repeating an affected restore, or—if the upgrade dropped columns—disable and reenable CDC on the affected table; this loses change data.4

    Step-by-step workaround instructions
    5 steps
    Show steps Hide steps
    Step-by-step procedure
    1. Open SQL Server Configuration Manager.
    2. Select the SQL Server instance, open Properties, and go to Startup Parameters.
    3. Add T15006, select Add, then Apply, and restart the SQL Server service before upgrading.
    4. If the GDR is already applied and a database restore was affected, add the trace flag and restart as above, then restore the database again.
    5. If the GDR upgrade dropped columns, add the trace flag and restart as above, then disable and reenable CDC on the affected table; this causes change data to be lost.

Technical details

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

Data sheet

Released
2024-09-10
Classification
Security Updates
Type
Cumulative update
Servicing branch
CU
Restart
Required
Replaces
KB5038325, KB5040939, KB5036432, KB5036343
+3 earlier KB5033663, KB5032679, KB5033592
Replaced by
KB5046059
VersionBuildChannel
2022 16.0.4140.3 General availability

Security

12 vulnerabilities fixed
11 important 1 not rated
VulnerabilitySeverityCVSS
Microsoft SQL Server Native Scoring Remote Code Execution Vulnerability
Important 8.8
Microsoft SQL Server Native Scoring Remote Code Execution Vulnerability
Important 8.8
Microsoft SQL Server Native Scoring Remote Code Execution Vulnerability
Important 8.8
Microsoft SQL Server Native Scoring Remote Code Execution Vulnerability
Important 8.8
Microsoft SQL Server Native Scoring Remote Code Execution Vulnerability
Important 8.8
Microsoft SQL Server Native Scoring Remote Code Execution Vulnerability
Important 8.8
Microsoft SQL Server Elevation of Privilege Vulnerability
Important 8.8
Microsoft SQL Server Elevation of Privilege Vulnerability
Important 8.8
Microsoft SQL Server Native Scoring Information Disclosure Vulnerability
Important 7.1
Microsoft SQL Server Native Scoring Information Disclosure Vulnerability
Important 7.1
Microsoft SQL Server Native Scoring Information Disclosure Vulnerability
Important 7.1
Microsoft SQL Server Elevation of Privilege Vulnerability
Not rated —

Downloads (Microsoft Update Catalog)

Sources

Updated
Cited passages from Microsoft's official notes (4)
  1. 1. Adds a validation for the MODEL parameter when running PREDICT to avoid errors that occur because of the input of wrong models. support.microsoft.com
  2. 2. Improves security for the change data capture (CDC) feature by adding metadata definition lockdown capability to block data definition language (DDL) operations. support.microsoft.com
  3. 3. After the fix is applied, quoting is completed correctly. support.microsoft.com
  4. 4. If your CDC-enabled tables have columns whose names contain commas, these columns might be missing from your CDC tracking tables (cdc.<capture_instance>_CT). This condition might cause the capture job to fail. support.microsoft.com
Checked automatically: 7 of 8 checks passed, 4 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: not passed

A second AI read the text against the sources: correctness 4/5, clarity 4/5, completeness 4/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