๐Ÿ” CVE Alert

CVE-2026-136155

HIGH 8.8

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

CVSS Score
8.8
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-416
Vendor valkey
Product valkey
Published Nov 24, 2026
Stay Ahead of the Next One

Get instant alerts for valkey valkey

Be the first to know when new high vulnerabilities affecting valkey valkey are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Affected Versions

Valkey / Valkey
9.1.0 < 9.1.2

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/valkey-io/valkey/security/advisories/GHSA-fq2f-crmw-q97r github.com: https://github.com/valkey-io/valkey/pull/4574

Credits

Trung Nguyen of CyStack Phuc Nguyen Dinh of CyStack Han Sang-Kyung Bara' Hasheesh