KB5042211: Security update for SQL Server 2022, GDR branch, September 2024. CDC upgrades risk missing columns; 12 vulnerabilities addressed
Addresses 12 vulnerabilities. Applying it can also expose a CDC issue that causes missing tracking-table columns and failed capture jobs, upgrades, or restores.
Does it affect you? Applies to: Servers running SQL Server 2022 GDR, x64. The update is optional for computers that do not host Microsoft SQL Server Reporting Services.
Review notes Additional details from the official release notes (1) Read note
- Known issues This issue affects SQL Server databases with change data capture (CDC) enabled. It is relevant to people administering those databases.
The official sources are linked at the end of the page.
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
Improvements 2 changes
Query Execution
-
PREDICT checks the MODEL parameter to help avoid errors caused by an incorrect model.1
Adds validation for the MODEL parameter when running PREDICT.
Replication
-
CDC can block changes to database definitions, improving security for the feature.2
Adds metadata definition lockdown capability to block data definition language (DDL) operations.
Fix 1 change
Temporal
-
Stored procedures that manage temporal tables correctly quote table and column names read from database metadata.3
Fixes cases where names read from database metadata aren't correctly quoted when internal SQL Server batches are built.
Known issues
-
CDC capture job might fail if columns are missing in CDC change tables
In CDC-enabled databases, columns whose names contain commas might be missing from CDC tracking tables. The CDC upgrade or restore process might also fail when tracking-table column names contain symbols such as
&,<,>or characters with ASCII decimal codes below 32, except tab and line feed. Capture jobs or applications that use the affected tables might fail; restoring withKEEP_CDCcan also trigger the issue.4How to apply the workaround SQL Trace FlagUse trace flag T15006 before an upgrade. If the GDR is already applied and comma-containing columns were dropped, add the flag and restart; rerun an affected restore, or disable and re-enable CDC on the affected table. Disabling and re-enabling CDC loses change data.4
Step-by-step workaround instructionsShow steps Hide steps5 stepsStep-by-step procedure- In SQL Server Configuration Manager, open the SQL Server instance's
Propertiesand go toStartup Parameters. - Add trace flag
T15006, selectAddandApply, then restart the SQL Server service. - If the flag was added before an upgrade, perform the upgrade while it is active.
- If the GDR is already applied and comma-containing columns were dropped, add the flag and restart. If a restore was affected, restore the database again.
- If the GDR upgrade dropped columns, disable and re-enable CDC on the affected table using
sp_cdc_disable_tableandsp_cdc_enable_table; this causes change data to be lost.
- In SQL Server Configuration Manager, open the SQL Server instance's
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
- GDR
- Restart
- Required
- Replaces
- KB5040936, KB5035432, KB5032968
- Replaced by
- KB5046057
| Version | Build | Channel |
|---|---|---|
| 2022 | 16.0.1125.1 | General availability |
Security
| Vulnerability | Severity | CVSS |
|---|---|---|
|
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
Cited passages from Microsoft's official notes (4)
-
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.
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.
Fixes an issue in which table and column names that are read from database metadata aren't correctly quoted in some cases when building internal SQL Server batches in stored procedures that manage temporal tables.
support.microsoft.com -
4.
This action might fail if a CDC tracking table (cdc.<capture_instance>_CT) has columns whose name contains any symbol, such as
support.microsoft.com&,<,>,or characters whose ASCII decimal code is less than 32
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 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