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

- Severity: High 8.8 (CVSS:3.1, scored by Akrites) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.95%, higher than 62% of CVEs (2026-12-01)
- Published: 2026-11-24T14:06:27.220Z
- Modified: 2026-12-01T20:18:43.980Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- Valkey Valkey: from 9.1.0 before 9.1.2

## References

- <https://github.com/valkey-io/valkey/security/advisories/GHSA-fq2f-crmw-q97r>
- <https://github.com/valkey-io/valkey/pull/4574>

## Sources

- CVE List: [CVE-2026-136155](https://www.cve.org/CVERecord?id=CVE-2026-136155), CVE Terms of Use, modified 2026-12-01
- NVD: [CVE-2026-136155](https://nvd.nist.gov/vuln/detail/CVE-2026-136155), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-136155 · Whole record: https://cve.day/CVE-2026-136155.json · Rebuilt by cve.day 2026-12-01T20:32:22.055Z
