CVE-2026-136155
JSON

8.8high

Valkey: Use-after-free of the Lua interpreter state through the script debugger's command cache

Severity
8.8high CVSS:3.1 by Akrites
Exploit likelihood
0.95% (higher than 62% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Akrites

Description

In Valkey 9.1.0 and 9.1.1, the Lua script debugger builds its command table once and caches it with a pointer to the Lua interpreter state that was current at the time. SCRIPT FLUSH ASYNC recreates the scripting engine and frees the previous interpreter state without invalidating that cache, so the next debugger command dereferences freed memory. An authenticated user who can run scripting commands can use this to reliably crash the server, and by reclaiming the freed heap chunk with attacker-controlled bytes can escalate it to control of an indirect call, which may lead to remote code execution. The fix also addresses a second use-after-free in ldbLogStackValue. Valkey 8.0.x and 8.1.x use the previous debugger and are not affected.

Affected

Product or packageVersionsReported by
Valkey Valkeyfrom 9.1.0 before 9.1.2CVE List

Classification

CWE-416

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-136155 changed 2026-12-01CVE Terms of Use
NVDCVE-2026-136155 changed 2026-12-01Public domain