Vulnerability 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.
CVSS Score
HIGH
Related Weaknesses (CWE)
References
- https://github.com/valkey-io/valkey-json/pull/118
- https://github.com/valkey-io/valkey-json/pull/120
- https://github.com/valkey-io/valkey-json/security/advisories/GHSA-q7rf-74qm-hr9g
FAQ
What is CVE-2026-136158?
CVE-2026-136158 is a vulnerability with a CVSS score of 8.8 (HIGH). 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.A...
How severe is CVE-2026-136158?
CVE-2026-136158 has been rated HIGH with a CVSS base score of 8.8/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-136158?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.