CVE-2026-136156
Valkey: Integer truncation in cluster publish message construction causes a heap buffer overflow
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.
INFO
Published Date :
Nov. 24, 2026, 3:17 p.m.
Last Modified :
Nov. 24, 2026, 3:19 p.m.
Remotely Exploit :
Yes !
Source :
7fefd608-56a6-419f-a002-fd8543c0710a
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | HIGH | 7fefd608-56a6-419f-a002-fd8543c0710a | ||||
| CVSS 3.1 | HIGH | MITRE-CVE |
Solution
- Update Valkey to a version that addresses the heap overflow vulnerability.
- Ensure the application is not running in cluster mode if an update is not possible.
- Restrict publish capabilities to authenticated and trusted users.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-136156.
| URL | Resource |
|---|---|
| https://github.com/valkey-io/valkey/pull/5030 | |
| https://github.com/valkey-io/valkey/security/advisories/GHSA-f4q9-j22m-xqq9 |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-136156 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-136156
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-136156 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-136156 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
New CVE Received by 7fefd608-56a6-419f-a002-fd8543c0710a
Nov. 24, 2026
Action Type Old Value New Value Added 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. Added CVSS V3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Added CWE CWE-122 Added CWE CWE-197 Added Affected New affected value received. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/136xxx/CVE-2026-136156.json">CVE-2026-136156</a> Added Reference https://github.com/valkey-io/valkey/pull/5030 Added Reference https://github.com/valkey-io/valkey/security/advisories/GHSA-f4q9-j22m-xqq9