All reports
High

valkey: Valkey: Arbitrary code execution via use-after-free in Lua script debugger

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Description

A flaw was found in Valkey. This vulnerability allows an authenticated attacker with permission to run scripting commands to execute arbitrary code or cause a Denial of Service (DoS) by crashing the server. The issue occurs because the Lua script debugger retains cached references to an interpreter state that is freed during asynchronous script flushing. Subsequent debugger commands access this freed memory, creating a use-after-free condition that can be manipulated to redirect control flow.