Use-after-free in Valkey - #VU146568
Published: September 1, 2026
Vulnerability details
The vulnerability allows a remote user to execute arbitrary code or cause a denial of service.
The vulnerability exists due to use-after-free in the script debugger command cache in the Lua interpreter state when running scripting commands and subsequent debugger commands. A remote user can trigger SCRIPT FLUSH ASYNC and then issue a debugger command to execute arbitrary code or cause a denial of service.
The issue was introduced when the Lua scripting engine was moved into a Valkey module.