{"api_version":"1","generated_at":"2026-11-24T16:24:36+00:00","cve":"CVE-2026-136155","urls":{"html":"https://cve.report/CVE-2026-136155","api":"https://cve.report/api/cve/CVE-2026-136155.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-136155","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-136155"},"summary":{"title":"Valkey: Use-after-free of the Lua interpreter state through the script debugger's command cache","description":"In Valkey 9.1.0 and 9.1.1, the Lua script debugger builds its command table once and caches it with a pointer to the Lua interpreter state that was current at the time. SCRIPT FLUSH ASYNC recreates the scripting engine and frees the previous interpreter state without invalidating that cache, so the next debugger command dereferences freed memory. An authenticated user who can run scripting commands can use this to reliably crash the server, and by reclaiming the freed heap chunk with attacker-controlled bytes can escalate it to control of an indirect call, which may lead to remote code execution. The fix also addresses a second use-after-free in ldbLogStackValue. Valkey 8.0.x and 8.1.x use the previous debugger and 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/security/advisories/GHSA-fq2f-crmw-q97r","name":"https://github.com/valkey-io/valkey/security/advisories/GHSA-fq2f-crmw-q97r","refsource":"7fefd608-56a6-419f-a002-fd8543c0710a","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/valkey-io/valkey/pull/4574","name":"https://github.com/valkey-io/valkey/pull/4574","refsource":"7fefd608-56a6-419f-a002-fd8543c0710a","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-136155","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-136155","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Valkey","product":"Valkey","version":"affected 9.1.0 9.1.2 semver","platforms":[]}],"timeline":[],"solutions":[{"source":"CNA","title":"","value":"Upgrade to Valkey 9.1.2 or later.","time":"","lang":"en"}],"workarounds":[{"source":"CNA","title":"","value":"Use Valkey ACLs to restrict the SCRIPT command, in particular SCRIPT DEBUG, if your application does not use the script debugger.","time":"","lang":"en"}],"exploits":[],"credits":[{"source":"CNA","value":"Trung Nguyen of CyStack","lang":"en"},{"source":"CNA","value":"Phuc Nguyen Dinh of CyStack","lang":"en"},{"source":"CNA","value":"Han Sang-Kyung","lang":"en"},{"source":"CNA","value":"Bara' Hasheesh","lang":"en"}],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Valkey","repo":"https://github.com/valkey-io/valkey","vendor":"Valkey","versions":[{"lessThan":"9.1.2","status":"affected","version":"9.1.0","versionType":"semver"}]}],"credits":[{"lang":"en","type":"finder","value":"Trung Nguyen of CyStack"},{"lang":"en","type":"finder","value":"Phuc Nguyen Dinh of CyStack"},{"lang":"en","type":"finder","value":"Han Sang-Kyung"},{"lang":"en","type":"remediation developer","value":"Bara' Hasheesh"}],"datePublic":"2026-08-31T23:36:20.000Z","descriptions":[{"lang":"en","value":"In Valkey 9.1.0 and 9.1.1, the Lua script debugger builds its command table once and caches it with a pointer to the Lua interpreter state that was current at the time. SCRIPT FLUSH ASYNC recreates the scripting engine and frees the previous interpreter state without invalidating that cache, so the next debugger command dereferences freed memory. An authenticated user who can run scripting commands can use this to reliably crash the server, and by reclaiming the freed heap chunk with attacker-controlled bytes can escalate it to control of an indirect call, which may lead to remote code execution. The fix also addresses a second use-after-free in ldbLogStackValue. Valkey 8.0.x and 8.1.x use the previous debugger and 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:27.220Z","orgId":"7fefd608-56a6-419f-a002-fd8543c0710a","shortName":"Akrites"},"references":[{"url":"https://github.com/valkey-io/valkey/security/advisories/GHSA-fq2f-crmw-q97r"},{"url":"https://github.com/valkey-io/valkey/pull/4574"}],"solutions":[{"lang":"en","value":"Upgrade to Valkey 9.1.2 or later."}],"title":"Valkey: Use-after-free of the Lua interpreter state through the script debugger's command cache","workarounds":[{"lang":"en","value":"Use Valkey ACLs to restrict the SCRIPT command, in particular SCRIPT DEBUG, if your application does not use the script debugger."}],"x_generator":{"engine":"cvelib 1.8.0"}}},"cveMetadata":{"assignerOrgId":"7fefd608-56a6-419f-a002-fd8543c0710a","assignerShortName":"Akrites","cveId":"CVE-2026-136155","datePublished":"2026-11-24T14:06:27.220Z","dateReserved":"2026-11-24T13:53:38.491Z","dateUpdated":"2026-11-24T14:06:27.220Z","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":"136155","Ordinal":"1","Title":"Valkey: Use-after-free of the Lua interpreter state through the ","CVE":"CVE-2026-136155","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"136155","Ordinal":"1","NoteData":"In Valkey 9.1.0 and 9.1.1, the Lua script debugger builds its command table once and caches it with a pointer to the Lua interpreter state that was current at the time. SCRIPT FLUSH ASYNC recreates the scripting engine and frees the previous interpreter state without invalidating that cache, so the next debugger command dereferences freed memory. An authenticated user who can run scripting commands can use this to reliably crash the server, and by reclaiming the freed heap chunk with attacker-controlled bytes can escalate it to control of an indirect call, which may lead to remote code execution. The fix also addresses a second use-after-free in ldbLogStackValue. Valkey 8.0.x and 8.1.x use the previous debugger and are not affected.","Type":"Description","Title":"Valkey: Use-after-free of the Lua interpreter state through the "}]}}}