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