# CVE-2026-136156: Valkey: Integer truncation in cluster publish message construction causes a heap buffer overflow


- **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:** DEBIAN-CVE-2026-136156, DHI-jxqi-q5c4-7snc-y4ga, DHI-qpdo-m6p4-pmn7-dra7, GHSA-2hgv-4f6x-9hfg, GHSA-f4q9-j22m-xqq9, UBUNTU-CVE-2026-136156

## What is CVE-2026-136156?

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

### Official description

In Valkey before 7.2.15, 8.0.x before 8.0.12, 8.1.x before 8.1.11, 9.0.x before 9.0.7, 9.1.x before 9.1.3 and 9.2.0-rc1, running in cluster mode, clusterCreatePublishMsgBlock computes the length of the cluster bus message for a PUBLISH or SPUBLISH as a size_t but passes it to createClusterMsgSendBlock as a uint32_t. When the channel and message together exceed 4 GiB, the length is truncated, a buffer far smaller than the message is allocated, and the full channel and message are then copied into it. An authenticated user who can publish, for example by building the arguments in a script, can overflow the heap with attacker-controlled bytes. This reliably crashes the server and may lead to remote code execution. Servers that do not run in cluster mode are not affected.

Weakness: CWE-197 (Numeric Truncation Error), CWE-122 (Heap-based Buffer Overflow)

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


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

Upgrade Valkey to the fixed version for your release line. The advisory names 7.2.15, 8.0, 8.0.12 and 8.1.

## Is CVE-2026-136156 being exploited?

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

## Fix prompt for AI coding agents

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

What it is: CVE-2026-136156 is a high-severity vulnerability in Valkey, published on 24 Nov 2026. 
Exploitation: There is no known exploitation of CVE-2026-136156 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-136156/ (Markdown: https://insights.sbomify.com/CVE-2026-136156/index.md)
```

## Sources

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

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