Skip to main content

Valkey JSON CVE-2026-136158

| EUVDEUVD-2026-134079 HIGH
Use After Free (CWE-416)
2026-11-24 Akrites GHSA-325c-q6c5-jgmj
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 JSON command ACL
  2. Delivery
    Send mutator with recursive JSONPath $..*
  3. Exploit
    Ancestor reallocation frees buffer (use-after-free)
  4. Execution
    Write through dangling descendant pointers
  5. Persist
    Reclaim freed chunk, forge array header
  6. Impact
    Overwrite allocator callback 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

Exploitation requires: (1) the Valkey JSON module to be loaded - servers that do not load it, including via valkey-bundle without the module, are explicitly NOT affected; (2) an authenticated user (CVSS PR:L) whose ACL permits at least one size-changing mutator - JSON.ARRAPPEND, JSON.ARRINSERT, JSON.ARRPOP, JSON.ARRTRIM, or JSON.CLEAR; and (3) the ability to supply a recursive JSONPath expression such as $..* that returns both an ancestor array and its nested descendants. Applications that pass user-controlled JSONPath expressions into these commands are the most exposed. Limiting factors that reduce realistic risk: the module must be explicitly loaded; valid credentials with the relevant command permissions are needed (not remote-unauthenticated); and restricting these commands via Valkey ACLs, or confining paths to non-recursive expressions, avoids the defect. The reliable-RCE path additionally depends on heap grooming to reclaim the freed chunk with attacker-controlled bytes, as described by the vendor.

Impact

This is a genuine high-priority issue rather than an inflated CVSS score. The signals are internally consistent and point to a serious, exploitable memory-corruption flaw. The provided CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H = 8.8) aligns with the mechanism described: a use-after-free (CWE-416) in recursive JSONPath mutation that is network-reachable, low-complexity, and requires only a low-privileged authenticated account with permission to run the affected commands. The vuln.today decision label is 'this_week', and the vendor's own 00-RELEASENOTES marks 1.0.3 as 'SECURITY: apply as soon as possible', reinforcing near-term urgency without claiming it is an emergency. No EPSS score and no KEV status were supplied; therefore this is NOT confirmed as actively exploited in the wild - treat exploitation as not-yet-observed, not disproven. The strongest escalating signal is that the GHSA advisory states the bug was 'developed into remote code execution' and that reporter Joao Teles 'supplied the full exploitation chain' used to overwrite the module's allocator callback on an official valkey-bundle image; however, that chain is described as privately reported, and no public exploit code or PoC reference appears in the input, so public weaponization is not established. The main factor tempering real-world risk is the PR:L precondition: the attacker must already hold a Valkey account with ACL rights to the mutating JSON commands. Net: credible, reliably-triggerable crash plus demonstrated (private) RCE on a module that must be explicitly loaded - prioritize patching within the week, especially where untrusted users or user-controlled JSONPath reach these commands.

Exploit ScenarioDerived

An authenticated Valkey user whose ACL permits JSON mutating commands sends a size-changing mutator (e.g. JSON.ARRAPPEND, JSON.ARRINSERT, JSON.ARRPOP, JSON.ARRTRIM or JSON.CLEAR) with a recursive JSONPath such as $..*; the module mutates the parent array first, reallocating and freeing its element buffer while descendant entries in the same result set still point into it, then writes through the dangling pointers. This reliably crashes the server (DoS) and, per the vendor advisory, was developed into native code execution by reclaiming the freed chunk with attacker-controlled bytes and overwriting the allocator callback. No public exploit code is identified in the provided data, though the private reporter supplied a full working exploitation chain against an official valkey-bundle image.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 1.2% 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 the Valkey JSON module (1.0.0 through 1.0.2, including valkey-bundle distributions that ship it) lets an authenticated user whose ACL permits a size-changing mutator reliably crash the server, and the vendor advisory states the crash has been developed into remote code execution running as the user the server process runs as. The CVSS vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) matches the advisory prerequisites: the module must be explicitly loaded and valid credentials with the relevant command permissions are required, so exposure is limited to deployments that load Valkey JSON and accept user-controlled JSONPath. The vendor advisory reports a full exploitation chain built by the reporter, including heap shaping on an official valkey-bundle image; no CISA KEV listing or confirmed public exploit release is noted in the available data, and the priority signal is this_week rather than act_now.

RemediationAI

