CVE-2026-136155
published high CVSS 3.1 · 8.8Valkey: Use-after-free of the Lua interpreter state through the script debugger's command cache
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Valkey | — | Valkey9.1.0 to < 9.1.2 · Other versions: unaffected | Affected | Not stated | Akrites |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
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.
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 | 9.1.0 to < 9.1.2 (affected · semver)Default: unaffected | Akrites · cna |
Weaknesses
1- CWE-416 CWE-416 Use After Free
References
2Provider assertions
2Akrites · cna
Valkey: Use-after-free of the Lua interpreter state through the script debugger's command cache
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- fcc2305fa6b04b955a4818ef65755cee605bd5b93d815403c1cb56a784ade6b8
- Ingested
- 01 Dec 2026, 19:45:57 UTC
- Source record
- Official CVE record