Repository navigation
Releases
9.2.1
Valkey 9.2.1 - Released Wed 25 November 2026
Upgrade urgency MODERATE: Program an upgrade of the server, but it's not urgent.
Bug Fixes
- Restore pre-9.2 TLS loading so the server no longer refuses to start or apply TLS configuration when a loaded certificate, such as an expired root left in a
tls-ca-cert-filebundle, is outside its validity period by @madolson (#5550) - Fix a server crash when
PHGETreads a large path hash while a forkless save is running by @madolson (#5112) - Fix a double mutex unlock, which is undefined behavior, when reducing the number of IO threads at runtime by @sarthakaggarwal97 (#5366)
- Fix dual-channel replication so a replica aborts and resyncs when the primary link breaks while it applies its local buffer, instead of reporting a successful sync on a dead link by @shohamazon (#5417)
- Fix IO threads resending already-written data to a client that is being closed, which could make a replica dropped for exceeding
client-output-buffer-limitfail with a protocol error by @dgershko (#5468) - Fix
COMMAND GETKEYS EXECreturning wrong keys and possibly crashing the server when given more than 256 conditions by @madolson (#4712) - Fix an uninitialized memory read in
ValkeyModule_CloseKeywhen a module changes the type of an open key throughValkeyModule_Callby @Baraa-Hasheesh (#5358) - Fix a use-after-free that could crash a cluster node receiving a cluster bus forgotten-node extension in which the sender names itself by @roshkhatri (#4675)
- Fix cluster nodes adopting stale replica claims that form a replication cycle in their cluster view, which could trigger an assertion crash in builds with debug assertions by @Baraa-Hasheesh (#5452)
- Fix a possible assertion crash with IO threads when more data arrives for a client that has a partially received command and is pending close by @aradz44 (#3245)
Full Changelog: 9.2.0...9.2.1
9.2.0
Valkey 9.2.0 GA - Released Wed 18 November 2026
Upgrade urgency LOW: This is the first stable release of Valkey 9.2.
Behavior Changes
ZRANGEBYSCORE,ZREVRANGEBYSCORE,ZCOUNT, andZRANGESTOREnow reject a bare(or an empty string as a score bound instead of silently treating it as 0 by @AlisinaDevelo (#4054)- Path Hash deletion commands now remove the key when the last path is deleted, following the Hash key lifecycle and emitting a generic del event by @yangbodong22011 (#5068)
- Active expiration of keys and hash fields now increments the dirty counter, so save points (and thus BGSAVE) may trigger more often by @enjoy-binbin (#3118)
New Features and Enhanced Behavior
- Add new
DELEXcommand to conditionally delete a string key when its value matches (IFEQ) or differs from (IFNE) a given value by @lightsigma96 (#4607) - Add Zstd as a streaming compression codec for RDB persistence and replication, offering better compression ratios than LZ4 by @sarthakaggarwal97 (#3798)
- Support streaming-compressed RDB preambles in AOF bases, so compressed full-sync RDB files can be reused directly as AOF bases by @sarthakaggarwal97 (#4754)
ACL GENPASSand the hash function seed draw randomness from the configured OpenSSL 3 provider when built with TLS, supporting deployments that require a validated crypto module by @MarkAtwood (#4339)- Support forkless full synchronization to replicas, serving disk and diskless full syncs from a background-thread snapshot without forking by @nitaicaro (#4797)
- Add ACL DIGEST command that returns a fingerprint of the ACL rules currently in effect, useful to verify what ACL LOAD applied by @melancholictheory (#4446)
- Add forkless RDB snapshots, opt-in via the new
forkless-infrastructure-enabledandbgsave-default-methodconfigs, with new INFO persistence fields reporting the save method and progress by @JimB123 (#4460) - Add the
XACKDELandXDELEXstream commands withKEEPREF,DELREFandACKEDmodes to acknowledge and delete messages once consumer groups no longer need them by @nickiaq (#4629) - Support a secondary server certificate via
tls-alt-cert-file,tls-alt-key-fileandtls-alt-key-file-pass, e.g. a post-quantum certificate alongside RSA, with matching INFO TLS fields by @pkhartsk (#3717) - Add ACL roles: named, reusable sets of ACL selectors managed with
ACL SETROLE/DELROLE/GETROLE/ROLESand assigned to users withrole:<name>, in commands, the ACL file and valkey.conf by @yang-z-o (#3967) - Add a
maxmemory-scriptsconfig to limit memory used by cachedEVALscripts, and markSCRIPT LOADas DENYOOM so it respects the global maxmemory limit by @enjoy-binbin (#866) - Add Path Hash, a new radix-tree-backed data type with
PH*commands for exact lookup, longest-prefix matching, and prefix traversal over binary-safe paths by @yangbodong22011 (#4506) - Support whole-stream LZ4 compression of RDB files via the new
rdbcompression lz4option; the default per-string LZF behavior is unchanged by @sarthakaggarwal97 (#3531) - Add server-side hot key detection with new
HOTKEYS GET/RESETcommands, enabled by settinghotkeys-top-kby @alon-arenberg (#3708) - Add optional replication throttling (
repl-throttling-enabled) that slows client writes when a replica falls behind, avoiding disconnects and full syncs by @harrylin98 (#4356) - Prioritize system-critical events (cluster heartbeats, replication, slot migration) over heavy client traffic, tunable via the new
priority-preemptive-poll-interval-usconfig by @satheeshaGowda (#4076) - Reserve connection slots for administrative clients: connections from the CIDR ranges listed in the new
priority-subnetsconfig are tagged as prioritized,maxclients-reservedcaps normal clients atmaxclientsminus that many slots, andINFO clientsreportsconnected_priority_clientsby @satheeshaGowda (#4005) - Add
INCREXcommand to atomically increment a key by an integer or float while setting its expiration, withNX/XXconditions by @GavinDmello (#3253)
Performance and Efficiency Improvements
- Fix long stalls in
SRANDMEMBER,ZRANDMEMBER,HRANDFIELDandSPOPon a small key whose hashtable is still shrinking from a much larger size by @madolson (#5170) - Stop treating
LINDEX,LRANGEandLPOSas format-changing commands during forkless background iteration, so list reads no longer get write-style handling by @JimB123 (#5283) - Keep the forkless save queue growing under write load by not counting keys expedited by writes as leftover work by @taham0 (#5298)
- Make BCAST client tracking cost scale with the prefixes a key matches instead of all registered prefixes, so many unmatched prefixes no longer slow writes and the event loop by @madolson (#5183)
- Reclaim memory from sorted sets that shrink or have frequent score updates by compacting sparse B+tree leaves on delete by @rainsupreme (#4526)
- Speed up sorted set score updates in listpack encoding by replacing the score in place when the member keeps its position by @charsyam (#3491)
- Fix quadratic slowdown in
HRANDFIELDandSRANDMEMBERwith counts on collections whose elements differ only in letter case by @madolson (#5167) - Bound the time spent per cycle evicting keys from the client tracking table, avoiding long stalls after lowering
tracking-table-max-keysby @tanmayBeginsJourney (#4775) - Speed up the
INFOcommand by around 5% by pre-allocating the output buffer by @charsyam (#3413) - Reclaim client-side caching tracking table entries left by disconnected clients, fixing a memory leak under read-heavy workloads, and include the tracking table in active defrag by @rayjinghaolei (#4190)
- Speed up
ZPOPMINandZPOPMAXon B+tree encoded sorted sets by detaching edge items without a key search or copy by @charsyam (#4852) - Counting a hash's fields with expirations is now O(1) for hashtable-encoded hashes by tracking the volatile set size on each mutation by @frostzt (#4829)
- Speed up AOF command propagation by serializing commands directly into the AOF buffer, removing an allocation and copy per command by @charsyam (#3496)
- Cache the earliest event-loop timer to avoid an O(N) scan per iteration, reducing overhead with many timers such as RDMA connections by @royenheart (#4354)
- Speed up HGETALL, HKEYS and HVALS with exact-length reply headers, fused bulk replies, and entry prefetching by @jjuleslasarte (#4417)
- Eliminate false sharing in per-thread memory usage counters, improving throughput with I/O threads on SMT x86 systems by @omerrubi-amzn (#4107)
- Read-only list iteration (e.g. LRANGE, LPOS) no longer decompresses and recompresses quicklist nodes in place, cutting CPU cost on compressed lists by @murphyjacob4 (#4782)
- Speed up ZSCAN on btree-encoded sorted sets by avoiding temporary member and score copies and prefetching items by @charsyam (#4856)
- Reduce cache-line false sharing on IO thread activity and job counters for better multi-threaded IO performance by @omerrubi-amzn (#4976)
- PHDELPREFIX now bounds its temporary path copies to 64KiB per batch, avoiding large untracked memory spikes on long shared prefixes by @madolson (#5179)
- Speed up radix tree lookups and inserts by using SIMD-optimized memchr() for child-edge search by @charsyam (#3472)
- Improve replica processing speed by parsing multiple commands from the replication stream at once by @enjoy-binbin (#3597)
- Reduce memory usage by sharing pubsub pattern and WATCH key objects across clients subscribing to or watching the same name by @enjoy-binbin (#4072)
- Large sorted sets are now backed by a B+ tree instead of a skiplist; OBJECT ENCODING reports
btreeinstead ofskiplistby @ranshid (#4359) - Save the cluster config file from a background thread when
cluster-config-save-behavioris best-effort, avoiding main-thread latency spikes from slow disk I/O by @enjoy-binbin (#2555) - Speed up
HMGET,SMISMEMBERandZMSCOREon large hashtable-encoded keys with batched lookups that overlap memory accesses by @chzhoo (#4017) - Extend memory prefetching to hash, set and sorted set member lookups when io-threads are enabled, improving performance for 30 field/member commands on large keys by @roshkhatri (#3940)
MEMORY PURGEnow also releases free pages from the glibc main arena back to the OS, reclaiming memory held by libc-internal allocations by @webbsssss (#3640)- Speed up command propagation to replicas by batching each command's RESP frame into a single replication buffer write by @hpatro (#4044)
- Reduce lseek system calls during disk-based replication by seeking only when a write blocks or is partial by @enjoy-binbin (#4053)
- Reduce event-loop overhead by refreshing cached daylight-saving info once per second instead of on every wakeup by @hpatro (#4086)
- Speed up keyspace event notifications by skipping work when there are no subscribers and avoiding unnecessary allocations by @enjoy-binbin (#4285)
- Speed up exact
XTRIM MAXLEN = 0by about 2.5x by clearing the whole stream in one step instead of removing entries individually by @sarthakaggarwal97 (#4161) - Cluster bus reads, writes, and inbound TLS accepts can now run on the shared I/O thread pool, with new
CLUSTER INFOoffload statistics by @hpatro (#3438) - Small hashes with field expiration now use the memory-efficient listpack encoding instead of always converting to a hashtable by @frostzt (#3212)
- Reduce per-command overhead by skipping post-command bookkeeping when no propagation, module, or invalidation work is pending by @ahmetalicc (#4257)
Bug Fixes
- Fix
PFMERGEwith no source keys bypassing ACL key permissions and failing inCOMMAND GETKEYS, and a crash in module commands whose keynum key spec starts past the last argument by @madolson (#5087) - Fix
SCRIPT KILLandFUNCTION KILLnot stopping Lua scripts that loop inside nested coroutines, and script timeouts...
9.1.4
Valkey 9.1.4 - Released Wed 18 November 2026
Upgrade urgency SECURITY: This release includes security fixes we recommend you apply as soon as possible.
Security Fixes
- CVE-2026-130822: Fix a use-after-free crash in client eviction when maxmemory-clients is enabled by @nadav-levanoni (#5435)
Bug Fixes
- Fix a crash when a key with a name of 2 GiB or more is sampled for eviction, and incorrect comparison of strings that large by @madolson (#5133)
- Correct command metadata to describe the
ZINCRBYincrement andZINTER/ZINTERSTORE/ZUNION/ZUNIONSTOREweights as doubles instead of integers by @sarthakaggarwal97 (#5210) - Propagate
PFADDelements applied before a corrupted-HLL INVALIDOBJ error so replicas and the AOF stay consistent with the primary by @madolson (#5128) - Fix a server crash in
SCRIPT DEBUG SYNCmode when a debugger command arrives in more than one read by @madolson (#5127) - Correct command metadata so the
numfieldscount argument of hash field commands is no longer associated with a key specification by @sarthakaggarwal97 (#5211) - Correct expiry command metadata to show that
XXcan be combined withGTorLT, rather than all four conditions being mutually exclusive by @sarthakaggarwal97 (#5213) - Fix a server panic when a Lua script returns or raises an error table whose metatable has an
__indexmetamethod that raises an error by @madolson (#5118) - Fix a server crash when a module never sets a postponed reply length; the leftover placeholder is now filled with an empty array by @madolson (#5159)
- Fix a crash when processing a heartbeat from a cluster node whose role is locally unknown, such as after loading an incomplete nodes.conf by @enjoy-binbin (#4091)
- Mark the
RESTOREandRESTORE-ASKINGIDLETIMEandFREQoptions as mutually exclusive in command metadata by @sarthakaggarwal97 (#5212) - Fix a crash in a cluster replica whose primary was removed from the nodes table when another primary claims an unassigned slot by @madolson (#5184)
- Fix
SCRIPT KILLandFUNCTION KILLnot stopping Lua scripts that loop inside nested coroutines, and script timeouts not being detected when work is spread across coroutines by @madolson (#5108) - Fix an out-of-bounds write in
PFADDandPFMERGEon a corrupted sparse HyperLogLog ending in a truncated XZERO opcode by rejecting it as invalid by @madolson (#5124) - Fix a server abort in
PFADDandPFMERGEon short sparse HyperLogLogs whenhll-sparse-max-bytesis set to 31 or less by @madolson (#5138) - Fix a server crash in
SORTandSORT_ROwithBYorGETpatterns when an element is 2 GiB or larger by @madolson (#5146) - Fix
ValkeyModule_CallocandValkeyModule_TryCallocreturning an undersized buffer whennmemb * sizeoverflows by @madolson (#5155) - Fix
ValkeyModule_CallReplyAttributeElementalways returning an error on RESP3 attribute replies by @madolson (#5157) - Fix
EXECsucceeding after a key that was already expired atWATCHtime is overwritten, which can happen on replicas by @madolson (#5169) - Fix a memory leak when
server.register_functionnamed arguments are repeated in a different letter case by @madolson (#5120) - Fix quadratic slowdown in
HRANDFIELDandSRANDMEMBERwith counts on collections whose elements differ only in letter case by @madolson (#5167) - Fix
PFMERGEwith no source keys bypassing ACL key permissions and failing inCOMMAND GETKEYS, and a crash in module commands whose keynum key spec starts past the last argument by @madolson (#5087) - Fix
HSETEXandMSETEXwith a repeated EX, PX or EXAT option being rejected by replicas and lost on AOF reload by @madolson (#5088) - Fix a memory leak when a script or module command is refused by ACL while the ACL log is disabled with
acllog-max-len 0by @madolson (#5162) - Fix a crash on the first
FUNCTION LOADafter startup when the shebang engine name contains a NUL byte by @madolson (#5115) - Fix an active defrag crash when a large set, sorted set or list is replaced by a hashtable-encoded hash while it is being defragmented by @madolson (#5164)
- Fix
FCALLerrors or a crash whenFUNCTION FLUSH SYNCruns before the lazy free triggered byFUNCTION RESTOREof more than 64 functions has completed by @madolson (#5105) - Fix long stalls in
SRANDMEMBER,ZRANDMEMBER,HRANDFIELDandSPOPon a small key whose hashtable is still shrinking from a much larger size by @madolson (#5170) - Fix
notify-keyspace-eventsdropping then(new key) flag fromCONFIG GETandCONFIG REWRITEwhenAis also set by @pirate329 (#5199) - Fix a crash when the Lua debugger is started on an empty or newline-only script by @madolson (#5117)
- Fix a cluster node failing to restart with an assertion after a gossip entry carrying the MYSELF flag adds a second myself node to nodes.conf by @madolson (#5134)
- Fix
ACL LOADnot disconnecting default user clients subscribed to channels the reloaded rules no longer allow by @madolson (#5085) - Fix an active defrag crash when a database is replaced by an async
FLUSHDB/FLUSHALL,SWAPDBor a replica full sync while a large key is being defragmented by @taham0 (#4968) - Allow modules to block RESP3 clients that are subscribed to Pub/Sub channels instead of failing
ValkeyModule_BlockClientwith ENOTSUP by @quanyeyang (#4863) - Bound the time spent per cycle evicting keys from the client tracking table, avoiding long stalls after lowering
tracking-table-max-keysby @tanmayBeginsJourney (#4775) - Reclaim client-side caching tracking table entries left by disconnected clients, fixing a memory leak under read-heavy workloads, and include the tracking table in active defrag by @rayjinghaolei (#4190)
- Fix a memory leak when
GEOSEARCHorGEOSEARCHSTOREis given repeatedBYPOLYGONoptions by @charsyam (#4995) - Fix a memory leak in
ValkeyModule_GetCommandKeysWithFlagswhen introspecting commands with large key lists by @christopherlim98 (#5046) MEMORY USAGEnow counts hash fields that have expired but not yet been reaped, fixing under-reported sizes by @sushilpaneru1 (#5092)- Fix a crash in
ValkeyModule_Callwhen script-mode validation fails and error replies were not requested by @dvkashapov (#5091) - In cluster mode, one cross-slot command in a script no longer makes every later script and function call fail until restart by @madolson (#5191)
- Fix a TLS busy loop that consumed 100% CPU when a connection's read or write handler was removed while OpenSSL was waiting for the opposite event by @yairgott (#3510)
- Fix a crash caused by a NULL pointer dereference when all timer events in an event loop are pending deletion by @royenheart (#4351)
- Fix a node staying stuck in PFAIL when its PING is lost while the peer's own traffic keeps the cluster link alive by @enjoy-binbin (#4171)
CLUSTER SYNCSLOTS FINISHnow rejects clients outside the slot migration stream, preventing misuse of the import state machine by @enjoy-binbin (#4330)- Reject a repeated
CLUSTER SYNCSLOTS ESTABLISHon the same connection, which could lead to a use-after-free crash on disconnect by @Pyolar (#4670) - Fix
SORTkey extraction so aSTOREdestination named like an option can no longer bypass ACL checks and write to an unauthorized key by @madolson (#4665) - Fix
GEOSEARCHreturning empty results for exact zero-distance matches on builds where floating-point contraction breaks the latitude distance calculation by @Baraa-Hasheesh (#4777) - Fix a memory leak when deleting or replacing Lua functions with long names or descriptions by @madolson (#5109)
- Fix a crash when a replication role change command such as
REPLICAOForCLUSTER REPLICATEarrives over a replication link by @madolson (#5187) - Fix a crash on the importing primary when an atomic slot migration fails while its writes are paused by @madolson (#5182)
- Fix
XADDrejected for oversized elements leaving an empty stream on the primary that is not propagated to replicas or the AOF by @madolson (#5178) - Redact credentials of rejected
HELLO,AUTHandMIGRATEcommands so passwords no longer leak to MONITOR and the commandlog by @madolson (#5180) - Prevent a replica crash when the primary wrongly replies +CONTINUE to a full resync request; the replica now drops the link and retries by @madolson (#5126)
- FUNCTION LOAD no longer aborts the server when a library calls
server.log()at its top level, including when loading from RDB or AOF by @madolson (#5114) - Fix an integer overflow in the list node merge size check that could crash the server on
LSETafter loading a list with a near-4GiB node viaRESTOREor full sync by @madolson (#5163) - Fix a stack buffer overflow when replying with hundreds of empty strings (e.g. MGET) while reply copy avoidance is active by @madolson (#5151)
- Ignore invalid ping extension values from cluster peers that would corrupt nodes.conf and prevent the node from restarting by @madolson (#5137)
- Bound the bytes the cluster bus reads per event so a peer with a constant read backlog cannot starve clients, cron and heartbeats by @madolson (#5161)
- Correct
SENTINEL SIMULATE-FAILUREmetadata soCOMMAND DOCSshows the required mode argument and its tokens by @sarthakaggarwal97 (#5208) - Fail
CONFIG REWRITEwhen the old config file reads short instead of writing uninitialized memory into the new config file by @madolson (#5158) - Mark the absolute timestamp arguments of
HEXPIREATandHPEXPIREATasunix-timeinCOMMAND DOCS, matchingEXPIREATandPEXPIREATby @rainsupreme (#5245) - Clear the script debugger input buffer after a "max client buffer reached" error so later debugger commands in the same session do not keep failing by @madolson (#5129)
- Fix a Sentinel crash when a monitored replica's
INFOreply contains nomaster_hostby @smkher (#4929) - Fix Lua
server.error_reply()returning stale heap memory as the...
9.0.8
Valkey 9.0.8 - Released Wed 18 November 2026
Upgrade urgency SECURITY: This release includes security fixes we recommend you apply as soon as possible.
Security Fixes
- CVE-2026-130822: Fix a use-after-free crash in client eviction when maxmemory-clients is enabled by @nadav-levanoni (#5435)
Bug Fixes
- Fix a server crash when a key with a name of 2 GiB or more is sampled for eviction, and hangs, crashes, or duplicate set members when comparing strings of that size by @madolson (#5133)
- Correct command metadata to describe the
ZINCRBYincrement andZINTER/ZINTERSTORE/ZUNION/ZUNIONSTOREweights as doubles instead of integers by @sarthakaggarwal97 (#5210) - Propagate
PFADDelements applied before a corrupted-HLL INVALIDOBJ error so replicas and the AOF stay consistent with the primary by @madolson (#5128) - Correct expiry command metadata to show that
XXcan be combined withGTorLT, rather than all four conditions being mutually exclusive by @sarthakaggarwal97 (#5213) - Fix a server panic when a Lua script returns or raises an error table whose metatable has an
__indexmetamethod that raises an error by @madolson (#5118) - Fix a server crash when a module never sets a postponed reply length; the leftover placeholder is now filled with an empty array by @madolson (#5159)
- Mark the
RESTOREandRESTORE-ASKINGIDLETIMEandFREQoptions as mutually exclusive in command metadata by @sarthakaggarwal97 (#5212) - Fix a crash when processing a heartbeat from a cluster node whose role is locally unknown, such as after loading an incomplete nodes.conf by @enjoy-binbin (#4091)
- Fix a memory leak when
server.register_functionnamed arguments are repeated in a different letter case by @madolson (#5120) - Fix quadratic slowdown in
HRANDFIELDandSRANDMEMBERwith counts on collections whose elements differ only in letter case by @madolson (#5167) - Fix a crash in a cluster replica whose primary was removed from the nodes table when another primary claims an unassigned slot by @madolson (#5184)
- Fix
SCRIPT KILLandFUNCTION KILLnot stopping Lua scripts that loop inside nested coroutines, and script timeouts not being detected when work is spread across coroutines by @madolson (#5108) - Fix an out-of-bounds write in
PFADDandPFMERGEon a corrupted sparse HyperLogLog ending in a truncated XZERO opcode by rejecting it as invalid by @madolson (#5124) - Fix a server abort in
PFADDandPFMERGEon short sparse HyperLogLogs whenhll-sparse-max-bytesis set to 31 or less by @madolson (#5138) - Fix a server crash in
SORTandSORT_ROwithBYorGETpatterns when an element is 2 GiB or larger by @madolson (#5146) - Fix
ValkeyModule_CallocandValkeyModule_TryCallocreturning an undersized buffer whennmemb * sizeoverflows by @madolson (#5155) - Fix
ValkeyModule_CallReplyAttributeElementalways returning an error on RESP3 attribute replies by @madolson (#5157) - Fix
EXECsucceeding after a key that was already expired atWATCHtime is overwritten, which can happen on replicas by @madolson (#5169) - Correct command metadata so the
numfieldscount argument of hash field commands is no longer associated with a key specification by @sarthakaggarwal97 (#5211) - Fix
PFMERGEwith no source keys bypassing ACL key permissions and failing inCOMMAND GETKEYS, and a crash in module commands whose keynum key spec starts past the last argument by @madolson (#5087) - Fix
HSETEXwith a repeated EX, PX or EXAT option being rejected by replicas and lost on AOF reload by @madolson (#5088) - Fix a memory leak when a module command is refused by ACL while the ACL log is disabled with
acllog-max-len 0by @madolson (#5162) - Fix a crash on the first
FUNCTION LOADafter startup when the shebang engine name contains a NUL byte by @madolson (#5115) - Fix an active defrag crash when a large set, sorted set or list is replaced by a hashtable-encoded hash while it is being defragmented by @madolson (#5164)
- Fix
FCALLerrors or a crash whenFUNCTION FLUSH SYNCruns before the lazy free triggered byFUNCTION RESTOREof more than 64 functions has completed by @madolson (#5105) - Fix long stalls in
SRANDMEMBER,ZRANDMEMBER,HRANDFIELDandSPOPon a small key whose hashtable is still shrinking from a much larger size by @madolson (#5170) - Fix
notify-keyspace-eventsdropping then(new key) flag fromCONFIG GETandCONFIG REWRITEwhenAis also set by @pirate329 (#5199) - Fix a cluster node failing to restart with an assertion after a gossip entry carrying the MYSELF flag adds a second myself node to nodes.conf by @madolson (#5134)
- Fix
ACL LOADnot disconnecting default user clients subscribed to channels the reloaded rules no longer allow by @madolson (#5085) - Fix active defrag crash when a database's keyspace is replaced (async
FLUSHDB/FLUSHALL,SWAPDB, replica full sync) while a large key is being defragmented by @taham0 (#4968) - Allow modules to block RESP3 clients that are subscribed to Pub/Sub channels instead of failing
ValkeyModule_BlockClientwith ENOTSUP by @quanyeyang (#4863) - Bound the time spent per cycle evicting keys from the client tracking table, avoiding long stalls after lowering
tracking-table-max-keysby @tanmayBeginsJourney (#4775) - Fix a memory leak when
GEOSEARCHorGEOSEARCHSTOREis given repeatedBYPOLYGONoptions by @charsyam (#4995) MEMORY USAGEnow counts hash fields that have expired but not yet been reaped, fixing under-reported sizes by @sushilpaneru1 (#5092)- Fix a memory leak in
ValkeyModule_GetCommandKeysWithFlagswhen introspecting commands with large key lists by @christopherlim98 (#5046) - In cluster mode, one cross-slot command in a script no longer makes every later script and function call fail until restart by @madolson (#5191)
- Correct
SENTINEL SIMULATE-FAILUREmetadata soCOMMAND DOCSshows the required mode argument and its tokens by @sarthakaggarwal97 (#5208) - Fix a TLS busy loop that consumed 100% CPU when a connection's read or write handler was removed while OpenSSL was waiting for the opposite event by @yairgott (#3510)
- Fix a crash caused by a NULL pointer dereference when all timer events in an event loop are pending deletion by @royenheart (#4351)
- Fix a node staying stuck in PFAIL when its PING is lost while the peer's own traffic keeps the cluster link alive by @enjoy-binbin (#4171)
CLUSTER SYNCSLOTS FINISHnow rejects clients outside the slot migration stream, preventing misuse of the import state machine by @enjoy-binbin (#4330)- Reject a repeated
CLUSTER SYNCSLOTS ESTABLISHon the same connection, which could lead to a use-after-free crash on disconnect by @Pyolar (#4670) - Fix
SORTkey extraction so aSTOREdestination named like an option can no longer bypass ACL checks and write to an unauthorized key by @madolson (#4665) - Fix
GEOSEARCHreturning empty results for exact zero-distance matches on builds where floating-point contraction breaks the latitude distance calculation by @Baraa-Hasheesh (#4777) - Fix a crash when a replication role change command such as
REPLICAOForCLUSTER REPLICATEarrives over a replication link by @madolson (#5187) - Fix a crash on the importing primary when an atomic slot migration fails while its writes are paused by @madolson (#5182)
- Fix
XADDwith elements over the size limit leaving an empty stream on the primary that is never propagated to replicas or the AOF by @madolson (#5178) - Redact credentials of rejected
HELLO,AUTHandMIGRATEcommands so passwords no longer leak to MONITOR and the commandlog by @madolson (#5180) - Prevent a replica crash when the primary wrongly replies +CONTINUE to a full resync request; the replica now drops the link and retries by @madolson (#5126)
- Fix an integer overflow on 64-bit builds that crashes the server when merging list nodes whose combined size exceeds 4GiB, reachable through a
RESTOREor full sync payload followed byLSETby @madolson (#5163) - Fix a stack buffer overflow when replying with hundreds of empty strings (e.g. MGET) while reply copy avoidance is active by @madolson (#5151)
- Ignore invalid ping extension values from cluster peers that would corrupt nodes.conf and prevent the node from restarting by @madolson (#5137)
- Reclaim client-side caching tracking table entries left by disconnected clients, fixing a memory leak under read-heavy workloads, and include the tracking table in active defrag by @rayjinghaolei (#4190)
- Bound the bytes the cluster bus reads per event so a peer with a constant read backlog cannot starve clients, cron and heartbeats by @madolson (#5161)
- Mark the absolute timestamp arguments of
HEXPIREATandHPEXPIREATasunix-timeinCOMMAND DOCS, matchingEXPIREATandPEXPIREATby @rainsupreme (#5245) - Correct
ZADDandLCSmetadata soCOMMAND DOCSand valkey-cli hints no longer presentNXwithGT/LTorLENwithIDXas valid combinations by @rainsupreme (#5244) - Fail
CONFIG REWRITEwhen the old config file reads short instead of writing uninitialized memory into the new config file by @madolson (#5158) - Restore acceptance of hexadecimal floats (such as
0x10) in sorted set score ranges andSORTwhen built withUSE_FAST_FLOAT=yesby @quanyeyang (#4875) - Fix a Sentinel crash when a monitored replica's
INFOreply contains nomaster_hostby @smkher (#4929) - Fix a use-after-free in streams when
XADDcreates a new node, which could leave a dangling pointer hit by later reads such asXRANGEby @Baraa-Hasheesh (#4711) - Reject inbound cluster bus packets larger than 16MB, except Pub/Sub and module messages, so a peer cannot make a node buffer up to 4GB from a single header by @madolson (#5065)
- Fix
XINFO GROUPSandXINFO STREAM ... FULLreporting too-high consumer group lag afterXTRIMor a trimmingXADDremoves unread ...
8.1.12
Valkey 8.1.12 - Released Wed 18 November 2026
Upgrade urgency SECURITY: This release includes security fixes we recommend you apply as soon as possible.
Security Fixes
- CVE-2026-130822: Fix a use-after-free crash in client eviction when maxmemory-clients is enabled by @nadav-levanoni (#5435)
Bug Fixes
- Fix a server crash when a key name of 2 GiB or more is sampled for eviction, and incorrect comparison of strings of 2 GiB or more by @madolson (#5133)
- Correct command metadata to describe the
ZINCRBYincrement andZINTER/ZINTERSTORE/ZUNION/ZUNIONSTOREweights as doubles instead of integers by @sarthakaggarwal97 (#5210) - Propagate
PFADDelements applied before a corrupted-HLL INVALIDOBJ error so replicas and the AOF stay consistent with the primary by @madolson (#5128) - Fix a server panic when a Lua script returns or raises an error table whose metatable has an
__indexmetamethod that raises an error by @madolson (#5118) - Mark the
RESTOREandRESTORE-ASKINGIDLETIMEandFREQoptions as mutually exclusive in command metadata by @sarthakaggarwal97 (#5212) - Fix a memory leak when
server.register_functionnamed arguments are repeated in a different letter case by @madolson (#5120) - Fix a server crash when a module never sets a postponed reply length; the leftover placeholder is now filled with an empty array by @madolson (#5159)
- Fix quadratic slowdown in
HRANDFIELDandSRANDMEMBERwith counts on collections whose elements differ only in letter case by @madolson (#5167) - Fix a crash in a cluster replica whose primary was removed from the nodes table when another primary claims an unassigned slot by @madolson (#5184)
- Fix
SCRIPT KILLandFUNCTION KILLnot stopping Lua scripts that loop inside nested coroutines, and script timeouts not being detected when work is spread across coroutines by @madolson (#5108) - Fix an out-of-bounds write in
PFADDandPFMERGEon a corrupted sparse HyperLogLog ending in a truncated XZERO opcode by rejecting it as invalid by @madolson (#5124) - Fix a server abort in
PFADDandPFMERGEon short sparse HyperLogLogs whenhll-sparse-max-bytesis set to 31 or less by @madolson (#5138) - Fix a server crash in
SORTandSORT_ROwithBYorGETpatterns when an element is 2 GiB or larger by @madolson (#5146) - Fix
ValkeyModule_CallocandValkeyModule_TryCallocreturning an undersized buffer whennmemb * sizeoverflows by @madolson (#5155) - Fix
ValkeyModule_CallReplyAttributeElementalways returning an error on RESP3 attribute replies by @madolson (#5157) - Fix
EXECsucceeding after a key that was already expired atWATCHtime is overwritten, which can happen on replicas by @madolson (#5169) - Correct expiry command metadata to show that
XXcan be combined withGTorLT, rather than all four conditions being mutually exclusive by @sarthakaggarwal97 (#5213) - Fix
PFMERGEwith no source keys bypassing ACL key permissions and failing inCOMMAND GETKEYS, and a crash in module commands whose keynum key spec starts past the last argument by @madolson (#5087) - Fix a memory leak when a script or module command is refused by ACL while the ACL log is disabled with
acllog-max-len 0by @madolson (#5162) - Fix a crash on the first
FUNCTION LOADafter startup when the shebang engine name contains a NUL byte by @madolson (#5115) - Fix
FCALLerrors or a crash whenFUNCTION FLUSH SYNCruns before the lazy free triggered byFUNCTION RESTOREof more than 64 functions has completed by @madolson (#5105) - Fix
notify-keyspace-eventsdropping then(new key) flag fromCONFIG GETandCONFIG REWRITEwhenAis also set by @pirate329 (#5199) - Fix a cluster node failing to restart with an assertion after a gossip entry carrying the MYSELF flag adds a second myself node to nodes.conf by @madolson (#5134)
- Fix
ACL LOADnot disconnecting default user clients subscribed to channels the reloaded rules no longer allow by @madolson (#5085) - Fix long stalls in
ZRANDMEMBER,SRANDMEMBER,SPOPandHRANDFIELDon a small key left over from a much larger one while its hashtable shrinks by @madolson (#5170) - Fix a crash in active defrag when a database's keyspace is replaced mid-scan by
FLUSHDB ASYNC,FLUSHALL ASYNC,SWAPDBor a replica's flush before full sync by @taham0 (#4968) - Allow modules to block RESP3 clients that are subscribed to Pub/Sub channels instead of failing
ValkeyModule_BlockClientwith ENOTSUP by @quanyeyang (#4863) - Bound the time spent per cycle evicting keys from the client tracking table, avoiding long stalls after lowering
tracking-table-max-keysby @tanmayBeginsJourney (#4775) - Fix a memory leak in
ValkeyModule_GetCommandKeysWithFlagswhen introspecting commands with large key lists by @christopherlim98 (#5046) - Correct
SENTINEL SIMULATE-FAILUREmetadata soCOMMAND DOCSshows the required mode argument and its tokens by @sarthakaggarwal97 (#5208) - Fix a TLS busy loop that consumed 100% CPU when a connection's read or write handler was removed while OpenSSL was waiting for the opposite event by @yairgott (#3510)
- Fix a crash caused by a NULL pointer dereference when all timer events in an event loop are pending deletion by @royenheart (#4351)
- Fix a node staying stuck in PFAIL when its PING is lost while the peer's own traffic keeps the cluster link alive by @enjoy-binbin (#4171)
- Fix
SORTkey extraction so aSTOREdestination named like an option can no longer bypass ACL checks and write to an unauthorized key by @madolson (#4665) - Fix
GEOSEARCHreturning empty results for exact zero-distance matches on builds where floating-point contraction breaks the latitude distance calculation by @Baraa-Hasheesh (#4777) - Fix a crash when a replication role change command such as
REPLICAOForCLUSTER REPLICATEarrives over a replication link by @madolson (#5187) - Fix
XADDrejected for oversized elements leaving behind an empty stream key on the primary that is never replicated or written to the AOF by @madolson (#5178) - Redact credentials of rejected
HELLO,AUTHandMIGRATEcommands so passwords no longer leak to MONITOR and the commandlog by @madolson (#5180) - Fix an assertion crash on 64-bit builds when
LSETmerges list nodes whose combined size exceeds 4GB, reachable through a craftedRESTOREpayload by @madolson (#5163) - Ignore invalid ping extension values from cluster peers that would corrupt nodes.conf and prevent the node from restarting by @madolson (#5137)
- Prevent a replica crash when the primary wrongly replies +CONTINUE to a full resync request; the replica now drops the link and retries by @madolson (#5126)
- Bound the bytes the cluster bus reads per event so a peer with a constant read backlog cannot starve clients, cron and heartbeats by @madolson (#5161)
- Fail
CONFIG REWRITEwhen the old config file reads short instead of writing uninitialized memory into the new config file by @madolson (#5158) - Restore acceptance of hexadecimal floats (such as
0x10) in sorted set score ranges andSORTwhen built withUSE_FAST_FLOAT=yesby @quanyeyang (#4875) - Reclaim client-side caching tracking table entries left by disconnected clients, fixing a memory leak under read-heavy workloads, and include the tracking table in active defrag by @rayjinghaolei (#4190)
- Correct
ZADDandLCSmetadata soCOMMAND DOCSand valkey-cli hints no longer presentNXwithGT/LTorLENwithIDXas valid combinations by @rainsupreme (#5244) - Fix a Sentinel crash when a monitored replica's
INFOreply contains nomaster_hostby @smkher (#4929) - Fix a use-after-free in streams when
XADDcreates a new node, which could leave a dangling pointer hit by later reads such asXRANGEby @Baraa-Hasheesh (#4711) - Reject inbound cluster bus packets larger than 16MB, except Pub/Sub and module messages, so a peer cannot make a node buffer up to 4GB from a single header by @madolson (#5065)
- Fix
XINFO GROUPSandXINFO STREAM ... FULLreporting too-high consumer group lag afterXTRIMor a trimmingXADDremoves unread entries by @Sasidharan3094 (#4983) - Fix AOF load failure after a crash leaves a torn annotation at the end of the file; it is now treated as a short read and can be truncated by
aof-load-truncatedorvalkey-check-aof --fixby @sumitk163 (#5349) - Correct the
SENTINEL GET-PRIMARY-ADDR-BY-NAMEreply schema to allow the null reply returned for an unknown primary name by @rainsupreme (#5246) - Fix a crash after
REPLICAOF NO ONEwith TLS and a connection leak afterREPLICAOFto a new primary when the old primary client is freed asynchronously due to pending I/O by @yaronsananes (#3719)
Full Changelog: 8.1.11...8.1.12
8.0.13
Valkey 8.0.13 - Released Wed 18 November 2026
Upgrade urgency SECURITY: This release includes security fixes we recommend you apply as soon as possible.
Security Fixes
- CVE-2026-130822: Fix a use-after-free crash in client eviction when maxmemory-clients is enabled by @nadav-levanoni (#5435)
Bug Fixes
- Fix a crash during eviction sampling, and hangs, crashes, or duplicate set members in key comparison, when a key name or member reaches 2 GiB by @madolson (#5133)
- Correct command metadata to describe the
ZINCRBYincrement andZINTER/ZINTERSTORE/ZUNION/ZUNIONSTOREweights as doubles instead of integers by @sarthakaggarwal97 (#5210) - Propagate
PFADDelements applied before a corrupted-HLL INVALIDOBJ error so replicas and the AOF stay consistent with the primary by @madolson (#5128) - Fix a server panic when a Lua script returns or raises an error table whose metatable has an
__indexmetamethod that raises an error by @madolson (#5118) - Fix a server crash when a module never sets a postponed reply length; the leftover placeholder is now filled with an empty array by @madolson (#5159)
- Mark the
RESTOREandRESTORE-ASKINGIDLETIMEandFREQoptions as mutually exclusive in command metadata by @sarthakaggarwal97 (#5212) - Fix
PFMERGEwith no source keys bypassing ACL key permissions and failing inCOMMAND GETKEYS, and a crash in module commands whose keynum key spec starts past the last argument by @madolson (#5087) - Fix
SCRIPT KILLandFUNCTION KILLnot stopping Lua scripts that loop inside nested coroutines, and script timeouts not being detected when work is spread across coroutines by @madolson (#5108) - Fix a crash in a cluster replica whose primary was removed from the nodes table when another primary claims an unassigned slot by @madolson (#5184)
- Fix an out-of-bounds write in
PFADDandPFMERGEon a corrupted sparse HyperLogLog ending in a truncated XZERO opcode by rejecting it as invalid by @madolson (#5124) - Fix a server abort in
PFADDandPFMERGEon short sparse HyperLogLogs whenhll-sparse-max-bytesis set to 31 or less by @madolson (#5138) - Fix a server crash in
SORTandSORT_ROwithBYorGETpatterns when an element is 2 GiB or larger by @madolson (#5146) - Fix
ValkeyModule_CallocandValkeyModule_TryCallocreturning an undersized buffer whennmemb * sizeoverflows;Callocnow panics andTryCallocreturns NULL by @madolson (#5155) - Fix
ValkeyModule_CallReplyAttributeElementalways returning an error on RESP3 attribute replies by @madolson (#5157) - Fix
EXECsucceeding after a key that was already expired atWATCHtime is overwritten, which can happen on replicas by @madolson (#5169) - Fix a memory leak when
server.register_functionnamed arguments are repeated in a different letter case by @madolson (#5120) - Generate a new shard_id when the replica executes CLUSTER RESET SOFT by @enjoy-binbin (#2283)
- Correct expiry command metadata to show that
XXcan be combined withGTorLT, rather than all four conditions being mutually exclusive by @sarthakaggarwal97 (#5213) - Fix a memory leak when a script or module command is refused by ACL while the ACL log is disabled with
acllog-max-len 0by @madolson (#5162) - Fix
notify-keyspace-eventsdropping then(new key) flag fromCONFIG GETandCONFIG REWRITEwhenAis also set by @pirate329 (#5199) - Fix a cluster node failing to restart with an assertion after a gossip entry carrying the MYSELF flag adds a second myself node to nodes.conf by @madolson (#5134)
- Fix
ACL LOADnot disconnecting default user clients subscribed to channels the reloaded rules no longer allow by @madolson (#5085) - Fix a memory leak in
ValkeyModule_GetCommandKeysWithFlagswhen introspecting commands with large key lists by @christopherlim98 (#5046) - Bound the time spent per cycle evicting keys from the client tracking table, avoiding long stalls after lowering
tracking-table-max-keysby @tanmayBeginsJourney (#4775) - Correct
ZADDandLCSmetadata soCOMMAND DOCSand valkey-cli hints no longer presentNXwithGT/LTorLENwithIDXas valid combinations by @rainsupreme (#5244) - Correct
SENTINEL SIMULATE-FAILUREmetadata soCOMMAND DOCSshows the required mode argument and its tokens by @sarthakaggarwal97 (#5208) - Fix a Sentinel crash when a monitored replica's
INFOreply contains nomaster_hostby @smkher (#4929) - Fix a TLS busy loop that consumed 100% CPU when a connection's read or write handler was removed while OpenSSL was waiting for the opposite event by @yairgott (#3510)
- Fix a crash caused by a NULL pointer dereference when all timer events in an event loop are pending deletion by @royenheart (#4351)
- Fix a node staying stuck in PFAIL when its PING is lost while the peer's own traffic keeps the cluster link alive by @enjoy-binbin (#4171)
- Fix
SORTkey extraction so aSTOREdestination named like an option can no longer bypass ACL checks and write to an unauthorized key by @madolson (#4665) - Fix
GEOSEARCHreturning empty results for exact zero-distance matches on builds where floating-point contraction breaks the latitude distance calculation by @Baraa-Hasheesh (#4777) - Fix a crash in active defrag when a database's keyspace is replaced mid-scan, for example by
FLUSHDB ASYNC,SWAPDB, or a replica's flush before a full sync by @taham0 (#4968) - Fix a crash when a replication role change command such as
REPLICAOForCLUSTER REPLICATEarrives over a replication link by @madolson (#5187) - Fix
XADDrejected for oversized elements leaving an empty stream on the primary that is never propagated to replicas or the AOF by @madolson (#5178) - Fix unbounded memory growth in the client tracking table by reclaiming IDs of disconnected clients for keys that are never modified, and include the table in active defrag by @rayjinghaolei (#4190)
- Redact credentials of rejected
HELLO,AUTHandMIGRATEcommands so passwords no longer leak to MONITOR and the commandlog by @madolson (#5180) - Ignore invalid ping extension values from cluster peers that would corrupt nodes.conf and prevent the node from restarting by @madolson (#5137)
- Bound the bytes the cluster bus reads per event so a peer with a constant read backlog cannot starve clients, cron and heartbeats by @madolson (#5161)
- Fail
CONFIG REWRITEwhen the old config file reads short instead of writing uninitialized memory into the new config file by @madolson (#5158) - Prevent a replica crash when the primary wrongly replies +CONTINUE to a full resync request; the replica now drops the link and retries by @madolson (#5126)
- Fix a crash on 64-bit builds when
LSETmerges list nodes whose combined size exceeds 4GB, reachable with lists loaded throughRESTOREor a full sync by @madolson (#5163) - Fix a use-after-free in streams when
XADDcreates a new node, which could leave a dangling pointer hit by later reads such asXRANGEby @Baraa-Hasheesh (#4711) - Reject inbound cluster bus packets larger than 16MB, except Pub/Sub and module messages, so a peer cannot make a node buffer up to 4GB from a single header by @madolson (#5065)
- Fix
XINFO GROUPSandXINFO STREAM ... FULLreporting too-high consumer group lag afterXTRIMor a trimmingXADDremoves unread entries by @Sasidharan3094 (#4983) - Fix AOF load failure after a crash leaves a torn annotation at the end of the file; it is now treated as a short read and can be truncated by
aof-load-truncatedorvalkey-check-aof --fixby @sumitk163 (#5349) - Prevent replicas from processing stale cluster packets and incorrectly promoting themselves to an empty primary within a shard by @zhijun42 (#2811)
- Correct the
SENTINEL GET-PRIMARY-ADDR-BY-NAMEreply schema to allow the null reply returned for an unknown primary name by @rainsupreme (#5246) - Fix a crash after
REPLICAOF NO ONEwith TLS and a connection leak afterREPLICAOFto a new primary when the old primary client is freed asynchronously due to pending I/O by @yaronsananes (#3719)
Full Changelog: 8.0.12...8.0.13
7.2.16
Valkey 7.2.16 - Released Wed 18 November 2026
Upgrade urgency SECURITY: This release includes security fixes we recommend you apply as soon as possible.
Security Fixes
- CVE-2026-130822: Fix a use-after-free crash in client eviction when maxmemory-clients is enabled by @nadav-levanoni (#5435)
Bug Fixes
- Fix crashes, hangs, and duplicate set members when a key name or collection member reaches 2 GiB, including a crash when eviction samples a 2 GiB key name by @madolson (#5133)
- Correct command metadata to describe the
ZINCRBYincrement andZINTER/ZINTERSTORE/ZUNION/ZUNIONSTOREweights as doubles instead of integers by @sarthakaggarwal97 (#5210) - Propagate
PFADDelements applied before a corrupted-HLL INVALIDOBJ error so replicas and the AOF stay consistent with the primary by @madolson (#5128) - Fix a server crash when a module never sets a postponed reply length; the leftover placeholder is now filled with an empty array by @madolson (#5159)
- Mark the
RESTOREandRESTORE-ASKINGIDLETIMEandFREQoptions as mutually exclusive in command metadata by @sarthakaggarwal97 (#5212) - Fix
PFMERGEwith no source keys bypassing ACL key permissions and failing inCOMMAND GETKEYS, and a crash in module commands whose keynum key spec starts past the last argument by @madolson (#5087) - Fix
SCRIPT KILLandFUNCTION KILLnot stopping Lua scripts that loop inside nested coroutines, and script timeouts not being detected when work is spread across coroutines by @madolson (#5108) - Fix a server crash in
SORTandSORT_ROwithBYorGETpatterns when an element is 2 GiB or larger by @madolson (#5146) - Fix
ValkeyModule_CallReplyAttributeElementalways returning an error on RESP3 attribute replies by @madolson (#5157) - Fix
ValkeyModule_CallocandValkeyModule_TryCallocreturning an undersized buffer whennmemb * sizeoverflows by @madolson (#5155) - Fix
EXECsucceeding after a key that was already expired atWATCHtime is overwritten, which can happen on replicas by @madolson (#5169) - Fix an out-of-bounds write in
PFADDandPFMERGEon a corrupted sparse HyperLogLog ending in a truncated XZERO opcode by rejecting it as invalid by @madolson (#5124) - Fix a server abort in
PFADDandPFMERGEon short sparse HyperLogLogs whenhll-sparse-max-bytesis set to 31 or less by @madolson (#5138) - Fix
notify-keyspace-eventsdropping then(new key) flag fromCONFIG GETandCONFIG REWRITEwhenAis also set by @pirate329 (#5199) - Fix a crash in a cluster replica whose primary was removed from the nodes table when another primary claims an unassigned slot by @madolson (#5184)
- Fix a server panic when a Lua script returns or raises an error table whose metatable has an
__indexmetamethod that raises an error by @madolson (#5118) - Fix a memory leak when
server.register_functionnamed arguments are repeated in a different letter case by @madolson (#5120) - Correct expiry command metadata to show that
XXcan be combined withGTorLT, rather than all four conditions being mutually exclusive by @sarthakaggarwal97 (#5213) - Fix
CLUSTER MEETleaving asymmetric cluster membership after a link failure by resending MEET until the target node responds by @srgsanky (#461) - Fix
ACL LOADnot disconnecting default user clients subscribed to channels the reloaded rules no longer allow by @madolson (#5085) - Fix a cluster node failing to restart with an assertion after a gossip entry carrying the MYSELF flag adds a second myself node to nodes.conf by @madolson (#5134)
- Fix a memory leak in
ValkeyModule_GetCommandKeysWithFlagswhen introspecting commands with large key lists by @christopherlim98 (#5046) - Bound the time spent per cycle evicting keys from the client tracking table, avoiding long stalls after lowering
tracking-table-max-keysby @tanmayBeginsJourney (#4775) - Correct
SENTINEL SIMULATE-FAILUREmetadata soCOMMAND DOCSshows the required mode argument and its tokens by @sarthakaggarwal97 (#5208) - Fix a TLS busy loop that consumed 100% CPU when a connection's read or write handler was removed while OpenSSL was waiting for the opposite event by @yairgott (#3510)
- Fix a crash caused by a NULL pointer dereference when all timer events in an event loop are pending deletion by @royenheart (#4351)
- Fix
SORTkey extraction so aSTOREdestination named like an option can no longer bypass ACL checks and write to an unauthorized key by @madolson (#4665) - Fix
XADDwith oversized elements creating an empty stream on the primary that is never propagated to replicas or the AOF by @madolson (#5178) - Fix
GEOSEARCHreturning empty results for exact zero-distance matches on builds where floating-point contraction breaks the latitude distance calculation by @Baraa-Hasheesh (#4777) - Redact credentials of rejected
HELLO,AUTHandMIGRATEcommands so passwords no longer leak to MONITOR and the commandlog by @madolson (#5180) - Correct
ZADDandLCSmetadata soCOMMAND DOCSand valkey-cli hints no longer presentNXwithGT/LTorLENwithIDXas valid combinations by @rainsupreme (#5244) - Fix a Sentinel crash when a monitored replica's
INFOreply contains nomaster_hostby @smkher (#4929) - Fix a crash when a replication role change command such as
REPLICAOForCLUSTER REPLICATEarrives over a replication link by @madolson (#5187) - Fix an integer overflow in the quicklist merge size check that could crash 64-bit servers on
LSETagainst a list with a node near 4GiB loaded viaRESTOREor full sync by @madolson (#5163) - Fail
CONFIG REWRITEwhen the old config file reads short instead of writing uninitialized memory into the new config file by @madolson (#5158) - Fix a use-after-free in streams when
XADDcreates a new node, which could leave a dangling pointer hit by later reads such asXRANGEby @Baraa-Hasheesh (#4711) - Prevent a replica crash when the primary wrongly replies +CONTINUE to a full resync request; the replica now drops the link and retries by @madolson (#5126)
- Fix a node staying stuck in PFAIL when its PING is lost while the peer's own traffic keeps the cluster link alive by @enjoy-binbin (#4171)
- Ignore invalid ping extension values from cluster peers that would corrupt nodes.conf and prevent the node from restarting by @madolson (#5137)
- Bound the bytes the cluster bus reads per event so a peer with a constant read backlog cannot starve clients, cron and heartbeats by @madolson (#5161)
- Reclaim client-side caching tracking table entries left by disconnected clients, fixing a memory leak under read-heavy workloads, and include the tracking table in active defrag by @rayjinghaolei (#4190)
- Reject inbound cluster bus packets larger than 16MB, except Pub/Sub and module messages, so a peer cannot make a node buffer up to 4GB from a single header by @madolson (#5065)
- Fix
CLUSTER SHARDSreturning empty slot information for a shard whose primary has failed by @hpatro (#790) - Fix
XINFO GROUPSandXINFO STREAM ... FULLreporting too-high consumer group lag afterXTRIMor a trimmingXADDremoves unread entries by @Sasidharan3094 (#4983) - Fix AOF load failure after a crash leaves a torn annotation at the end of the file; it is now treated as a short read and can be truncated by
aof-load-truncatedorvalkey-check-aof --fixby @sumitk163 (#5349) - Correct the
SENTINEL GET-MASTER-ADDR-BY-NAMEreply schema to allow the null reply returned for an unknown primary name by @rainsupreme (#5246)
Full Changelog: 7.2.15...7.2.16
9.2.0-rc2
Valkey 9.2.0-rc2 - Released Wed 04 November 2026
Upgrade urgency LOW: This is the second release candidate of Valkey 9.2.0.
New Features and Enhanced Behavior
- Add new
DELEXcommand to conditionally delete a string key when its value matches (IFEQ) or differs from (IFNE) a given value by @lightsigma96 (#4607) - Add Zstd as a streaming compression codec for RDB persistence and replication, offering better compression ratios than LZ4 by @sarthakaggarwal97 (#3798)
- Support streaming-compressed RDB preambles in AOF bases, so compressed full-sync RDB files can be reused directly as AOF bases by @sarthakaggarwal97 (#4754)
ACL GENPASSand the hash function seed draw randomness from the configured OpenSSL 3 provider when built with TLS, supporting deployments that require a validated crypto module by @MarkAtwood (#4339)- Support forkless full synchronization to replicas, serving disk and diskless full syncs from a background-thread snapshot without forking by @nitaicaro (#4797)
Performance and Efficiency Improvements
- Speed up sorted set score updates in listpack encoding by replacing the score in place when the member keeps its position by @charsyam (#3491)
- Fix quadratic slowdown in
HRANDFIELDandSRANDMEMBERwith counts on collections whose elements differ only in letter case by @madolson (#5167) - Bound the time spent per cycle evicting keys from the client tracking table, avoiding long stalls after lowering
tracking-table-max-keysby @tanmayBeginsJourney (#4775) - Speed up the
INFOcommand by around 5% by pre-allocating the output buffer by @charsyam (#3413) - Reclaim client-side caching tracking table entries left by disconnected clients, fixing a memory leak under read-heavy workloads, and include the tracking table in active defrag by @rayjinghaolei (#4190)
- Speed up
ZPOPMINandZPOPMAXon B+tree encoded sorted sets by detaching edge items without a key search or copy by @charsyam (#4852) - Counting a hash's fields with expirations is now O(1) for hashtable-encoded hashes by tracking the volatile set size on each mutation by @frostzt (#4829)
- Speed up AOF command propagation by serializing commands directly into the AOF buffer, removing an allocation and copy per command by @charsyam (#3496)
- Cache the earliest event-loop timer to avoid an O(N) scan per iteration, reducing overhead with many timers such as RDMA connections by @royenheart (#4354)
- Speed up HGETALL, HKEYS and HVALS with exact-length reply headers, fused bulk replies, and entry prefetching by @jjuleslasarte (#4417)
- Eliminate false sharing in per-thread memory usage counters, improving throughput with I/O threads on SMT x86 systems by @omerrubi-amzn (#4107)
- Read-only list iteration (e.g. LRANGE, LPOS) no longer decompresses and recompresses quicklist nodes in place, cutting CPU cost on compressed lists by @murphyjacob4 (#4782)
- Speed up ZSCAN on btree-encoded sorted sets by avoiding temporary member and score copies and prefetching items by @charsyam (#4856)
- Reduce cache-line false sharing on IO thread activity and job counters for better multi-threaded IO performance by @omerrubi-amzn (#4976)
- PHDELPREFIX now bounds its temporary path copies to 64KiB per batch, avoiding large untracked memory spikes on long shared prefixes by @madolson (#5179)
Bug Fixes
- Reject module write commands while the server is paused for writes, preventing a crash from module timer callbacks during
CLIENT PAUSE WRITEorCLUSTER FAILOVERby @smkher (#3645) - Fix event loop busy-spinning on virtual machines by not using raw TSC for the monotonic clock when the kernel clocksource is not tsc by @quanyeyang (#4707)
- Fix a crash in
ValkeyModule_HashHasStringRefon a missing or expired field and correct wrong return values in the hash stringRef module APIs by @ShubhamTaple (#4504) - Fix a server abort on a RESTORE payload declaring a string length that overflows the allocation size; such payloads are now rejected as bad data by @enjoy-binbin (#4733)
- Fix ZINTER/ZINTERSTORE returning input-order-dependent scores when a weighted term is 0*inf; a NaN weighted score now counts as 0, matching ZUNION by @leomurillo (#4997)
- Fix crashes, lookup hangs, and duplicate set members when keys or elements reach 2 GiB, caused by storing string lengths in a 32-bit integer by @madolson (#5133)
- Fix module global defrag resuming on the wrong module or with a stale cursor when
MODULE UNLOADruns between defrag cycles by @madolson (#5154) - Propagate
PFADDelements applied before a corrupted-HLL INVALIDOBJ error so replicas and the AOF stay consistent with the primary by @madolson (#5128) - Fix a server crash in
SCRIPT DEBUG SYNCmode when a debugger command arrives split across more than one read by @madolson (#5127) - Fix a server panic when a Lua script returns or raises an error table whose metatable has an
__indexmetamethod that raises an error by @madolson (#5118) - Fix forkless BGSAVE producing a corrupt snapshot when
SWAPDBruns without being replicated, such as from a script with replication disabled by @madolson (#5116) - Let
FLUSHALLandSHUTDOWNcancel a forkless save that is finalizing its file, so a stale snapshot can no longer overwrite the newer dump.rdb by @madolson (#5121) - Fix a server crash when a module never sets a postponed reply length; the leftover placeholder is now filled with an empty array by @madolson (#5159)
- Fix a memory leak when
server.register_functionnamed arguments are repeated in a different letter case by @madolson (#5120) - Preserve expired but not yet reaped hash fields across listpack-to-hashtable conversion so their deletion is properly reaped and propagated by @frostzt (#4704)
- Fix a double-decremented item count when background iteration is terminated with a SWAPDB or FLUSHDB event queued by @JimB123 (#4750)
- Fix
GEOSEARCHreturning empty results for exact zero-distance matches on builds where floating-point contraction breaks the latitude distance calculation by @Baraa-Hasheesh (#4777) - Reject inline commands containing a raw NUL byte with a protocol error instead of leaving the connection stalled by @cjx-zar (#4759)
- Fix a memory leak on normal shutdown caused by I/O worker threads not being terminated and cleaned up by @roshkhatri (#4710)
XACKDELwithKEEPREFnow replies 1 instead of -1 when acknowledging an entry whose stream message was already deleted, matching the ACKED and DELREF modes by @adityamukesh (#4843)- Fix listpack encoding incompatibility that caused RDB load and replication failures for entries of certain lengths between 9.0 and 9.1.x by @jjuleslasarte (#4819)
- Reject relative expire times in
SET/GETEX,RESTORE, andValkeyModule_SetExpirethat overflow when added to the current time, preventing server aborts from negative expires by @madolson (#4880) ACL DIGESTnow includes role definitions, so editing a role's rules changes the reported fingerprint by @melancholictheory (#4694)- Fix a server crash when loading an ACL file containing a selector with an unmatched parenthesis by @magic-peach (#4214)
- Fix a segfault on Alpine/musl when Lua is built as a module, caused by a symbol clash on an internal clock function by @mohammedgqudah (#4270)
- Fix lex range seeks, NaN score bound handling, and a memory leak in B+tree sorted sets, and resolve
ZRANGEBYLEXLIMIT offsets in logarithmic time by @xiaocj (#4644) - Fix expired hash fields left untracked after listpack-to-hashtable conversion, which could crash the server on a later write and leave fields that are never reaped by @beyondwin (#4894)
- Restore acceptance of hexadecimal float sorted set scores (such as
0x10), keeping replication and AOF replay compatible with Valkey 9.0 by @quanyeyang (#4875) - Sorted set range commands with a negative
LIMIToffset now return an empty result instead of a spurious element on btree-encoded keys by @xiaocj (#4637) - Fix
HSETEXandHGETEXfailing to parse their arguments when the key is namedfieldsby @sebxt (#4945) - Fix a crash when active defrag's deferred keys outlive a keyspace replacement such as FLUSHDB/FLUSHALL ASYNC, SWAPDB, or a replica's pre-sync flush by @taham0 (#4968)
- Fix
LSETon 64-bit builds silently modifying the wrong element for out-of-range indexes instead of returning an index out of range error by @charsyam (#4823) - Fix a heap buffer overflow in cluster Pub/Sub message construction; oversized PUBLISH and SPUBLISH payloads are now rejected with an error in cluster mode by @roshkhatri (#5030)
- Lex range commands on btree-encoded sorted sets with mixed scores now match listpack results, preventing primary/replica divergence via ZREMRANGEBYLEX and ZRANGESTORE by @pirate329 (#4954)
- Fix a memory leak when
GEOSEARCHorGEOSEARCHSTOREis given repeatedBYPOLYGONoptions by @charsyam (#4995) DEBUG RELOADandDEBUG LOADAOFnow return a LOADING error while the dataset is loading, avoiding a possible panic by @enjoy-binbin (#4877)- Fix a memory leak in
ValkeyModule_GetCommandKeysWithFlagswhen introspecting commands with large key lists by @christopherlim98 (#5046) MEMORY USAGEnow counts hash fields that have expired but not yet been reaped, fixing under-reported sizes by @sushilpaneru1 (#5092)- Fix a crash in
ValkeyModule_Callwhen script-mode validation fails and error replies were not requested by @dvkashapov (#5091) - High-priority socket events are no longer drained when the event loop caller did not request file event processing by @enjoy-binbin (#5098)
- Fix a crash when a replication role change command such as
REPLICAOForCLUSTER REPLICATEarrives over a replication link by @madolson (#5187) FUNCTION RESTOREnow applies the same library load timeout asFUNCTION LOAD, so a never-returning library can no longer block the server forever by @madolson (#5181)- Fix a buffer overflow in valkey-benchmark when `--num-fun...
9.1.3
Valkey 9.1.3 - Released Mon 26 October 2026
Upgrade urgency SECURITY: This release includes security fixes we recommend you apply as soon as possible.
Security Fixes
- GHSA-f4q9-j22m-xqq9: Fix a heap buffer overflow in cluster Pub/Sub message construction that could allow an authenticated client to potentially execute arbitrary code by publishing an oversized message by @roshkhatri (#5030)
Bug Fixes
- Fix stream commands that mutate consumer-group or PEL state (
XGROUP,XSETID,XREADGROUP,XACK,XCLAIM,XAUTOCLAIM) not triggeringWATCHand client-side tracking invalidation by @Tarte12 (#3459) - Reject module write commands while the server is paused for writes, preventing a crash from module timer callbacks during
CLIENT PAUSE WRITEorCLUSTER FAILOVERby @smkher (#3645) - Fix event loop busy-spinning on virtual machines by not using raw TSC for the monotonic clock when the kernel clocksource is not tsc by @quanyeyang (#4707)
- Fix a crash in
ValkeyModule_HashHasStringRefon a missing or expired field and correct wrong return values in the hash stringRef module APIs by @ShubhamTaple (#4504) - Fix a server abort on a RESTORE payload declaring a string length that overflows the allocation size; such payloads are now rejected as bad data by @enjoy-binbin (#4733)
- Fix ZINTER/ZINTERSTORE returning input-order-dependent scores when a weighted term is 0*inf; a NaN weighted score now counts as 0, matching ZUNION by @leomurillo (#4997)
- Clear a stale primary-failure gossip flag on replicas so later failovers don't incorrectly skip the election delay by @charsyam (#4533)
- Correct
ValkeyModule_FreeModuleUser,ValkeyModule_ACLAddLogEntryandValkeyModule_ACLAddLogEntryByUserNamedeclarations to return int as implemented, fixing undefined behavior on targets with strict call signature checks by @rainsupreme (#4676) - valkey-check-aof now recognizes RDB base files with the
VALKEYsignature instead of misreporting a valid multipart AOF as invalid by @sarthakaggarwal97 (#4739) - Fix module commands that access undeclared keys in other slots reading or writing the wrong slot in cluster mode, and aborting in debug builds by @patrickswedish (#4424)
- Reject relative expire times in
SET/GETEX,RESTORE, andValkeyModule_SetExpirethat overflow when added to the current time, preventing server aborts from negative expires by @madolson (#4880) HDEL,HGETDEL,HPERSIST, andHEXPIREno longer propagate fields they treat as expired, preventing replica and AOF-reload divergence by @xdk-amz (#4772)- Fix a server crash when loading an ACL file containing a selector with an unmatched parenthesis by @magic-peach (#4214)
- Fix a segfault on Alpine/musl when Lua is built as a module, caused by a symbol clash on an internal clock function by @mohammedgqudah (#4270)
COPYof a hash now includes expired-but-unreaped fields so their deletion is propagated and replicas stay in sync by @pirate329 (#4939)- Restore acceptance of hexadecimal float sorted set scores (such as
0x10), keeping replication and AOF replay compatible with Valkey 9.0 by @quanyeyang (#4875) - Sorted set range commands with a negative
LIMIToffset now return an empty result instead of a spurious element on btree-encoded keys by @xiaocj (#4637) - Fix listpack encoding incompatibility that caused RDB load and replication failures for entries of certain lengths between 9.0 and 9.1.x by @jjuleslasarte (#4819)
- Fix atomic slot migration not replicating evictions on the import target, which let replicas grow far past
maxmemoryby @shanezx-sc (#4920) - Redact error text in server logs when
hide-user-data-from-logis enabled, so command arguments no longer leak into logs by @zackcam (#4815) - Fix
HSETEXandHGETEXfailing to parse their arguments when the key is namedfieldsby @sebxt (#4945) - Fix cluster config saving to avoid publishing truncated
nodes.conffiles, losing the startup lock after the first save, and failing every save on SMB filesystems such as Azure Files; the lock now lives on a separatenodes.conf.lockfile by @KewangZhili (#4489) - Fix
LSETon 64-bit builds silently modifying the wrong element for out-of-range indexes instead of returning an index out of range error by @charsyam (#4823) - Fix atomic slot migration with
cluster-databases> 1 applying writes made during the snapshot to the wrong database on the target by @pirate329 (#4952)
Full Changelog: 9.1.2...9.1.3
9.0.7
Valkey 9.0.7 - Released Mon 26 October 2026
Upgrade urgency SECURITY: This release includes security fixes we recommend you apply as soon as possible.
Security Fixes
- GHSA-f4q9-j22m-xqq9: Fix a heap buffer overflow in cluster Pub/Sub message construction that could allow an authenticated client to potentially execute arbitrary code by publishing an oversized message by @roshkhatri (#5030)
Bug Fixes
- Fix stream commands that mutate consumer-group or PEL state (
XGROUP,XSETID,XREADGROUP,XACK,XCLAIM,XAUTOCLAIM) not triggeringWATCHand client-side tracking invalidation by @Tarte12 (#3459) - Reject module write commands while the server is paused for writes, preventing a crash from module timer callbacks during
CLIENT PAUSE WRITEorCLUSTER FAILOVERby @smkher (#3645) - Fix a server abort on a RESTORE payload declaring a string length that overflows the allocation size; such payloads are now rejected as bad data by @enjoy-binbin (#4733)
- Fix ZINTER/ZINTERSTORE returning input-order-dependent scores when a weighted term is 0*inf; a NaN weighted score now counts as 0, matching ZUNION by @leomurillo (#4997)
- Correct
ValkeyModule_FreeModuleUser,ValkeyModule_ACLAddLogEntryandValkeyModule_ACLAddLogEntryByUserNamedeclarations to return int as implemented, fixing undefined behavior on targets with strict call signature checks by @rainsupreme (#4676) - valkey-check-aof now recognizes RDB base files with the
VALKEYsignature instead of misreporting a valid multipart AOF as invalid by @sarthakaggarwal97 (#4739) - Fix a huge memory allocation when a command such as COMMAND GETKEYS EVAL declares a far larger key count than the arguments provided by @murphyjacob4 (#3598)
- Reject relative expire times in
SET/GETEX,RESTORE, andValkeyModule_SetExpirethat overflow when added to the current time, preventing server aborts from negative expires by @madolson (#4880) HDEL,HGETDEL,HPERSIST, andHEXPIREno longer propagate fields they treat as expired, preventing replica and AOF-reload divergence by @xdk-amz (#4772)- Fix a server crash when loading an ACL file containing a selector with an unmatched parenthesis by @magic-peach (#4214)
COPYof a hash now includes expired-but-unreaped fields so their deletion is propagated and replicas stay in sync by @pirate329 (#4939)- Sorted set range commands with a negative
LIMIToffset now return an empty result instead of a spurious element on btree-encoded keys by @xiaocj (#4637) - Fix atomic slot migration not replicating evictions on the import target, which let replicas grow far past
maxmemoryby @shanezx-sc (#4920) - Redact error text in server logs when
hide-user-data-from-logis enabled, so command arguments no longer leak into logs by @zackcam (#4815) - Fix
HSETEXandHGETEXfailing to parse their arguments when the key is namedfieldsby @sebxt (#4945) - Fix cluster config saving to avoid publishing truncated
nodes.conffiles, losing the startup lock after the first save, and failing every save on SMB filesystems such as Azure Files; the lock now lives on a separatenodes.conf.lockfile by @KewangZhili (#4489) - Fix atomic slot migration with
cluster-databases> 1 applying writes made during the snapshot to the wrong database on the target by @pirate329 (#4952) - Fix
LSETon 64-bit builds silently modifying the wrong element for out-of-range indexes instead of returning an index out of range error by @charsyam (#4823)
Full Changelog: 9.0.6...9.0.7