All vulnerabilities

Servers and applications

CVE-2026-136155

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

Severity
High 8.8
Published
24 Nov 2026
Last changed
24 Nov 2026
Added to UpHeron
24 Nov 2026
Fixed in
9.1.2
Weakness
Use after free (CWE-416)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Sources
CVE Program

Description

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.

From the CVE Program.

Affected software

SoftwareAffected versions
ValkeyServers and applications · cna:valkey|valkey
  • From 9.1.0 before 9.1.2

About Valkey

NoSQL database management software forked from Redis

From Wikidata, CC0 1.0.
Developers who used it in the past year
2.4%Stack Overflow Developer Survey 2025, 2025
Docker Hub pulls
421,606,403Docker Hub, 22 Nov 2026
GitHub stars
27,817GitHub, 22 Nov 2026
Forks
1,481GitHub, 22 Nov 2026
Latest release
9.2.0GitHub, 22 Nov 2026
Released
19 Nov 2026GitHub
License
3-clause BSD LicenseWikidata
Written in
CWikidata
First released
28 Mar 2024Wikidata
First published on GitHub
22 Mar 2024GitHub

Release lines

ReleaseLatestSecurity fixes
9.29.2.0Until 19 Nov 2031
9.19.1.4Until 19 May 2031
9.09.0.8Until 21 Oct 2028
8.18.1.12Until 31 Mar 2030
8.08.0.13Until 15 Sept 2027
7.27.2.16Until 16 Apr 2029

From endoflife.date.

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-136155