CVE-2026-136158
published high CVSS 3.1 · 8.8Valkey JSON: Use-after-free in array mutation commands through a recursive JSONPath
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Valkey | — | Valkey JSON1.0.0 to < 1.0.3 · Other versions: unaffected | Affected | Not stated | Akrites |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- Akrites · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Valkey | Valkey JSON | 1.0.0 to < 1.0.3 (affected · semver)Default: unaffected | Akrites · cna |
Weaknesses
1- CWE-416 CWE-416 Use After Free
References
3Provider assertions
2Akrites · cna
Valkey JSON: Use-after-free in array mutation commands through a recursive JSONPath
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- ddfb60a53e5101b0e589ef1126e41dc8872085678fabe1cddabd36da3267373c
- Ingested
- 01 Dec 2026, 19:45:57 UTC
- Source record
- Official CVE record