Vulnerability DatabaseCVE-2026-136156

CVE-2026-136156: 
Redis vulnerability analysis and mitigation

Overview

CVE-2026-136156 is a heap-based buffer overflow vulnerability in Valkey (an open-source Redis fork) caused by an integer truncation error in cluster mode publish message construction. When a PUBLISH or SPUBLISH command is issued with a channel and message payload exceeding 4 GiB, the clusterCreatePublishMsgBlock function computes the message length as a size_t but passes it to createClusterMsgSendBlock as a uint32_t, causing silent truncation and allocation of a far smaller buffer than required. The vulnerability affects Valkey versions 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; servers not running in cluster mode are unaffected. It carries a CVSS v3.1 base score of 8.8 (High) (Valkey Advisory, GitHub Advisory). The vulnerability was reported by Nenad Stojanovski working with Trend Micro Zero Day Initiative (ZDI-CAN-28318) and disclosed on October 26, 2026, with NVD publication on November 24, 2026 (Valkey Advisory).

Technical details

The root cause is a numeric truncation error (CWE-197) in clusterCreatePublishMsgBlock within src/cluster_legacy.c (or src/cluster.c on 7.2 branch), where the computed size_t message length is implicitly narrowed to uint32_t when passed to createClusterMsgSendBlock. This results in a heap-based buffer overflow (CWE-122 / CWE-787): a buffer far smaller than the actual payload is allocated, and two subsequent memcpy calls copy the full oversized channel and message into it, writing attacker-controlled bytes past the end of the heap buffer. Both the regular and light cluster bus header paths are affected, as are the module publish APIs. Because the default proto-max-bulk-len is 512 MB, a client cannot send a >4 GiB argument directly; however, a Lua or other server-side script can construct such a payload in memory, bypassing the direct size limit. The fix, implemented in PR #5030, validates the complete serialized message length before any 32-bit conversion or allocation, and rejects oversized PUBLISH/SPUBLISH requests with an error (Valkey Advisory, Fix PR).

Impact

Successful exploitation reliably crashes the Valkey server process due to the heap buffer overflow, causing a denial of service for all clients depending on the cluster. Because the overflowing bytes are attacker-controlled, the vulnerability may be escalated to remote code execution running as the OS user account under which the Valkey server operates, potentially granting full system access. This could lead to complete confidentiality, integrity, and availability compromise of the affected node, with potential for lateral movement to other cluster nodes or connected systems (Valkey Advisory, GitHub Advisory).

Exploitability

As of the time of disclosure, there is no public proof-of-concept exploit and no evidence of in-the-wild exploitation (Feedly). The vulnerability requires authenticated access with PUBLISH permissions and the ability to construct a >4 GiB payload (typically via server-side scripting), making it non-trivially automatable. The EPSS score is approximately 0.97% (61st percentile), indicating a relatively low but non-negligible probability of exploitation within 30 days (GitHub Advisory). The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. No threat actor attribution has been reported.

Exploitation steps

  1. Authenticate to the Valkey cluster: Obtain valid credentials for a Valkey user account that has PUBLISH (or scripting) permissions on a cluster-mode instance.
  2. Identify cluster mode: Confirm the target is running in cluster mode (e.g., via CLUSTER INFO command returning cluster_enabled:1).
  3. Construct an oversized payload via scripting: Since direct client arguments are limited by proto-max-bulk-len (default 512 MB), use a server-side Lua script (e.g., via EVAL) to programmatically build a channel or message string exceeding 4 GiB in total combined length.
  4. Issue the PUBLISH/SPUBLISH command: Execute the oversized PUBLISH or SPUBLISH command from within the script, causing clusterCreatePublishMsgBlock to compute the length as size_t and pass it truncated as uint32_t to createClusterMsgSendBlock.
  5. Trigger heap buffer overflow: The truncated length causes allocation of a small buffer; the subsequent memcpy calls write the full attacker-controlled payload past the end of the heap buffer.
  6. Achieve crash or RCE: The overflow reliably crashes the server process; with careful heap layout manipulation and attacker-controlled overflow bytes, remote code execution as the Valkey service account may be achievable (Valkey Advisory, Fix PR).

Indicators of compromise

  • Logs: Valkey server logs showing unexpected crashes or segmentation faults in the cluster bus message handling code; error messages referencing clusterCreatePublishMsgBlock or createClusterMsgSendBlock.
  • Logs: Valkey access logs showing EVAL, EVALSHA, FCALL, or similar scripting commands followed immediately by a PUBLISH or SPUBLISH command from the same client session.
  • Network: Cluster bus traffic with anomalously large PUBLISH/SPUBLISH message blocks; unexpected cluster node disconnections or reconnections following a crash.
  • Process: Unexpected termination (crash/core dump) of the valkey-server process, particularly on cluster-mode nodes; presence of core dump files in the Valkey working directory.
  • File System: Core dump files generated by the Valkey server process that may contain heap memory with attacker-controlled content.

Mitigation and workarounds

Upgrade to the patched versions: Valkey 7.2.15, 8.0.12, 8.1.11, 9.0.7, 9.1.3, or 9.2.0-rc2 (Valkey Advisory). As an interim workaround, restrict access to scripting commands (EVAL, EVALSHA, EVAL_RO, EVALSHA_RO, FCALL, FCALL_RO, FUNCTION) using Valkey ACLs for any users that do not require them, and ensure proto-max-bulk-len is not raised above its default of 512 MB. Additionally, limit PUBLISH command access to trusted clients only and implement network-level controls to restrict who can connect to cluster-mode nodes (Valkey Advisory, Red Hat Bugzilla). Amazon Linux users should apply the updates referenced in ALAS2027-2026-402 and ALAS2023-2026-3524.

Community reactions

The vulnerability was reported through Trend Micro's Zero Day Initiative (ZDI-CAN-28318), indicating coordinated disclosure with an established bug bounty program (Valkey Advisory). Red Hat tracked the issue via Bugzilla (Bug 2583396) and classified it as high severity, reflecting its potential impact on enterprise deployments (Red Hat Bugzilla). The fix was reviewed and merged promptly by the Valkey maintainers and backported across all supported release lines, demonstrating a responsive security posture from the project (Fix PR).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

sid

valkey: 9.1.3-1

Fixed

trixie

valkey

Affected

Ubuntu

Unknown

devel

valkey

Unknown

noble

valkey

Unknown

noble (esm-apps)

valkey

Unknown

resolute

valkey

Unknown

RHEL / CentOS

Affected

RHEL 8

redis:6/redis.src

Affected

RHEL 9

redis.src

Affected

RHEL 10

valkey.src

Affected

Source: This report was generated using AI

Related Redis vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-136156HIGH8.8
  • Redis logoRedis
  • valkey-doc
NoYesNov 24, 2026
CVE-2026-130822HIGH7.5
  • Redis logoRedis
  • redis:7::redis-doc
NoYesNov 24, 2026
CVE-2026-88382HIGH7.5
  • Redis logoRedis
  • redis
NoYesSep 24, 2026
CVE-2026-92925HIGH7.1
  • Redis logoRedis
  • valkey
NoYesSep 17, 2026
CVE-2026-82677LOW1.9
  • Redis logoRedis
  • valkey
NoYesAug 31, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management