SQL Server 2022 Cumulative Update 28 was released on 12 November 2026. It brings the build to 16.0.4325.4 and contains 91 fixes spanning security hardening, high availability, query correctness, Integration Services, PolyBase, and the storage engine. This is one of the more security-focused cumulative updates in the SQL Server 2022 lifecycle, and the volume of fixes warrants a careful read before you decide when to schedule the upgrade.

Overview

CU28 applies to SQL Server 2022 RTM and all prior CU levels. After applying it your instance will report:

  • SQL Server build: 16.0.4325.4
  • Analysis Services build: 16.0.43.253
  • Release date: 12 November 2026
  • Total fixes: 91

Registration is no longer required to download cumulative updates. The download is available from the Microsoft Download Centre and the KB article is KB5125472.

What's in This Update

With 91 fixes it is impractical to walk through every item individually. The fixes cluster into clear themes, and understanding those themes is the fastest way to assess relevance to your environment.

Security Hardening Across the Board

The single largest theme in CU28 is security. A substantial portion of the 91 fixes address memory safety issues, input validation gaps, and authorisation weaknesses. Key areas include:

Backup and restore (VDI/VSS): Four fixes address memory safety in the Virtual Device Interface and VSS Writer. KB5490933 and KB5658034 fix out-of-bounds memory write conditions triggered by malformed input sizes. KB5571551 and KB5571985 fix an out-of-bounds write and an out-of-bounds read respectively during VDI backup and restore data transfer. KB5497299 fixes an integer-handling issue in backup metadata processing that could permit elevation of privilege.

Replication: More than 30 fixes touch replication security. Highlights include KB5722308, which fixes an information disclosure vulnerability in the xp_decodequeuecmd replication queue command decoder; KB5731797, which fixes an elevation of privilege vulnerability in merge replication subscriber validation expressions; KB5723283, which fixes a heap buffer overflow in the Log Reader Agent when escaping single quotes in column values; and KB5632850, which fixes a buffer overflow when merge replication processes more than 250 WebSync XML nickname entries. The remaining replication fixes improve input validation, bounds checking, authorisation, and identifier handling across transactional, merge, and queued updating replication.

Storage engine and methods to access stored data: KB5624558 fixes a condition where querying a corrupted row-compressed record could return unintended memory content. KB5624644 fixes a heap buffer overflow reading COLUMNSTORE_ARCHIVE-compressed segments with malformed headers. KB5624545 and KB5624581 improve security by initialising buffers used during index record construction, B-tree page splits, insert, update, bulk, compression, and record reconstruction operations.

CLR integration: KB5529157 fixes an out-of-bounds memory write in SqlDataRecord.SetBytes for sql_variant values, which could cause denial of service or elevation of privilege when CLR integration is enabled.

Extensibility / Machine Learning Services: KB5578970 fixes memory corruption and information disclosure vulnerabilities in the SQLSatellite protocol used by Machine Learning Services and Language Extensions.

SSIS: KB5654329 disables XSLT scripting by default in the SSIS XML Task. This is a security-motivated default change, not just a bug fix. If your SSIS packages use the XML Task with XSLT scripts, you will need to set a registry key to restore the previous behaviour after applying this update (see the Known Issues section below for detail).

SQL connectivity: KB5596464 fixes an out-of-bounds memory read when SQL Server processes certain client connection requests.

High Availability and Disaster Recovery

KB5216517 fixes intermittent errors 976 and 978 on read-intent-only secondary replicas when monitoring queries use sys.dm_exec_requests or sys.sysprocesses. This is a practical pain point for shops that run monitoring agents against secondaries.

KB5478462 fixes an availability group listener that uses a DHCP address failing to come online.

KB5523678 adds validation of FILESTREAM fragment sizes on AG secondary replicas to reject oversized fragments.

KB5673576 adds three new stored procedures for databases in multi-database link mode with Azure SQL Managed Instance: sys.sp_milink_reseed, sys.sp_milink_repair, and sys.sp_milink_check.

