Valkey 9.1 moved its Lua script debugger into a module, and the new debugger builds its command table once, caching a pointer to the Lua interpreter state that was current at the time. SCRIPT FLUSH ASYNC recreates the scripting engine and frees that interpreter state without clearing the cache, so the next debugger command dereferences freed memory. An authenticated client allowed to run scripting commands can crash the server reliably with that sequence, and by refilling the freed heap chunk with chosen bytes can turn it into control of an indirect call, which the advisory says may lead to remote code execution. Only 9.1.0 and 9.1.1 are affected. Upgrade Valkey to 9.1.2 or later (9.1.3 also closes the sibling CVE-2026-136156); until then, use ACLs to keep SCRIPT, and SCRIPT DEBUG in particular, away from clients that do not need the debugger. Valkey 8.x, 7.2 and Redis use the previous debugger and are not affected by this one.
CVE-2026-136155 at a glance.
| Component | Valkey, the 9.1 Lua script debugger module (src/modules/lua/debug_lua.c and friends) and its interaction with SCRIPT FLUSH ASYNC; the upstream tarball, the official valkey and valkey-bundle images, and Debian’s valkey package |
| Affected versions | Valkey 9.1.0 and 9.1.1 only. 8.0.x and 8.1.x “use the previous debugger and are not affected”; the Debian tracker’s vulnerable mark on trixie’s 8.1.1 contradicts the advisory and NVD, which is noted in the table below |
| Fixed in | Valkey 9.1.2 (pull request #4574 “Fix script debugger uaf”, merged 31 August 2026, merge commit 7be7d564, touching src/module.c, src/modules/lua/debug_lua.c, debug_lua.h, engine_lua.c, src/scripting_engine.c and src/valkeymodule.h); the fix also closes a second use-after-free in ldbLogStackValue. Distribution packages below |
| Severity | Valkey (Akrites CNA) CVSS 3.1 8.8 High (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H); NVD Awaiting Analysis, same vector. Red Hat Important, 8.8 (draft, CWE-825). CWE-416, use after free. The GitHub advisory’s title says “unauthenticated”, but its body, the CVE record and the vector all require a logged-in client that can run scripting commands |
| Exploited in the wild | Not on CISA’s Known Exploited Vulnerabilities list as of 30 November 2026. EPSS 0.0095 (60th percentile) on 30 November 2026 |
| Who is exposed | Valkey 9.1.0 or 9.1.1 servers whose clients are not all trusted: anything reachable with the default user and no password, multi-tenant instances, and application accounts with the default “all commands” ACL. The attacker needs a connection that may run SCRIPT. Servers on 8.x or 7.2, servers with ACLs that deny @scripting or SCRIPT to untrusted users, and servers reachable only by trusted application code are not usefully attackable |
| Published | CVE record 24 November 2026; GitHub advisory GHSA-fq2f-crmw-q97r 31 August 2026 (credit Trung Nguyen and Phuc Nguyen Dinh of CyStack and Han Sang-Kyung, independently; fix by Bara’ Hasheesh); this page built 30 November 2026, last updated 30 November 2026 |
What it is
Valkey’s Lua debugger lets a client step through a script with SCRIPT DEBUG. In 9.1 the scripting engine became pluggable and the Lua debugger moved into the Lua engine module. When the debugger first runs it builds a table of its commands, and that table caches a pointer to the Lua interpreter state. SCRIPT FLUSH ASYNC throws the whole scripting engine away and builds a new one, freeing the old interpreter state, but nothing told the debugger’s cache. The next debugger command walks the cached table into the freed state. The advisory describes the escalation path plainly: a reliable crash on its own, and if the attacker reclaims the freed chunk with bytes of their choosing before the dereference, control of an indirect call inside the server process.
The fix invalidates the cache when the engine is recreated and repairs a second use-after-free in ldbLogStackValue, the function that prints Lua stack values in the debugger’s log, found during the same work. It shipped in 9.1.2; the 9.1.3 release of 26 October 2026 adds the fix for the cluster publish overflow, CVE-2026-136156, so a 9.1 server that is up to date is past both. The CVE for this debugger bug was only assigned on 24 November, which is why it arrives on the feeds almost three months after the GitHub advisory.
Who can send the commands is the whole question. Valkey’s model is that an authenticated client can do what its ACL allows, and the default user allows everything; a server that still runs that way, with a password or without one, hands every connected client the scripting commands this bug needs. The project’s workaround is exactly the ACL change you would want anyway: deny SCRIPT (at least SCRIPT DEBUG) to users who do not debug scripts, which on a production server is everyone.
Who is affected on Linux
Each row is what the distribution’s own security tracker said on 30 November 2026; the link in the row is the tracker page, which will be newer than this one. Most Valkey 9.1 on Linux is the upstream tarball or the official image, because the distribution packages are still on 8.x.
| Distribution | Status | Fixed package |
|---|---|---|
| Debian trixie, forky, sid | trixie marked vulnerable by the tracker; forky and sid fixed | trixie valkey 8.1.1+dfsg1-3+deb13u3 is marked vulnerable, but it is an 8.1 build and the advisory and NVD say 8.1.x does not carry the new debugger; forky and sid 9.1.4-1 fixed (unstable fixed version 9.1.2-1); no DSA |
| Ubuntu 24.04 to 26.04 | Tracker unreachable on 30 November 2026 | Ubuntu’s CVE page refused automated readers when this page was built; Ubuntu’s valkey package is Debian’s 8.x line, which the advisory does not list as affected |
| RHEL, Hardened Images | Important (8.8); only the Hardened Images valkey listed affected | no RHEL 8, 9 or 10 row, no erratum on 30 November (RHEL’s valkey is 8.x); Red Hat’s mitigation: firewall the port and set ACL -@scripting or -script for untrusted users |
| SUSE, Fedora, Arch, Alpine | Not consulted | Alpine’s tracker refused automated readers; SUSE, Fedora and Arch not read for this CVE |
Upstream tarball, official valkey and valkey-bundle images, Helm charts, Bitnami | Affected at 9.1.0 and 9.1.1 | Valkey 9.1.2 or later; 9.1.3 (26 October 2026) or 9.1.4 also carry the cluster publish fix |
How to check
Three questions: is this 9.1.0 or 9.1.1, which users may run SCRIPT, and who can connect. The first clears every 8.x and 7.2 server.
# 1. the version: affected 9.1.0 and 9.1.1 only
valkey-cli INFO server | grep -E '^(valkey_version|redis_version)'
valkey-server --version 2>/dev/null
docker ps --format '{{.Names}} {{.Image}}' 2>/dev/null | grep -i valkey
# 2. who may run scripting commands: look for users whose rules include +@all, +@scripting or +script
valkey-cli ACL LIST
valkey-cli ACL CAT scripting | head # the commands the @scripting category covers
# 3. who can connect: a password-less default user on a reachable port is the worst case
valkey-cli CONFIG GET requirepass; valkey-cli CONFIG GET bind; valkey-cli CONFIG GET protected-mode
ss -ltnp | grep -E ':6379\b'Anything other than 9.1.0 or 9.1.1 means you are done with this CVE (the sibling pages cover 8.x and 7.2 for the other two). A 9.1.0 or 9.1.1 server whose only clients are your own application, connecting as a user that cannot run SCRIPT, is a patching chore. One where the default user is enabled with +@all and the port is reachable by anyone you would not hand a shell to is the vulnerable configuration.
How to fix it
Upgrade to 9.1.2 or later and restart the server; the running process keeps the old code until it is replaced, and a replica can be promoted while each node restarts.
# Debian forky/sid have 9.1.4; stable packages are 8.x and not affected by this one
apt update && apt install --only-upgrade valkey-server
# upstream / container: move to 9.1.3 or 9.1.4 (also closes CVE-2026-136156)
docker pull valkey/valkey:9.1 && docker compose up -d --force-recreate
systemctl restart valkey-server 2>/dev/null || systemctl restart valkey
valkey-cli INFO server | grep -E '^valkey_version' # must show 9.1.2 or laterIf you cannot upgrade yet, take the debugger away from everyone who does not need it, which is the project’s workaround and good practice regardless. Do not count a password on its own as the mitigation: the attacker in this CVE is already logged in. And do not disable SCRIPT FLUSH alone as a clever alternative; the advisory’s workaround is the ACL on SCRIPT, and removing one trigger of a stale cache is not the same as removing the cache.
# mitigation: no scripting for the application user, and no SCRIPT DEBUG for anyone but an admin user
valkey-cli ACL SETUSER appuser -@scripting
valkey-cli ACL SETUSER default -script
valkey-cli ACL SAVE 2>/dev/null || echo "ACL SAVE needs aclfile set; copy the rules into valkey.conf instead"
valkey-cli ACL GETUSER appuser | grep -A1 commandsSources
- CVE-2026-136155 at CVE.org — the Akrites (Valkey) CNA record (24 November 2026): the description, CVSS 3.1 8.8, CWE-416, the affected range, the workaround and the credits
- GHSA-fq2f-crmw-q97r — the project’s advisory of 31 August 2026, and pull request #4574 “Fix script debugger uaf”, merged the same day
- Valkey releases — 9.1.3 of 26 October 2026 and its security notes (the 9.1.2 notes were past the readable part of the page)
- NVD entry — Awaiting Analysis; the CNA’s 8.8
- Distribution trackers: Debian · Ubuntu (unreachable on 30 November) · Red Hat (Important, 8.8, the ACL mitigation)
- EPSS score for this CVE, 30 November 2026
Related reading
- CVE-2026-136156: Valkey cluster PUBLISH overflows the heap on messages over 4 GiB — the sibling from the same 24 November set, affecting every branch in cluster mode
- CVE-2026-136158: Valkey JSON array commands write through freed memory on a recursive JSONPath — the third sibling, in the JSON module shipped by valkey-bundle
- Hardening a Public-Facing Service Beyond the Basics — ACLs and a bound address are the two settings that make this and the next Valkey bug someone else’s problem
- Memory, All the Way Down: From malloc to the OOM Killer — what “reclaiming the freed chunk” means and why a use-after-free becomes code execution
- The Half of Patching That Happens After the Patch is Installed — a running valkey-server keeps the old code until it is restarted
This advisory page was assembled from the primary sources listed above on 30 November 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.

