CVE-2026-136155
CVE-2026-136155 · Valkey: Use-after-free of the Lua interpreter state through the script debugger's command cache
CVSS 8.8 · High · EPSS 0.9% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- valkeyUpdate to 9.1.2
- valkey Debian 13No fix published
- valkey Debian 14Update to 9.1.2-1
- valkey Ubuntu Pro 24.04 LTSNo fix published
- and 2 more
Check the installed version:
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="valkey"'Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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
- Updated
Fixes in distributions
- RHSA-2026:103160 · Red Hat hummingbird 1 ·
Affected products and versions
valkey
- Versions
- ≥ 9.1.0, < 9.1.2: Affected (semver)
Update to 9.1.2
valkey Debian 13
- Versions
- 8.1.1+dfsg1-3
- 8.1.1+dfsg1-3+deb13u1
- 8.1.1+dfsg1-3+deb13u2
- 8.1.1+dfsg1-3+deb13u3
- 8.1.4+dfsg1-1
- 8.1.4+dfsg1-2
All versions (10)
- 9.1.1-1
- 9.1.2-1
- 9.1.3-1
- 9.1.4-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
valkey Debian 14
- Versions
- 8.1.1+dfsg1-3
- 8.1.4+dfsg1-1
- 8.1.4+dfsg1-2
- 9.1.1-1
- Affected ranges
- ECOSYSTEM: < 9.1.2-1
Update to 9.1.2-1
valkey Ubuntu Pro 24.04 LTS
- Versions
- 7.2.5+dfsg1-2ubuntu4~24.04.1
- 7.2.7+dfsg1-0ubuntu0.24.04.1
- 7.2.8+dfsg1-0ubuntu0.24.04.1
- 7.2.8+dfsg1-0ubuntu0.24.04.2
- 7.2.8+dfsg1-0ubuntu0.24.04.3
- 7.2.10+dfsg1-0ubuntu0.1
All versions (12)
- 7.2.11+dfsg1-0ubuntu0.1
- 7.2.11+dfsg1-0ubuntu0.2
- 7.2.12+dfsg1-0ubuntu0.1
- 7.2.13+dfsg1-0ubuntu0.1
- 7.2.13+dfsg1-0ubuntu0.1+esm1
- 7.2.14+dfsg1-0ubuntu0.1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
valkey Ubuntu 26.10
- Versions
- 9.0.3-0ubuntu2
- 9.0.4-0ubuntu1
- 9.1.1-0ubuntu2
- 9.1.2-0ubuntu1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
valkey Ubuntu 26.04 LTS
- Versions
- 8.1.3+dfsg1-0ubuntu2
- 8.1.4+dfsg1-0ubuntu1
- 9.0.2-0ubuntu1
- 9.0.3-0ubuntu1
- 9.0.3-0ubuntu2
- 9.0.4-0ubuntu0.1
All versions (8)
- 9.0.4-0ubuntu0.2
- 9.0.6-0ubuntu0.1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published