Overview
Microsoft released Cumulative Update 11 (CU11) for SQL Server 2025 on 12 November 2026. This update installs build 17.0.5065.9 (file version 2025.170.5065.9) and Analysis Services build 17.0.25.227. It contains 70 fixes issued since CU10.
To check your current build:
SELECT
SERVERPROPERTY('ProductVersion') AS Build,
SERVERPROPERTY('ProductLevel') AS Level,
SERVERPROPERTY('ProductUpdateLevel') AS CULevel;
If the result is anything earlier than 17.0.5065.9, this update applies to you.
The KB article is KB5129223. Registration is no longer required to download cumulative updates.
What's in This Update
With 70 fixes across the engine, SSIS, Analysis Services, and replication, CU11 is a substantial release. The fixes cluster into several clear themes.
Replication Security Hardening (the dominant theme)
Roughly a third of the fixes in this update address security and reliability issues in SQL Server replication. This is the most significant cluster in CU11 and warrants close attention from anyone running transactional, merge, or queued replication.
Specific issues resolved include:
- Information disclosure in xp_decodequeuecmd [5722312]: A vulnerability in the replication queue command decoder could expose data. This is an explicit security fix.
- Elevation of privilege in merge replication [5731757]: Subscriber validation expressions were not validated properly, creating a privilege escalation path. Fixed by improving validation logic.
- Heap buffer overflow in the Log Reader Agent [5723113]: When the Log Reader Agent escaped single quotation marks in column values, a heap buffer overflow could occur. This is a memory safety issue with potential for instability or exploitation.
- Row metadata authorisation in merge replication [5632843]: A security issue in authorisation checks for merge replication row metadata has been corrected.
- Identifier and input validation across multiple replication components [5614197, 5622622, 5653494, 5653522, 5653571, 5653594, 5653627, 5653639, 5653706, 5653719, 5653742, 5653760, 5653804, 5653831, 5654545, 5660542, 5660604, 5698417, 5720058, 5720085, 5722893, 5723141, 5723153]: A broad sweep of input validation, bounds checking, and authorisation improvements across transactional replication, merge replication, the Queue Reader Agent, and Azure Synapse Link for SQL. Many of these address security vulnerabilities by preventing injection or out-of-bounds operations through malformed inputs.
If you run any form of replication, CU11 is a priority update.
Storage Engine Memory Safety
Several fixes address how SQL Server reads and writes data pages, with a focus on preventing out-of-bounds memory access when records are malformed or corrupted:
- Corrupted row-compressed records [5624553]: Querying a corrupted row-compressed record could previously return unintended memory content. SQL Server now validates compressed-record metadata and returns a proper corruption error.
- Buffer initialisation during index operations [5624540, 5624575]: Buffers used during index record construction, B-tree page splits, inserts, updates, bulk loads, compression, and record reconstruction are now properly initialised, closing potential information leakage paths.
- Validation of page-compressed records, sparse columns, columnstore headers, and variable-length columns [5624585, 5624878, 5624927, 5624951, 5624994]: A suite of improvements to how SQL Server validates record metadata when attaching, restoring, reading, or rebuilding databases. Malformed metadata now produces an error rather than an out-of-bounds read or write.
- Transaction log block validation [5624101]: Improved validation during recovery and log scanning prevents out-of-bounds memory reads when scanning malformed log records.
High Availability and Disaster Recovery
- Monitoring queries failing on read-intent secondary replicas [5216512]: Queries against
sys.dm_exec_requestsorsys.sysprocesseson a read-intent-only AG secondary could intermittently return error 976 or 978. This is now fixed. - DHCP-based AG listener not coming online [5478461]: An availability group listener configured with a DHCP address could fail to come online. Fixed.
- TLS 1.3 support for certificate authentication on endpoints [5299582]: Systems where only TLS 1.3 is enabled can now use certificate authentication for endpoints. Trace flag 12389 disables this if needed.
- TLS support via Schannel for Service Broker endpoints [5588864]: Service Broker endpoints now support TLS through Schannel.
- hadr_log_block_decompression extended event [5509895]: The event was reporting identical values for compressed and uncompressed log block sizes, making it useless for diagnosing compression effectiveness. Fixed.
- New stored procedures for Azure SQL Managed Instance link mode [5673577]: Three new procedures added:
sys.sp_milink_reseed,sys.sp_milink_repair, andsys.sp_milink_checkfor managing databases in multi-database link mode.
SSIS Security and Stability
- XSLT scripting disabled by default in the XML Task [5556160]: XSLT scripting is now off by default in the SSIS XML Task, reducing the attack surface. To re-enable it, set
EnableXsltScriptto1in the registry underHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server{version}\SSIS\XMLTask. - Raw File source memory access violation [5583457]: Reading data through the Raw File source component could cause a memory access violation.
- HTTP Connection Manager integer overflow [5583467]: An integer overflow in the HTTP Connection Manager could cause invalid memory access.
- OLE DB output parameter truncation [5583481]: Handling truncated OLE DB output parameters in the Execute SQL Task could cause invalid memory access.
Query Processing and Correctness
- Incorrect results with string predicates over window aggregates [4708722]: A query applying a string predicate over a window aggregate could return wrong results when the partitioning column used a case-insensitive collation. This is a silent correctness bug.
- JSON path nesting depth access violation [5623595]: JSON functions processing a path with more than 128 nesting levels could crash SQL Server. It now returns an error instead.
- sys.dm_exec_describe_first_result_set in Service Broker [5404183]: Calling this DMF from a Service Broker-activated stored procedure caused an access violation and dropped the connection.
- Non-yielding scheduler on sys.dm_db_index_operational_stats [5640558]: Querying this DMV on databases with very large numbers of tables, indexes, or partitions could cause non-yielding scheduler errors and dump files.
Analysis Services
- MDX queries over ragged hierarchies with HideMemberIf [5587854]: Nested subselects over ragged hierarchies omitted hidden leaf members, producing missing rows or understated measure totals.
- ROLAP mode with proactive caching crash [5616144]: MDX queries could cause SSAS to terminate unexpectedly when ROLAP mode and proactive caching were both enabled.
Other Notable Fixes
- Database performance counters missing after DBCC CHECKDB [5493283]: Running DBCC CHECKDB caused performance counters for the database to disappear.
- Always Encrypted error with NULL/empty max-length columns [5383175]: Secure enclaves returned error 33550 when decrypting empty or NULL values in
varchar(max),nvarchar(max), orvarbinary(max)columns. - Online index operations with CDC enabled [5657265]: An error could occur when an online index operation ran concurrently with DML in a CDC-enabled database. A related fix [5625854] addresses assertion failures during change capture when online index or constraint changes run concurrently with data modifications.
- Trace flag 683 for superlatch CPU overhead [5650754]: A new trace flag to reduce CPU overhead when HoBt latches are promoted to superlatches without counter partitioning occurring.
- VSS Writer oversized user instance name [5661769]: An oversized user instance name passed to the SQL Server VSS Writer could disrupt backup and snapshot operations or cause an out-of-bounds memory write.
- ALTER SYMMETRIC KEY with EKM on Linux [5619731]: Using
ADD ENCRYPTION BY ASYMMETRIC KEYwith an EKM provider key failed on Linux. - Extended Events log files on Linux loop devices [5674437]: Creating XEL files failed on Linux loop devices with certain sector sizes.
- EXTERNAL MODEL permissions not cleaned up on drop [5624076]: Dropping an EXTERNAL MODEL left orphaned permissions.
- XA stored procedure output buffer overflow [5622544]: Undersized output buffers in XA stored procedures now return error 47204 rather than overflowing.
Why You Should Apply It
- Replication privilege escalation and information disclosure [5731757, 5722312]: Two explicit security vulnerabilities in replication components are fixed. If you run replication, these alone justify the update.
- Heap buffer overflow in Log Reader Agent [5723113]: A memory safety issue in a core replication component that could affect stability or be exploited.
- Silent incorrect query results [4708722]: Queries using window aggregates with case-insensitive collation partitioning columns could return wrong answers with no error raised.
- Storage engine memory safety suite [5624540, 5624553, 5624575, 5624585, 5624878, 5624927, 5624951, 5624994, 5624101]: Multiple fixes preventing out-of-bounds reads and writes when processing database records. These reduce exposure to data leakage from malformed pages.
- SSIS memory safety [5583457, 5583467, 5583481]: Three memory safety fixes in SSIS components used in many ETL pipelines.
- SSIS XSLT scripting disabled by default [5556160]: A security hardening change that reduces attack surface in SSIS XML Tasks.
- AG listener DHCP failure [5478461]: A straightforward availability fix for environments using DHCP-assigned listener addresses.
- Monitoring queries failing on AG secondaries [5216512]: Intermittent errors 976/978 on read-intent replicas affect observability and monitoring tooling.
- Non-yielding scheduler on index stats DMV [5640558]: Can cause dump files and instability on large databases.
- VSS Writer buffer overflow [5661769]: Affects backup and snapshot reliability on Windows.
- CDC + online index operations [5657265, 5625854]: Correctness and stability fixes for environments using CDC alongside online index maintenance.
Known Issues to Be Aware Of
SESSION_CONTEXT Incorrect Results in Parallel Plans
This is the one documented known issue in CU11.
What triggers it: Queries that call the built-in SESSION_CONTEXT() function and run under a parallel query plan. The problem is more likely to surface when sessions are reset for reuse, such as in connection pooling scenarios.
Symptom: The function returns incorrect values, or SQL Server generates an access violation dump file.
Should this stop you deploying? It depends on your workload. If your application uses SESSION_CONTEXT() for row-level security, tenant isolation, or passing session state, and those queries can go parallel, you should test carefully before deploying to production. You can use the MAXDOP 1 query hint on affected queries as a workaround while waiting for a fix, or set MAXDOP 1 at the database or server level temporarily if the feature is used broadly.
Microsoft has documented this in the Known Issues section of the SESSION_CONTEXT documentation.
Does This Affect You? How to Check
Are you already on CU11?
SELECT
SERVERPROPERTY('ProductVersion') AS Build,
SERVERPROPERTY('ProductLevel') AS Level,
SERVERPROPERTY('ProductUpdateLevel') AS CULevel;
-- Target build: 17.0.5065.9
Do you use replication? (covers the large replication fix cluster)
-- Check whether replication is configured on this instance
SELECT name, is_distributor, is_publisher, is_subscriber
FROM sys.servers
WHERE is_distributor = 1 OR is_publisher = 1 OR is_subscriber = 1;
-- Check for published databases
SELECT name FROM sys.databases WHERE is_published = 1 OR is_subscribed = 1 OR is_merge_published = 1;
Do you use SESSION_CONTEXT? (known issue)
-- Find stored procedures, functions, or views that call SESSION_CONTEXT
SELECT
OBJECT_SCHEMA_NAME(object_id) AS schema_name,
OBJECT_NAME(object_id) AS object_name,
type_desc
FROM sys.sql_modules
WHERE definition LIKE '%SESSION_CONTEXT%';
If this returns rows, review whether those objects are called in contexts where parallel plans are possible.
Do you use Always Encrypted with max-length columns? [5383175]
-- Find encrypted columns of max-length types
SELECT
t.name AS table_name,
c.name AS column_name,
tp.name AS data_type,
c.max_length
FROM sys.columns c
JOIN sys.tables t ON t.object_id = c.object_id
JOIN sys.types tp ON tp.user_type_id = c.user_type_id
WHERE c.encryption_type IS NOT NULL
AND c.max_length = -1; -- -1 means max
Do you use Service Broker? [5404183, 5588864]
SELECT name, is_broker_enabled FROM sys.databases WHERE is_broker_enabled = 1;
Do you have Availability Groups with DHCP listeners? [5478461]
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;
Do you query sys.dm_db_index_operational_stats on large databases? [5640558]
If you have databases with thousands of tables or heavily partitioned objects and you run monitoring queries or maintenance scripts that reference sys.dm_db_index_operational_stats, this fix is relevant. Check for non-yielding scheduler entries in your SQL Server error log:
EXEC xp_readerrorlog 0, 1, N'non-yielding';
Do you use CDC alongside online index operations? [5657265, 5625854]
SELECT name FROM sys.databases WHERE is_cdc_enabled = 1;
Do you use SSIS with the XML Task, Raw File source, or HTTP Connection Manager? [5556160, 5583457, 5583467]
Review your SSIS packages for these components. If you use the XML Task with XSLT transformations, note that XSLT scripting is now disabled by default after applying CU11 and you will need to set the registry key to restore that behaviour if required.
Do you use JSON functions with deeply nested paths? [5623595]
-- Find code referencing JSON functions
SELECT
OBJECT_SCHEMA_NAME(object_id) AS schema_name,
OBJECT_NAME(object_id) AS object_name
FROM sys.sql_modules
WHERE definition LIKE '%JSON_VALUE%'
OR definition LIKE '%JSON_QUERY%'
OR definition LIKE '%JSON_MODIFY%';
How to Apply
- Download CU11 from the Microsoft Download Centre. No registration is required.
- Back up all databases before applying, including system databases.
- Apply to a non-production environment first and run your regression tests, particularly if you use
SESSION_CONTEXT(), SSIS XML Tasks with XSLT, or replication. - Plan for a SQL Server service restart. CU installation requires a restart of the SQL Server service. Schedule this during a maintenance window.
- Apply to production once non-production validation is complete. In an AG environment, patch secondary replicas first, then fail over and patch the former primary.
- Verify the build after installation:
SELECT SERVERPROPERTY('ProductVersion') AS Build;
-- Expected: 17.0.5065.9
- Review the SSIS XSLT registry change [5556160] if you have SSIS packages using the XML Task, and update your runbooks accordingly.
DBA Services Recommendation
For our managed clients, cumulative update assessment and deployment is handled as part of our proactive patching service. We review each CU against your specific workload, flag relevant fixes, test in your non-production environment, and schedule production deployment within your agreed maintenance windows. If you are managing SQL Server patching yourself and would like a more structured approach, get in touch with the DBA Services team.
Get a SQL Server Health Check for $999
Find out what's really going on inside your SQL Server environment. We find critical misconfigurations in 97% of reviews, with a full 48-hour performance baseline and a prioritised action plan.
$999 ex-GST
normally $2,499
For your first SQL Server instance; additional instances are 2 hours each.