CVE-2026-136158

Source
https://cve.org/CVERecord?id=CVE-2026-136158
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-136158.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-136158
Aliases
  • GHSA-q7rf-74qm-hr9g
Published
2026-11-24T14:06:29Z
Modified
2026-11-25T21:02:29Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Valkey JSON: Use-after-free in array mutation commands through a recursive JSONPath
Details

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.

Database specific
{
    "cna_assigner":  "Akrites",
    "cwe_ids":  [
        "CWE-416"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/136xxx/CVE-2026-136158.json"
}
References

Affected packages

Git / github.com/valkey-io/valkey-json

Affected ranges

Type
GIT
Repo
https://github.com/valkey-io/valkey-json
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "1.0.0"
                },
                {
                    "fixed":  "1.0.3"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StandardRange"
        },
        {
            "range":  [
                {
                    "introduced":  "1.0.0"
                },
                {
                    "last_affected":  "1.0.2"
                }
            ],
            "source":  "DESCRIPTION"
        }
    ]
}

Affected versions

1.*
1.0.0
1.0.1
1.0.2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-136158.json"