Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.
Summary
CVE-2026-136158: high-severity vulnerability (CVSS 8.8) in Valkey Valkey JSON.
What happened
Original description from the source: 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.
Why it matters
High severity, CVSS 8.8.
Affected products and versions
Valkey Valkey JSON >= 1.0.0, < 1.0.3
| Product | Versions | Fixed in |
|---|---|---|
| Valkey Valkey JSON | >= 1.0.0, < 1.0.3 | — |
Action recommended by the source
See the official references for the fix or mitigation.
Sources and references
- https://github.com/valkey-io/valkey-json/security/advisories/GHSA-q7rf-74qm-hr9g — CVE Program
- https://github.com/valkey-io/valkey-json/pull/118 — CVE Program
- https://github.com/valkey-io/valkey-json/pull/120 — CVE Program
Weaknesses (CWE): CWE-416
Relevant change history
Published
Preliminary advisory published.