Vendor-released patch: Valkey JSON 1.0.3 (released Mon 31 August 2026, upgrade urgency SECURITY per the 00-RELEASENOTES), which orders matched nodes deepest-first and rewrites the array mutators to avoid the dangling ancestor buffer; upgrade any deployment running 1.0.0, 1.0.1 or 1.0.2, including valkey-bundle images that bundle the module, and consult https://github.com/valkey-io/valkey-json/security/advisories/GHSA-q7rf-74qm-hr9g plus the fix PRs https://github.com/valkey-io/valkey-json/pull/120 and https://github.com/valkey-io/valkey-json/pull/118. If upgrading cannot be done immediately, the vendor-documented mitigation is to use Valkey ACLs to deny the mutating commands JSON.ARRAPPEND, JSON.ARRINSERT, JSON.ARRPOP, JSON.ARRTRIM and JSON.CLEAR where the application does not intend to use them - the trade-off is that legitimate array-mutation features stop working for those users - and to confine JSONPath input to non-recursive expressions, since applications that pass user-controlled JSONPath into these commands are the most exposed; servers that do not load the JSON module are not affected and do not need action for this issue. The advisory describes the crash as reliable and the RCE path as already developed, so treat heap-grooming-dependent code execution as a realistic outcome rather than a theoretical one when deciding how quickly to patch.

Affected VersionsENISA

Valkey JSON 1.0.0 <1.0.3

Affected Packages

euvd valkey_json fix: 1.0.3

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

The defect is a CWE-416 use-after-free rooted in how Valkey JSON represents JSONPath results. Selector::eval in src/json/selector.cc stores every match as a raw JValue* pointer, and getUniqueResultSet deduplicates those pointers without removing ancestor/descendant overlap or stabilising them, so a recursive expression such as $..* yields both a parent array and the elements nested inside it. The size-changing mutators in src/json/dom.cc (JSON.ARRAPPEND, JSON.ARRINSERT, JSON.ARRPOP, JSON.ARRTRIM and JSON.CLEAR) iterate that result set in document order, hitting the ancestor first; RapidJSON's Reserve()/PushBack() reallocates the parent's element buffer and frees the old storage while descendant entries in the result set still point into it, and the loop then writes through those dangling pointers. JSON.CLEAR additionally reaches a second destruction path that frees storage the ancestor's clear already released. Because the freed chunk is a small ordinary heap allocation, it can be reclaimed with attacker-controlled bytes and shaped into a counterfeit array header, converting the stale write into a write to an attacker-selected address; the advisory describes using that to overwrite the module's allocator callback and obtain native code execution on an official valkey-bundle image. The trigger requires a recursive path that produces overlapping ancestor/descendant matches; the trigger conditions for non-recursive paths are not described in the available sources. The upstream fix (GHSA-q7rf-74qm-hr9g, PR #120, with related changes in PR #118) orders matched nodes deepest-first so a parent's element buffer is never reallocated before its descendants are consumed, and rewrites the array mutators to write results by index into a pre-sized vector so replies keep document order.

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 command interface (AV:N), deterministic trigger via recursive path (AC:L), requires an authenticated account with command ACL (PR:L), no user interaction; UAF yields crash and demonstrated RCE, so C/I/A all High.

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

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 JSON 1.0.0 through 1.0.2, a recursive JSONPath expression such as $..* returns both an array and elements nested inside it. The size-changing mutators (JSON.ARRAPPEND, JSON.ARRINSERT, JSON.ARRPOP, JSON.ARRTRIM and JSON.CLEAR) process the ancestor first, which can reallocate its element buffer and free the old storage while the descendant entries in the result set still point into it; the module then writes through those dangling pointers. An authenticated user who can run these commands can use this to reliably crash the server, and it has been developed into remote code execution as the user the server runs as. Servers that do not load the JSON module, including through valkey-bundle, are not affected.

Technical POC Analysis

CWE-416 (Use After Free) in the Valkey JSON module, in the JSONPath selector and the DOM mutators.

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 critical use-after-free vulnerability in the Valkey JSON module (versions 1.0.0-1.0.2) enables authenticated users with specific ACL permissions to crash the server and potentially execute remote code as the server process user. This threatens any deployment using Valkey JSON, including valkey-bundle distributions, and could lead to data breaches or service disruption. Leadership must prioritize remediation due to high impact on confidentiality, integrity, and availability.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include disabling the Valkey JSON module if not required, restricting ACL permissions to prevent untrusted users from executing size-changing mutators, implementing network segmentation and monitoring for anomalous crashes or activity.

Threat Intelligence Overview

EPSS Score
1.2%
Top 33% exploitable
Prevalence
Medium
optional JSON module for Valkey; not loaded by default, growing Redis-fork ecosystem
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 1.2%
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-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-136155 HIGH
8.8 Nov 24

Use-after-free in Valkey 9.1.0 and 9.1.1's module-based Lua scripting engine lets an authenticated user whose ACL permit

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

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