{"api_version":"1","generated_at":"2026-11-24T16:24:36+00:00","cve":"CVE-2026-136158","urls":{"html":"https://cve.report/CVE-2026-136158","api":"https://cve.report/api/cve/CVE-2026-136158.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-136158","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-136158"},"summary":{"title":"Valkey JSON: Use-after-free in array mutation commands through a recursive JSONPath","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.","state":"PUBLISHED","assigner":"Akrites","published_at":"2026-11-24 15:17:33","updated_at":"2026-11-24 15:19:53"},"problem_types":["CWE-416","CWE-416 CWE-416 Use After Free"],"metrics":[{"version":"3.1","source":"7fefd608-56a6-419f-a002-fd8543c0710a","type":"Secondary","score":"8.8","severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":8.8,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"CVSS","score":"8.8","severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://github.com/valkey-io/valkey-json/security/advisories/GHSA-q7rf-74qm-hr9g","name":"https://github.com/valkey-io/valkey-json/security/advisories/GHSA-q7rf-74qm-hr9g","refsource":"7fefd608-56a6-419f-a002-fd8543c0710a","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/valkey-io/valkey-json/pull/118","name":"https://github.com/valkey-io/valkey-json/pull/118","refsource":"7fefd608-56a6-419f-a002-fd8543c0710a","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/valkey-io/valkey-json/pull/120","name":"https://github.com/valkey-io/valkey-json/pull/120","refsource":"7fefd608-56a6-419f-a002-fd8543c0710a","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-136158","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-136158","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Valkey","product":"Valkey JSON","version":"affected 1.0.0 1.0.3 semver","platforms":[]}],"timeline":[],"solutions":[{"source":"CNA","title":"","value":"Upgrade to Valkey JSON 1.0.3 or later, or to a valkey-bundle release that ships it.","time":"","lang":"en"}],"workarounds":[{"source":"CNA","title":"","value":"Use Valkey ACLs to restrict JSON.ARRAPPEND, JSON.ARRINSERT, JSON.ARRPOP, JSON.ARRTRIM and JSON.CLEAR if your application does not use them. Applications that pass user-controlled JSONPath expressions to these commands are the most exposed; limiting paths to non-recursive expressions also avoids the defect.","time":"","lang":"en"}],"exploits":[],"credits":[{"source":"CNA","value":"Joao Teles","lang":"en"},{"source":"CNA","value":"Pham Huong Giang","lang":"en"},{"source":"CNA","value":"Troy Coll of Heroku Data Services (Salesforce)","lang":"en"},{"source":"CNA","value":"zackcam","lang":"en"}],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Valkey JSON","repo":"https://github.com/valkey-io/valkey-json","vendor":"Valkey","versions":[{"lessThan":"1.0.3","status":"affected","version":"1.0.0","versionType":"semver"}]}],"credits":[{"lang":"en","type":"finder","value":"Joao Teles"},{"lang":"en","type":"finder","value":"Pham Huong Giang"},{"lang":"en","type":"finder","value":"Troy Coll of Heroku Data Services (Salesforce)"},{"lang":"en","type":"remediation developer","value":"zackcam"}],"datePublic":"2026-08-31T23:59:19.000Z","descriptions":[{"lang":"en","value":"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."}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-416","description":"CWE-416 Use After Free","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-11-24T14:06:29.651Z","orgId":"7fefd608-56a6-419f-a002-fd8543c0710a","shortName":"Akrites"},"references":[{"url":"https://github.com/valkey-io/valkey-json/security/advisories/GHSA-q7rf-74qm-hr9g"},{"url":"https://github.com/valkey-io/valkey-json/pull/118"},{"url":"https://github.com/valkey-io/valkey-json/pull/120"}],"solutions":[{"lang":"en","value":"Upgrade to Valkey JSON 1.0.3 or later, or to a valkey-bundle release that ships it."}],"title":"Valkey JSON: Use-after-free in array mutation commands through a recursive JSONPath","workarounds":[{"lang":"en","value":"Use Valkey ACLs to restrict JSON.ARRAPPEND, JSON.ARRINSERT, JSON.ARRPOP, JSON.ARRTRIM and JSON.CLEAR if your application does not use them. Applications that pass user-controlled JSONPath expressions to these commands are the most exposed; limiting paths to non-recursive expressions also avoids the defect."}],"x_generator":{"engine":"cvelib 1.8.0"}}},"cveMetadata":{"assignerOrgId":"7fefd608-56a6-419f-a002-fd8543c0710a","assignerShortName":"Akrites","cveId":"CVE-2026-136158","datePublished":"2026-11-24T14:06:29.651Z","dateReserved":"2026-11-24T13:53:38.491Z","dateUpdated":"2026-11-24T14:06:29.651Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-24 15:17:33","lastModifiedDate":"2026-11-24 15:19:53","problem_types":["CWE-416","CWE-416 CWE-416 Use After Free"],"metrics":{"cvssMetricV31":[{"source":"7fefd608-56a6-419f-a002-fd8543c0710a","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":8.8,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":2.8,"impactScore":5.9}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"136158","Ordinal":"1","Title":"Valkey JSON: Use-after-free in array mutation commands through a","CVE":"CVE-2026-136158","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"136158","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"Valkey JSON: Use-after-free in array mutation commands through a"}]}}}