Query Correctness

KB5634469 fixes a query returning incorrect results when a string predicate is applied over a window aggregate and the partitioning column uses a case-insensitive collation. This is a silent wrong-answer bug, which makes it particularly important to be aware of.

KB5587164 fixes MDX queries using nested subselects over ragged hierarchies with HideMemberIf omitting hidden leaf members, causing missing rows or lower measure totals in Analysis Services.

Performance

KB5289354 fixes performance degradation during online operations and database recovery on instances configured with approximately 20 TB or more of memory. This is relevant to large in-memory or high-end physical server deployments.

KB5660083 fixes non-yielding scheduler errors and dump files during heavy lazy writer I/O activity.

KB5639541 adds trace flag 697 to disable HoBt schema-latch promotion to superlatches for workloads experiencing high CPU and latch contention, without disabling all superlatching. KB5650236 adds trace flag 683 to reduce CPU overhead when HoBt latches are promoted to superlatches but counter partitioning does not occur.

Change Data Capture and Replication Correctness

KB5620647 fixes CDC and transactional replication failing to process consecutive clustered-key updates to rows with large off-row LOB values. This is a data-pipeline correctness issue that could cause replication to stall or fall behind.

Integration Services

KB5657243 fixes invalid memory access when handling truncated OLE DB output parameters in the Execute SQL Task. KB5657883 fixes an integer overflow in the HTTP Connection Manager. KB5658115 fixes a memory access violation in the Raw File source component.

Why You Should Apply It

  • Elevation of privilege risk in backup operations (KB5497299): Malformed backup metadata could permit privilege escalation. Apply if you accept backups from any external or untrusted source.
  • Information disclosure in replication (KB5722308): The xp_decodequeuecmd decoder leaked data. Apply if you use queued updating subscriptions.
  • Elevation of privilege in merge replication (KB5731797): Subscriber validation expressions were not properly validated. Apply if you use merge replication.
  • Silent wrong-answer query results (KB5634469): Window aggregates with string predicates on case-insensitive collation columns could return incorrect data without any error.
  • Heap buffer overflow in Log Reader Agent (KB5723283): Could crash the Log Reader Agent, stalling transactional replication.
  • CDC/replication stall on LOB updates (KB5620647): Consecutive clustered-key updates to rows with large LOB values could halt replication pipelines.
  • Monitoring failures on AG secondaries (KB5216517): Errors 976/978 on read-intent secondaries break monitoring agents and alerting.
  • DHCP-based AG listener failing to come online (KB5478462): Directly impacts availability group failover reliability.
  • CLR out-of-bounds write (KB5529157): Denial of service risk when CLR integration is enabled.
  • SSIS XML Task XSLT scripting disabled by default (KB5654329): Breaking change for SSIS packages using XSLT. Review before deploying to SSIS environments.
  • Performance degradation on very large memory instances (KB5289354): Directly impacts recovery time and online operation throughput on high-memory servers.
  • Non-yielding scheduler dumps during lazy writer I/O (KB5660083): Can cause unexpected instance instability under heavy I/O.

Known Issues to Be Aware Of

SESSION_CONTEXT Incorrect Results in Parallel Plans

Queries using the built-in SESSION_CONTEXT function may return incorrect results or trigger access violation dump files when executed under a parallel query plan. The root cause is the way SESSION_CONTEXT interacts with parallel execution threads, particularly when a session is reset for reuse (for example, in connection pool scenarios).

What this means for you: If your application sets session context values using sys.sp_set_session_context and those values are read in queries that may go parallel, you are at risk of wrong results or instance dumps. This is not a theoretical risk - connection pooling is standard in most application stacks.

Should this stop you deploying? It depends on your usage. If you do not use SESSION_CONTEXT at all, this issue does not affect you. If you do use it, check whether the queries reading those values can go parallel, and consider using OPTION (MAXDOP 1) on those specific queries as a workaround until Microsoft releases a fix. The Microsoft KB article for SESSION_CONTEXT contains further guidance.

