Vulnerability 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.
CVSS Score
HIGH
Related Weaknesses (CWE)
References
- https://github.com/valkey-io/valkey/pull/4574
- https://github.com/valkey-io/valkey/security/advisories/GHSA-fq2f-crmw-q97r
FAQ
What is CVE-2026-136155?
CVE-2026-136155 is a vulnerability with a CVSS score of 8.8 (HIGH). 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 th...
How severe is CVE-2026-136155?
CVE-2026-136155 has been rated HIGH with a CVSS base score of 8.8/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-136155?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.