# CVE-2026-136155: Valkey: Use-after-free of the Lua interpreter state through the script debugger's command cache


- **Severity:** High 8.8 (`CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Fix available:** Yes
- **Published:** 24 Nov 2026
- **Updated:** 24 Nov 2026
- **Also known as:** CLEANSTART-2026-TY09591, DEBIAN-CVE-2026-136155, DHI-4dan-tsbk-23va-fztt, DHI-5vc4-422t-xsfy-7efw, GHSA-89j7-2m74-w72r, GHSA-fq2f-crmw-q97r, UBUNTU-CVE-2026-136155

## What is CVE-2026-136155?

CVE-2026-136155 is a high-severity vulnerability in Valkey, published on 24 Nov 2026. 

### Official 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.

Weakness: CWE-416 (Use After Free)

## Which versions are affected by CVE-2026-136155?


## How do I fix CVE-2026-136155?

Upgrade to a fixed version.

## Is CVE-2026-136155 being exploited?

There is no known exploitation of CVE-2026-136155 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-136155 and fix it if it is affected.

What it is: CVE-2026-136155 is a high-severity vulnerability in Valkey, published on 24 Nov 2026. 
Exploitation: There is no known exploitation of CVE-2026-136155 in the wild and no public exploit code.

Affected product: Valkey. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-136155/ (Markdown: https://insights.sbomify.com/CVE-2026-136155/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-136155
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-136155
- OSV: https://osv.dev/vulnerability/CVE-2026-136155

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-136155/
Summaries are generated and may contain mistakes; the official description above is the record.
