Skip to content
DayZeroHub
High Not yet writtenCVSS 8.8CVE-2026-136156

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

Valkey Valkey

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-136156: high-severity vulnerability (CVSS 8.8) in Valkey Valkey.

What happened

Original description from the source: 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.

Why it matters

High severity, CVSS 8.8.

Affected products and versions

Valkey Valkey < 7.2.15; Valkey Valkey >= 8.0.0, < 8.0.12; Valkey Valkey >= 8.1.0, < 8.1.11; Valkey Valkey >= 9.0.0, < 9.0.7; Valkey Valkey >= 9.1.0, < 9.1.3; Valkey Valkey >= 9.2.0-rc1, < 9.2.0-rc2

ProductVersionsFixed in
Valkey Valkey< 7.2.15—
Valkey Valkey>= 8.0.0, < 8.0.12—
Valkey Valkey>= 8.1.0, < 8.1.11—
Valkey Valkey>= 9.0.0, < 9.0.7—
Valkey Valkey>= 9.1.0, < 9.1.3—
Valkey Valkey>= 9.2.0-rc1, < 9.2.0-rc2—

Action recommended by the source

See the official references for the fix or mitigation.

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-197, CWE-122

Relevant change history

  1. Published

    Preliminary advisory published.