Use-after-free in Valkey - #VU146568

 

Use-after-free in Valkey - #VU146568

Published: September 1, 2026


Vulnerability identifier: #VU146568
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-416
Exploitation vector: Remote access
Exploit availability: No public exploit available

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.


Affected software

Valkey

Remediation

Install security update from vendor's website.

Valkey - update to 9.1.2

External References

Related Security Bulletins