Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with scripting-command privileges
-
DeliveryStart Lua script debugger session
-
ExploitRun SCRIPT FLUSH ASYNC to free interpreter state
-
ExecutionReclaim freed heap chunk with crafted bytes
-
PersistIssue debugger command dereferencing dangling pointer
-
ImpactHijack allocator indirect call for code execution
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires an authenticated account whose Valkey ACL permits scripting commands - specifically the ability to invoke the Lua script debugger (SCRIPT DEBUG) and SCRIPT FLUSH ASYNC - and the target must run the module-based Lua scripting engine introduced in the 9.x line (only 9.1.0 and 9.1.1). The reliable-crash primitive needs only the debugger-then-SCRIPT FLUSH ASYNC-then-debugger-command sequence; escalation to code execution additionally requires heap grooming to reclaim the freed chunk with attacker-controlled bytes and shape a counterfeit interpreter state. Limiting factors: 8.0.x/8.1.x deployments are not vulnerable, scripting-command privilege is required (not default for unprivileged or read-only accounts), and the vendor-stated mitigation is restricting the SCRIPT command - in particular SCRIPT DEBUG - via ACLs where the application does not need the debugger; the vendor indicates upgrading to 9.1.2 is the complete fix. |
| Impact | This is a genuine, actionable priority rather than an inflated high-CVSS score. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N) describes network-reachable, low-complexity exploitation by a low-privileged but authenticated principal, and C:H/I:H/A:H reflects both a reliable denial of service and a plausible path to code execution. The vendor confirms the crash primitive is reliable and that the freed chunk lives on the ordinary allocator heap, making heap reclaim with attacker-controlled bytes feasible; however, the vendor's own wording ('may lead to remote code execution') marks RCE as a demonstrated-plausible escalation, not a proven end-to-end exploit. The vuln.today Decision label is 'this_week' (not act_now/emergency). No KEV listing and no EPSS score were provided in the input, so there is no signal of active or widespread exploitation - the realistic near-term risk is reliable server crashes by any account that can run scripting commands, with RCE as a credible but unproven ceiling. One conflict must be flagged: the GHSA advisory title calls this 'Unauthenticated', while the CVE description ('An authenticated user who can run scripting commands') and the CVSS vector (PR:L) both indicate authentication is required - treat the flaw as authenticated per the CVSS/description and verify the 'unauthenticated' claim with the vendor. |
| Exploit ScenarioDerived | An authenticated user whose ACL permits scripting commands starts a Lua script debugger session, then issues SCRIPT FLUSH ASYNC, which recreates the scripting engine and frees the prior Lua interpreter state while the debugger's cached command table still points at it. The attacker then sends any debugger command, which dereferences the dangling pointer to crash the server; by first reclaiming the freed heap chunk with crafted bytes shaped into a counterfeit interpreter state, the attacker can steer an allocator function pointer to hijack an indirect call. No public, verified working exploit code is identified in the provided sources - only the vendor advisory and the fix PR. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 24, 2026
Use-after-free in Valkey 9.1.0 and 9.1.1's module-based Lua scripting engine lets an authenticated user whose ACL permits scripting commands reliably crash the server and, with heap grooming, potentially hijack an indirect call for code execution. The debugger builds its command table once and caches it with a pointer to the then-current Lua interpreter state, and SCRIPT FLUSH ASYNC frees that state on the lazyfree thread without invalidating the cache, so the next SCRIPT DEBUG command dereferences freed memory. No public exploit code or active exploitation has been identified at time of analysis; the vendor fixed this and a second use-after-free in ldbLogStackValue in 9.1.2, and the 8.0.x/8.1.x lines are not affected.
RemediationAI
Vendor-released patch: upgrade to Valkey 9.1.2, which is the complete fix per the vendor and also resolves the secondary use-after-free in ldbLogStackValue; the fix is delivered via https://github.com/valkey-io/valkey/pull/4574 and documented in https://github.com/valkey-io/valkey/security/advisories/GHSA-fq2f-crmw-q97r. If an immediate upgrade is not possible, the vendor-stated mitigation is to use Valkey ACLs to restrict the SCRIPT command, in particular SCRIPT DEBUG, for accounts and applications that do not intend to use the script debugger - the trade-off is that script debugging (and, if SCRIPT is restricted broadly, script execution such as EVAL/EVALSHA) becomes unavailable to those users, so scope the restriction to the debugger subcommand where possible. Note that deployments on 8.0.x/8.1.x need no action for this CVE because they do not use the affected module-based debugger.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Valkey's Lua scripting was moved into a Valkey module in the 9.x line, which introduced the vulnerable ownership model in src/modules/lua/debug_lua.c. ldbGenerateDebuggerCommandsArray builds the interactive debugger command table once and stores it in a file-scope static, binding the current lua_State pointer into each command descriptor's context field; the table is never rebuilt or invalidated. SCRIPT FLUSH ASYNC recreates the scripting engine, allocating the replacement interpreter state before freeing the previous one on the lazyfree thread, so the cached descriptors keep a dangling reference to a freed chunk. Every subsequent debugger command dereferences that pointer. Because the chunk is ordinary allocator heap, it can be reclaimed with attacker-controlled bytes and shaped into a counterfeit lua_State whose embedded allocator function pointer is invoked on the interpreter's next allocation, converting a deterministic crash into indirect-call control. The root cause is CWE-416 (use-after-free); the same patch fixes a related second use-after-free in ldbLogStackValue, where the logged module string was freed while the debugger log list still held a reference, and adjusts string ownership (msg ownership transferred to the debugger log). Deployment mode matters: only the module-based 9.x engine (confirmed for 9.1.0 and 9.1.1) contains this code path; 8.0.x and 8.1.x use the previous non-module debugger and are unaffected, though that is based on the vendor's statement rather than a per-branch code audit in the supplied data.
Know when Valkey gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Network-reachable scripting command requires a low-privileged authenticated account (PR:L), triggering a reliable crash (A:H) with vendor-credible memory-corruption path to code execution (C:H/I:H).
Primary rating from Vendor (Akrites).
CVSS VectorVendor: Akrites
Lifecycle Timeline
2DescriptionCVE.org
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.
Technical POC Analysis
CWE-416 (use-after-free).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A high-severity use-after-free vulnerability in Valkey 9.1.0 and 9.1.1's Lua scripting debugger allows an authenticated user with scripting permissions to crash the server and potentially achieve code execution via heap grooming. This puts availability and data integrity at risk for organizations using these versions, although no active exploitation has been observed. Leadership should prioritize patching to prevent service disruptions and potential compromise.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
UAF in Redis 8.2.1 via crafted Lua scripts by authenticated users. EPSS 12.4%. Patch available.
Out-of-bounds read in Valkey's cluster slot-migration RDB loader allows a network-positioned attacker to crash affected
Use-after-free in Valkey's RESTORE command allows a low-privileged remote attacker to potentially execute arbitrary code
Use-after-free in the Valkey JSON module (1.0.0 through 1.0.2, including valkey-bundle distributions that ship it) lets
Heap buffer overflow in Valkey's cluster bus publish path allows an authenticated user who can issue PUBLISH or SPUBLISH
Use-after-free in Valkey's TLS connection handler allows an authenticated remote attacker to crash the server or potenti
Use-after-free in Valkey's client-eviction path allows an authenticated user to reliably crash the server process. The a
Redis is an open source, in-memory database that persists on disk. Rated high severity (CVSS 7.5), this vulnerability is
Denial of service in Valkey 9.0.0 through 9.0.2 allows unauthenticated network attackers to crash the server by exploiti
Out-of-bounds read in Valkey clusterbus port processing allows network-adjacent attackers to crash affected systems by s
Use-after-free in Valkey's RDMA transport lets an authenticated user crash the server process reliably by running a comm
Response-stream injection in Valkey (the Redis fork) lets an authenticated user abuse Lua scripting commands to smuggle
EUVD-2026-134076
GHSA-89j7-2m74-w72r
NVD
CVE.org
EPSS
Exploit-DB