Does This Affect You? How to Check

Check your current build

SELECT
    SERVERPROPERTY('ProductVersion') AS Build,
    SERVERPROPERTY('ProductLevel')   AS Level,
    SERVERPROPERTY('ProductUpdateLevel') AS CULevel;

If Build is below 16.0.4325.4, you are not yet on CU28.

Are you using SESSION_CONTEXT? (Known issue)

SELECT
    OBJECT_SCHEMA_NAME(object_id) AS schema_name,
    OBJECT_NAME(object_id)        AS object_name
FROM sys.sql_modules
WHERE definition LIKE '%SESSION_CONTEXT%'
   OR definition LIKE '%sp_set_session_context%';

If this returns rows, review those objects before deploying.

Are you using merge or transactional replication?

SELECT
    name,
    is_published,
    is_subscribed,
    is_merge_published
FROM sys.databases
WHERE is_published = 1
   OR is_subscribed = 1
   OR is_merge_published = 1;

If any rows are returned, the large number of replication security fixes in this CU are directly relevant to you.

Are you using availability groups with DHCP listeners?

SELECT
    ag.name            AS ag_name,
    agl.dns_name       AS listener_name,
    aglip.ip_address,
    aglip.is_dhcp
FROM sys.availability_group_listeners agl
JOIN sys.availability_groups ag
    ON ag.group_id = agl.group_id
JOIN sys.availability_group_listener_ip_addresses aglip
    ON aglip.listener_id = agl.listener_id
WHERE aglip.is_dhcp = 1;

Rows here mean KB5478462 is relevant.

Are you running monitoring queries against AG secondaries?

If your monitoring tool queries sys.dm_exec_requests or sys.sysprocesses on a read-intent secondary, KB5216517 applies. Check your monitoring agent configuration.

Are you using CLR integration?

SELECT name, value_in_use
FROM sys.configurations
WHERE name = 'clr enabled';

A value of 1 means KB5529157 is relevant.

Are you using SSIS with the XML Task?

Search your SSIS package store or source control for packages containing an XML Task. After applying CU28, any XML Task that uses an XSLT script will fail unless you set the registry value EnableXsltScript to 1 under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\{version}\SSIS\XMLTask.

Are you on a very large memory server (approximately 20 TB or more)?

SELECT physical_memory_in_use_kb / 1024 / 1024 AS memory_in_use_gb
FROM sys.dm_os_process_memory;

If your server has 20 TB or more of physical memory, KB5289354 is directly relevant.

Are you using Machine Learning Services or Language Extensions?

SELECT name, value_in_use
FROM sys.configurations
WHERE name = 'external scripts enabled';

A value of 1 means KB5578970 applies.

How to Apply

  1. Test first. Deploy to a non-production environment that mirrors your production workload. Pay particular attention to SSIS packages using the XML Task (KB5654329) and any code using SESSION_CONTEXT.
  2. Back up before patching. Take a full backup of all user databases and the system databases, including msdb and master, immediately before applying the update.
  3. Plan for a restart. Applying a cumulative update requires a SQL Server service restart. Schedule this during a maintenance window and notify application teams.
  4. Apply in order. In an availability group, patch secondary replicas first, fail over, then patch the remaining node. This minimises downtime.
  5. Verify the build afterwards.
SELECT SERVERPROPERTY('ProductVersion') AS Build;
-- Expected: 16.0.4325.4
  1. Review the SSIS XML Task registry setting if you have SSIS packages using XSLT before promoting to production.

DBA Services Recommendation

For our managed clients, cumulative update assessment and deployment is handled as part of the regular patching cycle. We review each CU against your specific environment - checking which features are in use, identifying breaking changes like the SSIS XML Task default in this release, and scheduling maintenance windows to minimise disruption. If you are managing SQL Server patching yourself and would like a more structured approach, get in touch with the DBA Services team.