SECURITY & CVE TRACK RECORD
Valkey Security Advisories, CVEs & Patched Versions
Historical vulnerability disclosures, CVSS severity ratings, affected version ranges, and verified patch releases for Valkey.
Valkey: Use-after-free in the RDMA transport when a client is freed while pending data is processed
In Valkey 8.0.x before 8.0.11, 8.1.x before 8.1.10, 9.0.x before 9.0.6 and 9.1.x before 9.1.2, the RDMA transport's pending-data handler walks its connection list with an iterator that caches the next entry. A command processed from inside that loop, such as CLIENT KILL, can s...
Vulnerable Range:
2b5c7a0dbd61fd4281ef6166b7d119ba7fe7368c -> 4bf1df6441949d70b38e748ffe39daaca9f6f89c
Fix Version:
4bf1df6441949d70b38e748ffe39daaca9f6f89c
Valkey: Integer truncation in cluster publish message construction causes a heap buffer overflow
In Valkey before 7.2.15, 8.0.x before 8.0.12, 8.1.x before 8.1.11, 9.0.x before 9.0.7, 9.1.x before 9.1.3 and 9.2.0-rc1, running in cluster mode, clusterCreatePublishMsgBlock computes the length of the cluster bus message for a PUBLISH or SPUBLISH as a size_t but passes it to ...
Vulnerable Range:
0 -> 20e068cad6262e3fa01680b6c4ad9ae3483280d0
Fix Version:
20e068cad6262e3fa01680b6c4ad9ae3483280d0
Valkey: Use-after-free of the Lua interpreter state through the script debugger's command cache
In Valkey 9.1.0 and 9.1.1, the Lua script debugger builds its command table once and caches it with a pointer to the Lua interpreter state that was current at the time. SCRIPT FLUSH ASYNC recreates the scripting engine and frees the previous interpreter state without invalidat...
Vulnerable Range:
c9e8005e9d0ec817e26c7db318861cb821409249 -> 7f1dffedff6de73058b2c2a389422b6ecd56c8fb
Fix Version:
7f1dffedff6de73058b2c2a389422b6ecd56c8fb
Valkey: Use-after-free when client eviction frees the client whose command is still executing
In Valkey before 7.2.16, 8.0.x before 8.0.13, 8.1.x before 8.1.12, 9.0.x before 9.0.8, 9.1.x before 9.1.4 and 9.2.0 release candidates, when client eviction is enabled (maxmemory-clients is not 0), an authenticated user who can write to a key that other clients are blocked on ...
Vulnerable Range:
0 -> 46b59e91b90b1690f36277916c2fc7d5fb134319
Fix Version:
46b59e91b90b1690f36277916c2fc7d5fb134319
valkey-io valkey kvstore.c kvstoreGetHashtable out-of-bounds
A weakness has been identified in valkey-io valkey up to 9.0.5/9.1.1. This affects the function kvstoreGetHashtable of the file src/kvstore.c. This manipulation of the argument didx causes out-of-bounds read. It is possible to initiate the attack remotely. The attack is consid...
Vulnerable Range:
5018b12b0de2d2322a1bbf6b041c43740587c0f2 -> 4691888e7fab3df128f0bde5750c9fde2ae552fa
Fix Version:
4691888e7fab3df128f0bde5750c9fde2ae552fa
valkey-io valkey Slot Migration cluster_migrateslots.c createSlotImportJob out-of-bounds
A vulnerability was detected in valkey-io valkey up to 9.5.4/9.1.0. Affected by this vulnerability is the function createSlotImportJob of the file src/cluster_migrateslots.c of the component Slot Migration. The manipulation of the argument job_name results in out-of-bounds rea...
Vulnerable Range:
5018b12b0de2d2322a1bbf6b041c43740587c0f2 -> f4dc3ca09eb650c2fe14060090a41c524eca803f
Fix Version:
f4dc3ca09eb650c2fe14060090a41c524eca803f
valkey-io valkey Module Timer module.c moduleTimerHandler double free
A vulnerability was determined in valkey-io valkey 9.1.0. Impacted is the function moduleTimerHandler of the file src/module.c of the component Module Timer Subsystem. This manipulation causes double free. The attack can be initiated remotely. The exploit has been publicly dis...
Vulnerable Range:
c9e8005e9d0ec817e26c7db318861cb821409249 -> b349fe2821e3998534b1454c1b64a478daf8c6b7
Fix Version:
b349fe2821e3998534b1454c1b64a478daf8c6b7
valkey-io valkey Blocked-on-keys blocked.c handleClientsBlockedOnKey use after free
A security flaw has been discovered in valkey-io valkey 9.1.0. The affected element is the function handleClientsBlockedOnKey of the file src/blocked.c of the component Blocked-on-keys Subsystem. The manipulation results in use after free. The attack may be performed from remo...
Vulnerable Range:
c9e8005e9d0ec817e26c7db318861cb821409249 -> b2fb0e13f5b4c8c2fb63dcfc2c37a067a0d6d20b
Fix Version:
b2fb0e13f5b4c8c2fb63dcfc2c37a067a0d6d20b
Valkey: UAF in stream deserialization may lead to remote code execution
Valkey is a distributed key-value database. Prior to 7.2.14, 8.0.10, 8.1.9, 9.0.5, and 9.1.1, Valkey's RESTORE command accepts a malformed RDB stream payload that assigns one Pending Entry List NACK to multiple consumers during stream consumer-group deserialization, causing a ...
Vulnerable Range:
0 -> 499cfb9431c7cebec4d91f81bb4932a742a8c8ae
Fix Version:
499cfb9431c7cebec4d91f81bb4932a742a8c8ae
Valkey: TLS pending-data processing use-after-free may allow remote code execution
Valkey is a distributed key-value database. Prior to 7.2.14, 8.0.10, 8.1.9, 9.0.5, and 9.1.1, Valkey's tlsProcessPendingData function iterates pending_list while an authenticated client can trigger CLIENT KILL, causing connTLSClose to delete the iterator's cached next node and...
Vulnerable Range:
0 -> 499cfb9431c7cebec4d91f81bb4932a742a8c8ae
Fix Version:
499cfb9431c7cebec4d91f81bb4932a742a8c8ae
Resolved in official release 7.2.14. Review release changelog for technical vulnerability and fix details.
Vulnerable Range:
< 7.2.14
Resolved in official release 9.1.0. Review release changelog for technical vulnerability and fix details.
Vulnerable Range:
< 9.1.0
Resolved in official release 9.1.0. Review release changelog for technical vulnerability and fix details.
Vulnerable Range:
< 9.1.0
Valkey has Pre-Authentication DOS from malformed RESP request
Valkey is a distributed key-value database. Starting in version 9.0.0 and prior to version 9.0.3, a malicious actor with network access to Valkey can cause the system to abort by triggering an assertion. When processing incoming requests, the Valkey system does not properly re...
Vulnerable Range:
5018b12b0de2d2322a1bbf6b041c43740587c0f2 -> 6e63ad9ccdceea562a6ea9ea9df9160c0d1109d6
Fix Version:
6e63ad9ccdceea562a6ea9ea9df9160c0d1109d6
Malformed Valkey Cluster bus message can lead to Remote DoS
Valkey is a distributed key-value database. Prior to versions 9.0.2, 8.1.6, 8.0.7, and 7.2.12, a malicious actor with access to the Valkey clusterbus port can send an invalid packet that may cause an out bound read, which might result in the system crashing. The Valkey cluster...
Vulnerable Range:
0 -> 7b696d1a4f8b2a5b5393dba7c6706f7aa8599013
Fix Version:
7b696d1a4f8b2a5b5393dba7c6706f7aa8599013
Valkey Affected by RESP Protocol Injection via Lua error_reply
Valkey is a distributed key-value database. Prior to versions 9.0.2, 8.1.6, 8.0.7, and 7.2.12, a malicious user can use scripting commands to inject arbitrary information into the response stream for the given client, potentially corrupting or returning tampered data to other ...
Vulnerable Range:
0 -> 7b696d1a4f8b2a5b5393dba7c6706f7aa8599013
Fix Version:
7b696d1a4f8b2a5b5393dba7c6706f7aa8599013
Resolved in official release 8.1.4. Review release changelog for technical vulnerability and fix details.
Vulnerable Range:
< 8.1.4
Resolved in official release 8.1.4. Review release changelog for technical vulnerability and fix details.
Vulnerable Range:
< 8.1.4
Resolved in official release 8.1.4. Review release changelog for technical vulnerability and fix details.
Vulnerable Range:
< 8.1.4
Resolved in official release 8.1.4. Review release changelog for technical vulnerability and fix details.
Vulnerable Range:
< 8.1.4
Resolved in official release 8.0.5. Review release changelog for technical vulnerability and fix details.
Vulnerable Range:
< 8.0.5
Resolved in official release 8.1.3. Review release changelog for technical vulnerability and fix details.
Vulnerable Range:
< 8.1.3
Resolved in official release 8.1.3. Review release changelog for technical vulnerability and fix details.
Vulnerable Range:
< 8.1.3
setDeferredReply in networking.c in Valkey through 8.1.1 has an integer underflow for prev->size - prev->used.
setDeferredReply in networking.c in Valkey through 8.1.1 has an integer underflow for prev->size - prev->used.
Vulnerable Range:
0 -> unfixed
Fix Version:
Review Advisory
Resolved in official release 8.1.1. Review release changelog for technical vulnerability and fix details.
Vulnerable Range:
< 8.1.1
Resolved in official release 7.2.8. Review release changelog for technical vulnerability and fix details.
Vulnerable Range:
< 7.2.8
Resolved in official release 7.2.8. Review release changelog for technical vulnerability and fix details.
Vulnerable Range:
< 7.2.8
Resolved in official release 8.0.1. Review release changelog for technical vulnerability and fix details.
Vulnerable Range:
< 8.0.1
Resolved in official release 8.0.1. Review release changelog for technical vulnerability and fix details.
Vulnerable Range:
< 8.0.1
Resolved in official release 8.0.1. Review release changelog for technical vulnerability and fix details.
Vulnerable Range:
< 8.0.1