Skip to main content

Valkey CVE-2026-136155

| EUVDEUVD-2026-134076 HIGH
Use After Free (CWE-416)
2026-11-24 Akrites GHSA-89j7-2m74-w72r
8.8
CVSS 3.1 · Vendor: Akrites
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate with scripting-command privileges
  2. Delivery
    Start Lua script debugger session
  3. Exploit
    Run SCRIPT FLUSH ASYNC to free interpreter state
  4. Execution
    Reclaim freed heap chunk with crafted bytes
  5. Persist
    Issue debugger command dereferencing dangling pointer
  6. Impact
    Hijack 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.9% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Valkey 9.1.0 <9.1.2

Affected Packages

euvd valkey fix: 9.1.2

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

Vendor (Akrites) PRIMARY 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.8 HIGH

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).

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat 8.8 HIGH

Primary rating from Vendor (Akrites).

CVSS VectorVendor: Akrites

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Nov 24, 2026 - 15:03 EUVD
CVE Published
Nov 24, 2026 - 14:06 cve.org
HIGH 8.8

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.9%
Top 40% exploitable
Prevalence
Medium
Popular Redis-fork datastore, but only recent 9.1.x branch affected
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.9%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

45
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

More in Valkey

View all
CVE-2025-49844 CRITICAL POC
9.9 Oct 03

UAF in Redis 8.2.1 via crafted Lua scripts by authenticated users. EPSS 12.4%. Patch available.

CVE-2026-85522 MEDIUM POC
5.5 Sep 04

Out-of-bounds read in Valkey's cluster slot-migration RDB loader allows a network-positioned attacker to crash affected

CVE-2026-63639 HIGH
8.8 Aug 18

Use-after-free in Valkey's RESTORE command allows a low-privileged remote attacker to potentially execute arbitrary code

CVE-2026-136158 HIGH
8.8 Nov 24

Use-after-free in the Valkey JSON module (1.0.0 through 1.0.2, including valkey-bundle distributions that ship it) lets

CVE-2026-136156 HIGH
8.8 Nov 24

Heap buffer overflow in Valkey's cluster bus publish path allows an authenticated user who can issue PUBLISH or SPUBLISH

CVE-2026-56684 HIGH
7.5 Aug 18

Use-after-free in Valkey's TLS connection handler allows an authenticated remote attacker to crash the server or potenti

CVE-2026-130822 HIGH
7.5 Nov 24

Use-after-free in Valkey's client-eviction path allows an authenticated user to reliably crash the server process. The a

CVE-2025-21605 HIGH
7.5 Apr 23

Redis is an open source, in-memory database that persists on disk. Rated high severity (CVSS 7.5), this vulnerability is

CVE-2026-27623 HIGH
7.5 Feb 23

Denial of service in Valkey 9.0.0 through 9.0.2 allows unauthenticated network attackers to crash the server by exploiti

CVE-2026-21863 HIGH
7.5 Feb 23

Out-of-bounds read in Valkey clusterbus port processing allows network-adjacent attackers to crash affected systems by s

CVE-2026-136157 HIGH
7.5 Nov 24

Use-after-free in Valkey's RDMA transport lets an authenticated user crash the server process reliably by running a comm

CVE-2025-67733 HIGH
7.1 Feb 23

Response-stream injection in Valkey (the Redis fork) lets an authenticated user abuse Lua scripting commands to smuggle

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy