PT-2026-158295

CVE-2026-136158

·

Published

2026-11-24

·

Updated

2026-11-24

Description by

CVSS 3.1
8.8
High
MetricsAV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Valkey JSON versions 1.0.0 through 1.0.2
Description A flaw exists when using recursive JSONPath expressions, such as $..*, which return both an array and its nested elements. When size-changing mutators—specifically the functions JSON.ARRAPPEND(), JSON.ARRINSERT(), JSON.ARRPOP(), JSON.ARRTRIM(), and JSON.CLEAR()—are used, the system processes the ancestor element first. This process can trigger a reallocation of the element buffer and free the old storage while descendant entries in the result set still reference that memory. Consequently, the module writes through these dangling pointers. An authenticated user with permission to execute these commands can cause a server crash or achieve remote code execution with the privileges of the server user.
Recommendations Update Valkey JSON to a version later than 1.0.2. As a temporary mitigation, restrict the use of the JSON.ARRAPPEND(), JSON.ARRINSERT(), JSON.ARRPOP(), JSON.ARRTRIM(), and JSON.CLEAR() functions when combined with recursive JSONPath expressions.
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Weakness enumeration
Related identifiers
GHSA-Q7RF-74QM-HR9G
Found an issue in the description? Have something to add? Feel free to write us 👾