{"schemaVersion":4,"id":"CVE-2026-136155","aliases":["UBUNTU-CVE-2026-136155","DEBIAN-CVE-2026-136155"],"status":"published","duplicateOf":null,"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.","dates":{"published":"2026-11-24T14:06:27.220Z","modified":"2026-12-01T19:38:25.552Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","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","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","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","exploitability":7.2,"impact":9.8,"computed":true}]},"epss":{"probability":0.00948,"percentile":0.62386,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-11-25T00:00:00.000Z","score":0.00948,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00948,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00948,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00948,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00948,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00948,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00948,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00948,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00948,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00948,"percentile":0.62386}],"last30":[{"date":"2026-11-25T00:00:00.000Z","score":0.00948,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00948,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00948,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00948,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00948,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00948,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00948,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00948,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00948,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00948,"percentile":0.62386}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-416","name":"Use After Free","description":"The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory \"belongs\" to the code that operates on the new pointer.","type":"weakness","status":"Stable","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/416.html"}],"affected":[{"vendor":"debian","product":"valkey","name":"valkey","label":"valkey","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/valkey","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}},{"text":"< 9.1.2-1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"9.1.2-1","endInclusive":false}}],"versionsText":"All versions (No fix recorded) | < 9.1.2-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"valkey","name":"valkey","label":"valkey","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/valkey","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"valkey","product":"valkey","name":"Valkey","label":"valkey","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 9.1.0, < 9.1.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"9.1.0","startInclusive":true,"end":"9.1.2","endInclusive":false}}],"versionsText":"≥ 9.1.0, < 9.1.2","eol":null,"hubHref":"/vendor/valkey/valkey"}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/valkey-io/valkey/security/advisories/GHSA-fq2f-crmw-q97r","label":"github.com/valkey-io/valkey/security/advisories/GHSA-fq2f-crmw-q97r","hostname":"github.com","tags":["REPORT"]},{"url":"https://github.com/valkey-io/valkey/pull/4574","label":"github.com/valkey-io/valkey/pull/4574","hostname":"github.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/CVE-2026-136155","label":"ubuntu.com/security/CVE-2026-136155","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-136155","label":"www.cve.org/CVERecord?id=CVE-2026-136155","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-136155","label":"security-tracker.debian.org/tracker/CVE-2026-136155","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["RHSA-2026:103160"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-11-24T14:06:27.220Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-12-01T19:38:25.552Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,1,88],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00948,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-12-01T19:38:25.552Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1","headline":true},{"type":"cvss","source":"nvd","date":"2026-12-01T19:38:25.552Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"cvss","source":"osv_ubuntu","date":"2026-12-01T19:38:25.552Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"cvss","source":"osv_debian","date":"2026-12-01T19:38:25.552Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-11-30T16:43:40.312Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.00948,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T04:02:19.840Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T04:02:20.356Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T04:02:20.556Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T04:00:57.992Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T04:02:18.199Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T04:02:17.270Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T04:41:40.973Z","stale":false,"partial":false}}