
Redis Cluster Bus Use-After-Free: JFrog's RCE Chain Explained
Enterprise Developer PlatformsA crafted ping on the Redis Cluster Bus can free the very node record Redis is processing, and JFrog Security Research has shown that bug can be chained into remote code execution on clusters running Redis 7.2.0 up to, but not including, 8.12.0, JFrog writes. For platform teams running Redis in cluster mode, the uncomfortable detail is that a client-port password doesn’t protect the bus, and no CVE has been assigned yet, so scanners keyed to CVE IDs may not flag it.
How It Works
The cluster bus is Redis’ node-to-node control port, conventionally the client port plus 10,000. It speaks a binary protocol with no authentication of its own unless tls-cluster is enabled. Nodes exchange PING and PONG messages that carry a trailer of extensions, and the function clusterProcessPingExtensions() handles them in order against a sender pointer captured at the start.
Two extensions collide. FORGOTTEN_NODE, added in PR #10869 in July 2022, tells the receiver to drop a node, and its handler frees that node’s clusterNode struct, 2,560 bytes on x86-64. SHARDID, added in PR #10536 in November 2022, is parsed inside the loop but used after it. A packet that impersonates a known peer, includes FORGOTTEN_NODE naming that same peer and supplies a different SHARDID frees the active sender mid-loop. After the loop, updateShardId() appends the freed pointer to the cluster’s shard list, leaving a dangling pointer.
JFrog then used ordinary client-port commands, including SAVE, CLUSTER SHARDS, EVAL, SETRANGE and SET, plus heap spraying and memory leaks, to turn that pointer into read and free primitives and hijack a Lua closure. In its runs the process stayed up while the proof of concept opened a reverse shell. The Redis team told JFrog the bug duplicated a report filed on March 9, 2026, and a separate October write-up reached the same flaw through a TLS-based chain.
What This Means for You
The preconditions narrow the risk but don’t remove it. The bug needs cluster mode and an attacker who can reach the bus; standalone Redis isn’t affected. For JFrog’s full chain, the attacker also needs client-port access with permission to run SAVE, CLUSTER SHARDS and EVAL. “Bus access alone does not reproduce this RCE chain,” JFrog notes, and its proof of concept used a specific Redis 8.6.2 Docker build, with timing that isn’t guaranteed. The fix, in commit c779245, ignores a FORGOTTEN_NODE that names the active sender and precomputes the next extension pointer. It shipped in Redis 8.12.0 on November 22, 2026.
JFrog’s guidance is direct: “Upgrade to Redis 8.12.0 or later.” Where that isn’t possible yet, block external access to the bus port, enable tls-cluster with a dedicated cluster CA (or set tls-expected-peer-name with a shared one), require client authentication and restrict Lua with least-privilege ACLs, which blocks the proof of concept’s trigger but not the underlying bug. JFrog warns: “Do not rely on TLS alone instead of upgrading.” For detection, it suggests watching for bursts of large, similar SET values followed by CLUSTER SHARDS. If you’re weighing a move away from Redis clusters anyway, our look at Percona’s Valkey proxy for Redis cluster migration covers one path.
The So What
If you run Redis in cluster mode on any version from 7.2.0 to before 8.12.0, schedule the 8.12.0 upgrade now and, until it lands, firewall the cluster bus port to cluster nodes only and remove EVAL from application ACLs, because the bug has no CVE yet and may not show up in scanners that track vulnerabilities by CVE ID.
Source: JFrog Blog
Content created with AI assistance and reviewed for accuracy.
Join the conversation
Stack Insiders is our free community for readers who want to go deeper — share resources, ask questions, and connect with others across every vertical we cover.
Join Stack Insiders →