# Redis Cluster Bus Use-After-Free in clusterProcessPingExtensions Leading to RCE (No CVE Assigned; Fixed in 8.12.0)

> JFrog Security Research documented a use-after-free in Redis cluster-bus PING extension handling (FORGOTTEN_NODE followed by SHARDID) and chained it, via CLUSTER SHARDS heap leaks and a Lua VM use-after-free, into remote code execution with a reverse shell in a lab PoC. Affects cluster-mode Redis 7.2.0 up to versions before 8.12.0; no CVE had been assigned at publication.

- **Author:** Threadlinqs Team
- **Published:** 2026-12-01T17:03:04Z
- **Last updated:** 2026-12-01T17:03:04Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-7189
- **Card image:** https://intel.threadlinqs.com/og/threat/TL-2026-7189.png
- **ID:** TL-2026-7189
- **Severity:** HIGH
- **Category:** VULNERABILITY
- **Status:** MONITORING
- **Detections:** 9 (1 shown free below) · **IOCs:** 3
- **CVEs:** CVE-2026-81934

## Description

The flaw is a use-after-free in clusterProcessPingExtensions(), the function that walks the extension trailer of Redis Cluster Bus PING/PONG packets. The FORGOTTEN_NODE extension (introduced in July 2022, PR #10869) instructs the receiver to remove a node and calls clusterDelNode(), which frees the clusterNode struct (about 2,560 bytes on x86-64). The loop, however, keeps using a single 'sender' pointer captured at the start. If the FORGOTTEN_NODE extension names the packet's own sender, the sender (and per the fix PR, the inbound clusterLink and its receive buffer) is freed while the parser still references it. A subsequent SHARDID extension (introduced in November 2022, PR #10536) then reaches updateShardId(sender, ext_shardid), which appends the dangling sender pointer to the shard list in server.cluster->shards. The receive buffer is also freed while still parsed, so a process crash is possible, though the process stayed up in JFrog's runs.

JFrog (Eddy Tsalolikhin, Ori Hollander, Or Peles) chained the dangling node into RCE in a two-master cluster running the Redis 8.6.2 Docker image (Debian trixie, x86-64) with a default non-TLS bus and an unauthenticated client port. The chain: (1) stage a command in the keyspace and persist it with SAVE to dump.rdb in the configured dir; (2) use EVAL to leak the addresses of the Lua closures 'tostring' and '__redis__err__handler' (tostring is still permitted by the Lua sandbox); (3) send one crafted bus PING with a FORGOTTEN_NODE naming a known peer followed by a SHARDID carrying a different shard ID; (4) spray many same-size SET commands (keys in one hash slot) to reclaim the freed slot with a fake node structure, then use CLUSTER SHARDS to read the hostname field and leak a code pointer (PIE base); (5) use SETRANGE to repoint the fake hostname at a GOT entry and a second CLUSTER SHARDS to leak a libc address and thus system(); (6) set the fake node's slot_info_pairs to the error-handler closure address so CLUSTER SHARDS frees it via clusterFreeNodesSlotsInfo(), creating a use-after-free in the Lua VM; (7) drain a size bin with dummy SADD operations, reclaim the slot with a crafted SADD payload, and call the closure via EVAL so a C-closure path dispatches into a gadget that calls system(), yielding a reverse shell. Several stages are probabilistic and offsets are specific to the tested build.

Prerequisites per the source: cluster mode enabled (cluster-enabled yes); network reachability of the cluster bus (client port + 10000 unless cluster-port is set, i.e. 16379 for default 6379); the bus has no authentication of its own unless tls-cluster is enabled and bus packets need not be signed; the full RCE chain additionally needs client-port access with SAVE, CLUSTER SHARDS and EVAL permissions, and the peer node ID and victim shard ID (obtainable via CLUSTER NODES and CLUSTER MYSHARDID, which may be reachable without authentication when ACLs are absent and protected mode is disabled). Bus access alone does not reproduce the RCE chain. Standalone Redis is not affected. A separate write-up by Daniele Berardinelli (19 Oct 2026, 'Redis: from TLS reuse to RCE') reportedly reaches the same UAF through a resumed TLS session on the cluster bus and achieves code execution through DEBUG, so bus TLS is not a substitute for patching. JFrog reports Redis told them the issue duplicated a report filed on 9 March 2026. The source does not state exploitation in the wild, and no CVE, CVSS score, IOCs or attribution were published; the HIGH severity is an analyst assessment based on the demonstrated RCE.

The fix (PR #15685, 'Fix Remote UAF in Redis Cluster bus FORGOTTEN_NODE handling with demonstrated RCE impact') passes the resolved sender into clusterProcessPingExtensions() and skips, with a warning, any FORGOTTEN_NODE that names the sender or link->node, and precomputes the next-extension cursor before running each handler. It shipped in Redis 8.12.0 (released 2026-11-22 per JFrog). Note: the unrelated TLS pending-data UAF CVE-2026-81934 is a different bug and should not be conflated with this one.

## MITRE ATT&CK

- T1190 Exploit Public-Facing Application
- T1059 Command and Scripting Interpreter
- T1059.011 Lua
- T1059.004 Unix Shell
- T1018 Remote System Discovery
- T1499.004 Application or System Exploitation

## Free detection (Splunk SPL, Microsoft KQL, Sigma)

**redis-server Spawning Shell or Interpreter - Use-After-Forget RCE Success (TL-2026-7189)** (`TL-2026-7189-SPL-002`)

Detects the redis-server process spawning a shell, scripting interpreter or network utility. In the public Use-After-Forget chain (FORGOTTEN_NODE bus UAF followed by a Lua closure use-after-free) the corrupted closure dispatches to system(), yielding a reverse shell. redis-server should never spawn such children in normal operation, so this is a high-fidelity post-exploitation signal for TL-2026-7189 and also for other Redis RCE routes. Reverse-shell idioms in the command line are flagged.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1059.004, T1059.011, T1190
- **Data sources:** sysmon_for_linux (index=linux sourcetype=sysmon:linux), MDE DeviceProcessEvents (Linux), linux process_creation
- **Severity:** critical
- **Confidence:** high

### Splunk SPL

````spl
index=linux sourcetype="sysmon:linux" EventCode=1 earliest=-24h
  ParentImage="*/redis-server"
  Image IN ("*/sh", "*/bash", "*/dash", "*/zsh", "*/ash", "*/ksh", "*/busybox", "*/python*", "*/perl*", "*/ruby*", "*/nc", "*/ncat", "*/socat", "*/curl", "*/wget")
| eval reverse_shell_pattern=if(match(CommandLine,"(?i)/dev/tcp/|bash -i|mkfifo|socat .*exec|nc .* -e|python.*socket"),"yes","no")
```redis-server child process = system() reached via corrupted Lua closure, TL-2026-7189 T1059.004```
| table _time host User ParentImage ParentCommandLine Image CommandLine reverse_shell_pattern
| sort - _time
````

### Microsoft KQL

```kql
// redis-server spawning a shell or interpreter - TL-2026-7189 Use-After-Forget RCE
DeviceProcessEvents
| where Timestamp > ago(24h)
| where InitiatingProcessFileName =~ "redis-server"
| where FileName in~ ("sh", "bash", "dash", "zsh", "ash", "ksh", "busybox", "python", "python3", "perl", "ruby", "nc", "ncat", "socat", "curl", "wget")
| extend ReverseShellPattern = ProcessCommandLine matches regex @"(?i)(/dev/tcp/|bash -i|mkfifo|socat .*exec|nc .* -e|python.*socket)"
| project Timestamp, DeviceName, AccountName, InitiatingProcessFileName, InitiatingProcessCommandLine, FileName, ProcessCommandLine, ReverseShellPattern
| order by Timestamp desc
```

### Sigma

```yaml
title: Redis Server Spawning Shell or Interpreter
id: 7f3a1c52-8e4b-4d19-a6c0-1b2d3e4f5a02
status: experimental
description: Detects redis-server as the parent of a shell, scripting interpreter or network utility. Matches the success condition of the Use-After-Forget Redis cluster bus UAF to Lua UAF to system() chain (TL-2026-7189, no CVE, fixed in Redis 8.12.0).
references:
  - https://jfrog.com/blog/from-cluster-bus-bug-to-rce-in-redis/
  - https://github.com/redis/redis/pull/15685
author: Threadlinqs Team
date: 2026-12-01
tags:
  - attack.execution
  - attack.t1059.004
  - attack.t1059.011
  - attack.initial-access
  - attack.t1190
logsource:
  category: process_creation
  product: linux
detection:
  selection_parent:
    ParentImage|endswith: '/redis-server'
  selection_child:
    Image|endswith:
      - '/sh'
      - '/bash'
      - '/dash'
      - '/zsh'
      - '/ash'
      - '/ksh'
      - '/busybox'
      - '/python'
      - '/python3'
      - '/perl'
      - '/ruby'
      - '/nc'
      - '/ncat'
      - '/socat'
      - '/curl'
      - '/wget'
  condition: selection_parent and selection_child
falsepositives:
  - Custom Redis modules or wrapper builds that deliberately fork helper scripts
  - Administrators debugging on the host while redis-server is the foreground parent
level: critical
```

**Known false positives:**

- Custom Redis modules or wrapper builds that intentionally spawn helper scripts
- Interactive administration when redis-server is run in the foreground from a shell session (parent is the shell, not redis-server, so rare)

**Tuning notes:** Requires Sysmon for Linux (or auditd/EDR with parent process data) on Redis hosts, including container hosts. Adjust index/sourcetype to your Linux telemetry. Image paths may differ (redis-server vs redis-stack-server); extend the ParentImage match accordingly. Redis RDB/AOF background saves fork the same binary and are not matched because the child image is redis-server, not a shell.

### 8 more detection rules (Splunk SPL, Microsoft KQL, Sigma), unlock with TL Creds

- Redis Heap Spray: Burst Of Large SET Commands Followed By CLUSTER SHARDS (TL-2026-7189) (locked: unlock with TL Creds)
- Redis EVAL Lua Closure Address Leak via tostring (TL-2026-7189) (locked: unlock with TL Creds)
- Redis Cluster Reconnaissance: CLUSTER NODES plus CLUSTER MYSHARDID From Same Client (TL-2026-7189) (locked: unlock with TL Creds)
- Redis Patched-Node Warning: FORGOTTEN_NODE Naming Sender (TL-2026-7189) (locked: unlock with TL Creds)
- redis-server Crash Indicators In Syslog - Possible UAF Exploitation (TL-2026-7189) (locked: unlock with TL Creds)
- Redis DEBUG or SAVE Command From Client (TL-2026-7189) (locked: unlock with TL Creds)
- Redis Cluster Bus Port Contacted By Non-Member Host (Use-After-Forget, TL-2026-7189) (locked: unlock with TL Creds)
- redis-server Outbound Connection To Non-Redis Port - Reverse Shell (TL-2026-7189) (locked: unlock with TL Creds)

Sign up free to unlock the detection rules: https://threadlinqs.com/?modal=signup

## Sources

- [Use-After-Forget: From Cluster Bus Bug to RCE in Redis (JFrog)](https://jfrog.com/blog/from-cluster-bus-bug-to-rce-in-redis/)
- [redis/redis PR #15685: Fix Remote UAF in Redis Cluster bus FORGOTTEN_NODE handling with demonstrated RCE impact](https://github.com/redis/redis/pull/15685)
- [redis/redis issue #15672 (referenced by PR #15685)](https://github.com/redis/redis/issues/15672)
- [redis/redis PR #10869: FORGOTTEN_NODE cluster bus extension (introduced July 2022)](https://github.com/redis/redis/pull/10869)
- [redis/redis PR #10536: SHARDID cluster bus extension (introduced November 2022)](https://github.com/redis/redis/pull/10536)
- [Redis Open Source 8.12 release notes](https://redis.io/docs/latest/operate/oss_and_stack/stack-with-enterprise/release-notes/redisce/redisos-8.12-release-notes/)
- [Redis Security Advisory CVE-2026-81934 (related but distinct TLS pending-data UAF)](https://redis.io/blog/security-advisory-cve-2026-81934)

## Full data

The other 8 detection rules (Splunk SPL / Microsoft KQL / Sigma) unlock with TL Creds; a free account includes daily creds: https://threadlinqs.com/?modal=signup
Indicator values unlock with TL Creds, at a lower price on Red and Purple; AI agents can query rules and IOCs through the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account): https://intel.threadlinqs.com/mcp

Canonical: https://intel.threadlinqs.com/threat/TL-2026-7189
