An authenticated user may use a specially crafted RESTORE command to inject a malformed RDB payload containing duplicate Pending Entry List (PEL) assignments. This triggers a use-after-free during stream consumer group deserialization or consumer deletion, potentially leading to remote code execution.
The problem exists in all versions of Valkey.
An additional workaround to mitigate the problem without patching the valkey-server executable is to prevent users from executing the RESTORE command. This can be done using ACLs to restrict access to the RESTORE command, or by disabling/renaming the command in your valkey.conf.
The problem was reported by z0v3r1n and Lifip.