CVE-2026-136158
HIGH 8.8CVSS 3.1Valkey JSON: Use-after-free in array mutation commands through a recursive JSONPath
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.
- Published
- 24 Nov 2026
- Last modified
- 1 Dec 2026
- Assigned by
- 7fefd608-56a6-419f-a002-fd8543c0710a
- NVD status
- Awaiting Analysis
- Weakness
- CWE-416
- Sources
- NVDJSONCVE ListJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 7fefd608-56a6-419f-a002-fd8543c0710a (Secondary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CVE List | Akrites | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CVE List | CISA-ADP | SSVC | Exploitation: none; Automatable: no; Technical Impact: total |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | Valkey | Valkey JSON | >= 1.0.0, < 1.0.3 | 1.0.3 |
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
History
- 1 Dec 2026 20:28 UTC · CVE List: updated (other details)
- 1 Dec 2026 20:28 UTC · NVD: updated (other details)
- 1 Dec 2026 05:40 UTC · CVE List: updated (other details)
- 1 Dec 2026 05:40 UTC · NVD: updated (other details)
- 25 Nov 2026 20:36 UTC · CVE List: first stored (published 24 Nov 2026)
- 25 Nov 2026 20:11 UTC · NVD: first stored (published 24 Nov 2026)