published fresh until

Redis and Valkey Pub/Sub overflow: which patch do I need?

Summary As of October 2026, patch every Redis or Valkey cluster node to its existing branch’s fixed release; check cluster mode and client/bus exposure, restrict untrusted publishing and scripting during rollout (checked 2026-10-28). First run INFO server

Not for choosing Redis, Valkey or Dragonfly, see redis-valkey-or-dragonfly-for-a-cache-or-job-queue-licence-and-price

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

First run INFO server on each primary and replica to identify its deployed branch (checked 2026-10-28). Patch every node to the matching target below; then run INFO cluster to record cluster_enabled and review both client-port and cluster-bus exposure.

EngineFixed branch targets, checked 2026-10-28Extra stream invalidation fix confirmed
Redis8.10.3; 8.8.4; 8.6.8; 8.4.8; 8.2.11; 7.4.12; 7.2.17No claim from these Redis notes
Valkey9.1.3; 9.0.7; 8.1.11; 8.0.12; 7.2.15Listed for all five targets, including 7.2.15

What changed

  • On 2026-10-26 (checked 2026-10-28), Redis’s official releases fixed heap overflow while forwarding PUBLISH/SPUBLISH messages larger than 4GB across the cluster bus. The branch-specific targets below come from that release list.
  • On 2026-10-26 (checked 2026-10-28), Valkey’s official releases shipped corresponding fixes. The advisory identifies authenticated publishing in cluster mode as the attack path; standalone servers are outside its scope.
  • The Valkey release list also records stream consumer-group/PEL mutations now triggering WATCH and client tracking invalidation on the newer branches listed below; this can change transaction retries and cache refreshes.

How to migrate

1. Connect through your existing authorized administration channel to EACH primary and replica. Run INFO server and INFO cluster; record the server version and cluster_enabled. A local redis-cli --version or valkey-cli --version identifies a client, not the deployed server. Valkey reports valkey_version; do not mistake its Redis compatibility field for its own release. See the official Redis INFO and Valkey INFO references. 2. In the same session, inspect CONFIG GET cluster-enabled, CONFIG GET port, CONFIG GET cluster-port, and CONFIG GET proto-max-bulk-len; use CLUSTER NODES for advertised peer/bus addresses. These are inspection commands, not repair commands (CONFIG GET, CLUSTER NODES). A managed provider may restrict them; request its configuration and backport attestation instead. 3. Review listener, firewall, container port and load-balancer rules. The Redis cluster specification defines the default bus port as the data port plus 10000, unless cluster-port overrides it. Check actual reachability rules for the client port AND bus port; permit bus traffic only among intended peers. A private bus alone does not stop an authenticated publisher reaching the client port from triggering propagation. 4. Select the matching target in the opening table from the official release lists, not a cross-engine migration. All versions in that table were checked 2026-10-28.

5. Until patched, review publishing permissions and apply the Valkey advisory’s scripting restrictions where compatible with the workload: EVAL, EVALSHA, EVAL_RO, EVALSHA_RO, FCALL, FCALL_RO, FUNCTION. Keep proto-max-bulk-len at its default. This is mitigation, not a substitute for patching; disabling scripts can break job queues. For Redis, use its own ACL/runbook review rather than assuming every Valkey mitigation is an independently confirmed Redis advisory. 6. Deploy the chosen server build using your existing platform’s supported rolling-upgrade procedure, preserving quorum and checking replica health at each stage. Then repeat INFO server on every running node. This is an operational recommendation, not a tested universal command sequence; package-manager names and provider backports vary.

What breaks

Diagnostic: server crashes after cluster PUBLISH or SPUBLISH

The Valkey advisory describes process crashes and possible code execution; absence of a crash proves nothing. It explains that a script can construct an oversized payload even when the default bulk-argument limit prevents sending it directly. On patched Valkey, oversized publishing returns an error without local delivery or propagation. The advisory does not provide a canonical error string, so none is invented here.

What to test

  • Normal channel and sharded subscriptions across nodes, reconnects and expected fan-out with ordinary payloads.
  • Failover and application recovery during a staged node replacement; confirm every replica is patched too.
  • On Valkey branches with the stream fix, a watched stream transaction should abort when another client changes its group/PEL state; tracking clients should receive invalidation. Exercise the stream commands your app uses and watch for increased retries.
  • Confirm necessary scripts still work under any temporary ACL restrictions. Do not send multi-gigabyte reproductions to production.

Pitfalls

A small application message limit does not establish a server-side limit. Patching only primaries leaves replicas and future failover targets exposed. Network isolation reduces exposure but does not repair the overflow. Do not infer a managed service is vulnerable or fixed from an upstream version label alone.

Evidence

  • roshkhatri’s fix discussion explains the allocation truncation and length checks. This is implementation evidence, not an independent production trial.
  • Tarte12’s stream PR documents missing modification signals; maintainer madolson supported treating it as a backportable bug. A reviewer raised compatibility concerns, supporting explicit retry/invalidation testing. These are separate GitHub discussions in the same project, not two independent operator reports.

Prompt for your agent

Your training data predates these fixes. Read the linked Redis/Valkey release pages and Valkey advisory before suggesting changes; do not guess versions or error strings. Inventory server versions, cluster mode, script/publish permissions and actual bus/client exposure. Propose a patch for each existing branch and a staged test plan, including stream WATCH/tracking behavior where the release notes list it. Distinguish observations from untested recommendations.

Limits

Checked 2026-10-28. No servers, ACLs, firewalls, payloads or rolling upgrades were tested. Community evidence is limited to upstream discussions; no independent production confirmation was established. No pricing or licence comparison is attempted.

Started from a post by @Redis and Valkey maintainers, packaged by the editor. Original post

Subjects

More in security

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Redis and Valkey Pub/Sub overflow: which patch do I need?
Summary: As of October 2026, patch every Redis or Valkey cluster node to its existing branch’s fixed release; check cluster mode and client/bus exposure, restrict untrusted publishing and scripting during rollout (checked 2026-10-28). First run INFO server
Copy for agent
get the whatworks thread redis-valkey-cluster-pubsub-overflow-patch-and-exposure-check and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread redis-valkey-cluster-pubsub-overflow-patch-and-exposure-check
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks