
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-23631 is a use-after-free vulnerability in Redis's Lua scripting subsystem, dubbed "DarkReplica," that allows an authenticated attacker to exploit the master-replica synchronization mechanism to potentially achieve remote code execution on replica nodes. It affects all versions of redis-server with Lua scripting (>= 7.0.0) where replica-read-only is disabled or can be disabled, and is patched in Redis 8.6.3. The vulnerability was reported by independent researcher Yoni Sherez and identified during the Wiz Zeroday Cloud event, with public disclosure on May 5, 2026. It carries a CVSS v3.1 score of 8.1 (High) and a CVSS v4.0 score of 6.1 (Medium) (GitHub Advisory, Redis Release).
The root cause is a use-after-free condition (CWE-416) in Redis's Lua scripting engine, triggered through the master-replica synchronization mechanism. When replica-read-only is disabled on a replica, an authenticated attacker can craft Lua script execution in a way that causes memory to be freed and subsequently referenced, leading to memory corruption. The attack vector is network-based and requires low privileges (authenticated access), but no user interaction, and the attack complexity is rated High under CVSSv4, reflecting the need to manipulate the replication state. The vulnerability was publicly named "DarkReplica" and detailed in a technical write-up by Zeroday Cloud, with a PoC repository also appearing on GitHub (GitHub Advisory, Zeroday Cloud).
Successful exploitation can lead to remote code execution on affected Redis replica instances, allowing an attacker to compromise the integrity and availability of the replica server. The confidentiality impact is rated None (no direct data exfiltration via the vulnerability itself), but integrity and availability are both rated High — an attacker could corrupt data, crash the replica, or execute arbitrary commands in the context of the Redis process. In environments where Redis replicas serve as read-scale infrastructure or caching layers, exploitation could disrupt dependent applications and potentially enable lateral movement within the internal network (GitHub Advisory, GBHackers).
replica-read-only set to no by connecting and issuing CONFIG GET replica-read-only.AUTH <password>.CONFIG GET replica-read-only returns no, or attempt to disable it via CONFIG SET replica-read-only no if the authenticated user has sufficient privileges.EVAL command that interacts with the master-replica synchronization mechanism in a way that causes a use-after-free condition in the Lua scripting engine on the replica.EVAL or EVALSHA commands executed by non-administrative users on replica nodes; CONFIG SET replica-read-only no commands in Redis command logs; crash or segfault entries in Redis logs (redis.log) indicating memory corruption./bin/sh, bash, curl, wget); unusual memory usage spikes in the Redis process.The primary remediation is to upgrade Redis to version 8.6.3 or later, which contains the security fix for CVE-2026-23631 (Redis Release). For environments that cannot immediately patch, two workarounds are available: (1) disable Lua scripting access for untrusted users using Redis ACLs (e.g., deny the EVAL, EVALSHA, and SCRIPT commands), or (2) ensure all replica instances have replica-read-only yes set in their configuration and prevent users from changing this setting via CONFIG SET. Valkey (the Redis fork) also released patched versions (8.0.8, 9.1.0) addressing this issue (GitHub Advisory, Redis Advisory).
Redis published an official security advisory blog post covering CVE-2026-23631 alongside four other CVEs patched in the 8.6.3 release, emphasizing the security urgency of the update (Redis Advisory). The Canadian Centre for Cyber Security (CCCS) and HKCERT both issued advisories urging users to patch (CCCS Advisory). Security media outlets including GBHackers, CyberSecurityNews, and SecureBulletin covered the vulnerability cluster, highlighting the RCE potential and the "DarkReplica" naming. The Zeroday Cloud blog published a detailed technical breakdown of the vulnerability mechanics, and the oss-security mailing list also carried a disclosure post (Zeroday Cloud, oss-sec).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."