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

Tue, 24 Nov 2026 21:15:00 +0000

Type Values Removed Values Added
First Time appeared Valkey
Valkey valkey Json
Vendors & Products Valkey
Valkey valkey Json

Tue, 24 Nov 2026 14:30:00 +0000

Type Values Removed Values Added
Description 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.
Title Valkey JSON: Use-after-free in array mutation commands through a recursive JSONPath
Weaknesses CWE-416
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: Akrites

Published: 2026-11-24T14:06:29.651Z

Updated: 2026-11-24T14:06:29.651Z

Reserved: 2026-11-24T13:53:38.491Z

Link: CVE-2026-136158

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-11-24T15:17:33.913

Modified: 2026-11-24T15:19:53.317

Link: CVE-2026-136158

cve-icon Redhat

No data.