Ad
 
Learn More

Cluster Pub/Sub overflow is the Important line in Redis and Valkey

Redis and Valkey shipped security releases across every supported line on October 26 for the same bug: a heap overflow when an oversized PUBLISH crosses the cluster bus. If you run cluster mode, schedule this upgrade first.

Written by Watch Changelog Team

•2 min read

Cluster Pub/Sub overflow is the Important line in Redis and Valkey

Redis and Valkey both shipped security releases on October 26, across every line they still support, and we flagged all of them as Important on Redis Releases and Valkey Releases. When two projects that share a codebase patch the same day, it's usually the same bug. This time it is.

Redis describes it as a heap buffer overflow when a PUBLISH or SPUBLISH message larger than 4GB is propagated over the cluster bus in cluster mode. Valkey tracks it as GHSA-f4q9-j22m-xqq9, a heap buffer overflow in cluster Pub/Sub message construction, and it is blunter about the impact: an authenticated client could potentially execute arbitrary code by publishing an oversized message. Both mark the release as security urgency and ask you to upgrade as soon as possible.

The versions to land on:

  • Redis: 7.2.17, 7.4.12, 8.2.11, 8.4.8, 8.6.8, 8.8.4, or 8.10.3
  • Valkey: 8.0.12, 8.1.11, 9.0.7, or 9.1.3

Who should move first is narrower than "everyone on Redis." The bug sits on the cluster bus, so a standalone or plain primary and replica setup is not the exposed path. The attacker also needs to be an authenticated client that is allowed to publish. That's the part worth checking in your own setup, because in a lot of shops every service shares one Redis user with full permissions. If that's you, "authenticated" is not much of a filter, and any compromised app that can reach the cluster can send the message. Tightening ACLs so only the services that need Pub/Sub can publish is a good idea whether or not you patch today. It's also worth looking at your bulk size limit, proto-max-bulk-len, since a message this large only fits if that limit was raised.

The Valkey releases carry more than the security fix, which matters if your upgrade policy is "security only." The same builds fix a server abort on a malformed RESTORE payload, a crash when an ACL file has a selector with an unmatched parenthesis, and a cluster config save that could leave a truncated nodes.conf behind. On 9.0.7 there are also fixes for atomic slot migration. Read the notes for your line before you roll, so a behavior change doesn't surprise you.

My first read was "a 4GB message, nobody does that." That's the wrong frame. Nobody legitimate does it, and that's the point: it's the kind of input an attacker sends, not one your app does. If you run Redis Cluster or Valkey in cluster mode, this is the upgrade to schedule this week, and if you use a managed service, ask your provider which build you're on. The rest of the day's flagged changes are on /sources/important.

Official notes: Redis 8.10.3 and Valkey 9.0.7.