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

- Priority: **Routine**
- Reason: Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-24 · Modified: 2026-12-01
- Aliases: UBUNTU-CVE-2026-136155, DEBIAN-CVE-2026-136155
- Record: https://cvemate.com/vulnerability/CVE-2026-136155 · JSON: https://cvemate.com/vulnerability/CVE-2026-136155/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.948%, percentile 62.386%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian valkey (Debian): All versions (No fix recorded) \| \< 9.1.2-1
- ubuntu valkey (Ubuntu): All versions (No fix recorded)
- valkey valkey: ≥ 9.1.0, \< 9.1.2

## References

- <https://github.com/valkey-io/valkey/security/advisories/GHSA-fq2f-crmw-q97r>
- <https://github.com/valkey-io/valkey/pull/4574>
- <https://ubuntu.com/security/CVE-2026-136155>
- <https://www.cve.org/CVERecord?id=CVE-2026-136155>
- <https://security-tracker.debian.org/tracker/CVE-2026-136155>

---

Data as of 2026-12-05T04:41:40.973Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
