CVE-2026-136155
HIGH 8.8CVSS 3.1Valkey: Use-after-free of the Lua interpreter state through the script debugger's command cache
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.
- Published
- 24 Nov 2026
- Last modified
- 1 Dec 2026
- Assigned by
- 7fefd608-56a6-419f-a002-fd8543c0710a
- NVD status
- Awaiting Analysis
- Weakness
- CWE-416
- Sources
- NVDJSONCVE ListJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 7fefd608-56a6-419f-a002-fd8543c0710a (Secondary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CVE List | Akrites | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CVE List | CISA-ADP | SSVC | Exploitation: none; Automatable: no; Technical Impact: total |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | Valkey | Valkey | >= 9.1.0, < 9.1.2 | 9.1.2 |
References
- https://github.com/valkey-io/valkey/pull/4574
- https://github.com/valkey-io/valkey/security/advisories/GHSA-fq2f-crmw-q97r
History
- 1 Dec 2026 20:28 UTC · CVE List: updated (other details)
- 1 Dec 2026 20:28 UTC · NVD: updated (other details)
- 1 Dec 2026 05:40 UTC · CVE List: updated (other details)
- 1 Dec 2026 05:40 UTC · NVD: updated (other details)
- 25 Nov 2026 20:36 UTC · CVE List: first stored (published 24 Nov 2026)
- 25 Nov 2026 20:11 UTC · NVD: first stored (published 24 Nov 2026)