REDHAT-BUG-2583396: High severity Valkey Valkey vulnerability
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 sizet but passes it to createClusterMsgSendBlock as a uint32t. When the channel and message together exceed 4 GiB, the length is truncated, a buffer far smaller than the message is allocated, and the full channel and message are then copied into it. An authenticated user who can publish, for example by building the arguments in a script, can overflow the heap with attacker-controlled bytes. This reliably crashes the server and may lead to remote code execution. Servers that do not run in cluster mode are not affected.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Only Valkey servers running in cluster mode are affected. Standalone servers that do not run in cluster mode are not affected.
What level of access does an attacker need?
An attacker must be an authenticated user with permission to publish. They must be able to submit a PUBLISH or SPUBLISH request whose channel name and message together exceed 4 GiB, for example by constructing the arguments in a script.
What is the practical impact of successful exploitation?
The overflow uses attacker-controlled bytes and reliably crashes the server. It may also permit remote code execution.
Which versions need remediation?
Affected releases are versions 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.