CVE-2026-136156: Valkey cluster PUBLISH overflows the heap on messages over 4 GiB

ByLinuxtastic

November 30, 2026 #CVE, #Valkey

When a Valkey node in cluster mode handles a PUBLISH or SPUBLISH, it wraps the channel and message into a cluster bus message for the other nodes. The function that builds that message computes its length as a size_t and then hands it to the allocator as a 32-bit integer; once the channel and message together pass 4 GiB the length is truncated, a buffer far smaller than the message is allocated, and the full channel and message are copied into it. An authenticated client that can publish, building the oversized arguments inside a script, overflows the heap with bytes it controls, which crashes the node reliably and may lead to remote code execution. Every supported branch is affected. Upgrade Valkey to 9.1.3, 9.0.7, 8.1.11, 8.0.12 or 7.2.15 (the 26 October 2026 releases) and restart each node; until then, keep scripting commands away from untrusted users and leave proto-max-bulk-len at its default. Servers that do not run in cluster mode are not affected.

CVE-2026-136156 at a glance.

ComponentValkey in cluster mode, clusterCreatePublishMsgBlock() in src/cluster_legacy.c (src/cluster.c on 7.2) and the publish path in src/pubsub.c; the upstream tarball, the official images, Debian’s valkey, Red Hat’s valkey and, per Red Hat, its redis packages
Affected versionsValkey before 7.2.15, 8.0.0 to 8.0.11, 8.1.0 to 8.1.10, 9.0.0 to 9.0.6, 9.1.0 to 9.1.2 and 9.2.0-rc1, when running in cluster mode
Fixed inValkey 7.2.15, 8.0.12, 8.1.11, 9.0.7, 9.1.3 and 9.2.0-rc2, released 26 October 2026 (pull request #5030 “Fix cluster Pub/Sub length truncation”, commit ff765915, touching src/cluster.h, src/cluster_legacy.c, src/pubsub.c and a unit test). Distribution packages below
SeverityValkey (Akrites CNA) CVSS 3.1 8.8 High (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H); NVD Awaiting Analysis, same vector. Red Hat Important, 8.8 (verified, CWE-787); SUSE important, 8.8. The record’s CWEs are CWE-197 (numeric truncation) and CWE-122 (heap overflow). All raters agree on the number
Exploited in the wildNot on CISA’s Known Exploited Vulnerabilities list as of 30 November 2026. EPSS 0.0097 (61st percentile) on 30 November 2026
Who is exposedValkey clusters whose clients are not all trusted: multi-tenant clusters, clusters reachable with the default user, application users with +@all. The attacker needs a connection that can run PUBLISH or SPUBLISH and a way to build a 4 GiB argument, which in practice means the scripting commands (EVAL, FCALL and the rest) or a raised proto-max-bulk-len. Standalone servers, replicas outside cluster mode and clusters whose users cannot script are not usefully attackable
PublishedCVE record 24 November 2026; GitHub advisory GHSA-f4q9-j22m-xqq9 26 October 2026 (credit Nenad Stojanovski with Trend Micro’s Zero Day Initiative, ZDI-CAN-28318; fix by Roshan Khatri); this page built 30 November 2026, last updated 30 November 2026

What it is

Cluster-mode pub/sub has to tell every other node about a message so subscribers anywhere in the cluster see it. clusterCreatePublishMsgBlock() builds that bus message: a header, the channel, the payload. The record describes the arithmetic: the total length is computed in a size_t, which on a 64-bit system holds any realistic size, and passed to createClusterMsgSendBlock() as a uint32_t. Anything over 4 GiB wraps. The allocation then matches the wrapped number, and the copy that follows uses the real lengths, so the channel and message are written far past the end of the block. Because the bytes are the attacker’s channel name and payload, the overflow is fully controlled, which is why the advisory says it “may lead to remote code execution” rather than stopping at the crash.

Getting a 4 GiB argument to the server is the attacker’s one obstacle. A plain client is limited by proto-max-bulk-len, 512 MB by default, which is why the workaround says not to raise it; a script running on the server has no such limit and can build the string in Lua and publish it from there, which is why the workaround’s other half is to deny the scripting commands to anyone who does not need them. The fix in pull request #5030 carries the length as the right type end to end; the advisory notes 7.2’s copy of the code lives in src/cluster.c. The 26 October releases ship it on every branch, and the CVE arrived a month later when the Valkey CNA assigned ids to its autumn advisories.

Red Hat’s package list is worth a second look: it marks not only valkey on RHEL 9 and 10 as affected but also redis and the redis:6 and redis:7 streams on RHEL 8 and 9, which means Red Hat considers the forked code to carry the same truncation. Valkey’s advisory speaks only for Valkey; if you run Redis in cluster mode, Red Hat’s assessment is the thing to follow up with your vendor.

Who is affected on Linux

Each row is what the distribution’s own security tracker said on 30 November 2026; the link in the row is the tracker page, which will be newer than this one.

DistributionStatusFixed package
Debian trixie, forky, sidVulnerable in trixie; fixed in forky and sidtrixie valkey 8.1.1+dfsg1-3+deb13u3 vulnerable, no DSA on 30 November; forky and sid 9.1.4-1 fixed (unstable fixed version 9.1.3-1)
Ubuntu 24.04 to 26.04Tracker unreachable on 30 November 2026Ubuntu’s CVE page refused automated readers when this page was built; its valkey is Debian’s 8.x line, which is affected in cluster mode
RHEL 8, 9, 10 (and rebuilds), Hardened ImagesImportant (8.8); RHEL packages affected, no RHEL erratum; Hardened Images fixedRHEL 10 valkey, RHEL 9 valkey, redis and redis:7, RHEL 8 redis:6 and redis all “Affected” with no fixed build on 30 November; Hardened Images errata of 24 November: RHSA-2026:103160 (valkey 9.1.4), 103175 (9.0.8), 103200 (8.1.12), 103174 (8.0.13), 103184 (7.2.16), 103193 (9.2.0)
SUSE SLES 16.0, 16.1, openSUSE Leap 16.ximportant, pending on 16.x; 15.x not affectedSLES 16.0 and 16.1, SLES for SAP 16.x, openSUSE Leap 16.0 and 16.1 and the suse/valkey container “Affected”, no fixed build listed; SLES 15 SP6 and SP7 and openSUSE Leap 15.6 not affected (SUSE bug 1291684)
Fedora, Arch, AlpineNot consultedAlpine’s tracker refused automated readers; Fedora and Arch not read for this page; all three track upstream, so the 26 October releases are the builds to look for
Upstream tarball, official valkey and valkey-bundle images, Helm charts, BitnamiAffected below the 26 October releases in cluster modeValkey 9.1.3, 9.0.7, 8.1.11, 8.0.12 or 7.2.15 and later

How to check

Three questions: is the node in cluster mode, is the build older than 26 October, and which users can script or publish. The first clears every standalone server.

# 1. cluster mode? "cluster_enabled:0" means this bug cannot be reached
valkey-cli INFO cluster | grep cluster_enabled

# 2. the build: affected below 7.2.15 / 8.0.12 / 8.1.11 / 9.0.7 / 9.1.3 (and 9.2.0-rc1)
valkey-cli INFO server | grep -E '^(valkey_version|redis_version)'
dpkg -l valkey-server 2>/dev/null | grep '^ii'; rpm -q valkey redis 2>/dev/null
docker ps --format '{{.Names}} {{.Image}}' 2>/dev/null | grep -iE 'valkey|redis'

# 3. who can build and publish a 4 GiB message: scripting rights, or a raised bulk limit
valkey-cli ACL LIST | grep -E '\+@all|\+@scripting|\+eval|\+fcall|\+function|\+@pubsub|\+publish'
valkey-cli CONFIG GET proto-max-bulk-len              # 536870912 is the default

A standalone server, or a cluster on the 26 October releases, means you are done. A cluster on an older build whose users cannot run scripting commands and whose bulk limit is at its default is a patching chore: no client can hand the node a 4 GiB message. A cluster where application users hold +@all, or where the default user is still enabled, is the vulnerable configuration, and the more clients can reach the bus port’s neighbours on 6379, the sooner the restart should be.

How to fix it

Upgrade every node to the fixed release for its branch and restart them one at a time; a cluster tolerates a rolling restart, and a node keeps the old code until it is restarted.

# Debian forky/sid (trixie had no fix on 30 November) / Ubuntu
apt update && apt install --only-upgrade valkey-server
# RHEL family: no RHEL erratum on 30 November, Hardened Images have builds; SUSE 16.x pending
dnf update valkey redis
# upstream / container: the 26 October tags
docker pull valkey/valkey:8.1 && docker compose up -d --force-recreate
# rolling restart, replicas first, then each primary after a manual failover
systemctl restart valkey-server 2>/dev/null || systemctl restart valkey
valkey-cli INFO server | grep -E '^valkey_version'   # must show the fixed build

If you cannot restart yet, apply both halves of the project’s workaround: deny EVAL, EVALSHA, EVAL_RO, EVALSHA_RO, FCALL, FCALL_RO and FUNCTION to users who do not need them, and do not raise proto-max-bulk-len. Do not rely on a password alone, since the attacker is already logged in, and do not lower proto-max-bulk-len as a substitute for the ACL: it limits what a client can send directly, not what a script can build on the server.

# mitigation: no scripting for the application user; keep the bulk limit at its default
valkey-cli ACL SETUSER appuser -eval -evalsha -eval_ro -evalsha_ro -fcall -fcall_ro -function
valkey-cli CONFIG SET proto-max-bulk-len 536870912
valkey-cli ACL SAVE 2>/dev/null || echo "ACL SAVE needs aclfile set; copy the rules into valkey.conf instead"
valkey-cli ACL GETUSER appuser | grep -A1 commands

Sources

  • CVE-2026-136156 at CVE.org — the Akrites (Valkey) CNA record (24 November 2026): the truncation description, CVSS 3.1 8.8, CWE-197 and CWE-122, the affected ranges, the workaround and the credits
  • GHSA-f4q9-j22m-xqq9 — the project’s advisory of 26 October 2026, and pull request #5030 “Fix cluster Pub/Sub length truncation”, merged the same day
  • Valkey releases — 9.1.3, 9.0.7, 8.1.11, 8.0.12 and 7.2.15 of 26 October 2026, each naming the advisory
  • NVD entry — Awaiting Analysis; the CNA’s 8.8 and version ranges
  • Distribution trackers: Debian · Ubuntu (unreachable on 30 November) · Red Hat (Important, 8.8, CWE-787, the redis rows and the Hardened Images errata) · SUSE
  • EPSS score for this CVE, 30 November 2026

Related reading

This advisory page was assembled from the primary sources listed above on 30 November 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.