MilikMilik

Redis Authenticated RCE Flaw CVE-2026-23479: Patch and Protect Now

Redis Authenticated RCE Flaw CVE-2026-23479: Patch and Protect Now
Interest|High-Quality Software

What CVE-2026-23479 Is and Why It Matters

CVE-2026-23479 is an authenticated remote code execution vulnerability in Redis that allows a logged-in client to trigger a use-after-free bug and run arbitrary operating system commands on the Redis host. The flaw affects Redis 7.2.0 and later branches until the recent Redis security update and can grant full compromise of the database server when exploited. Classified as a use-after-free (CWE-416) in the blocking-client code, the bug lives in the unblockClientOnKey() function, which keeps using a client pointer after processCommandAndResetClient() may free it. According to The Hacker News, it was introduced by two separate code changes that only became dangerous in combination and survived several security reviews. Because Redis is common in cloud deployments, often with default users holding broad privileges, this Redis RCE vulnerability significantly widens the attack surface for exposed or weakly protected instances.

Discovery by Autonomous AI and Affected Redis Versions

The vulnerability remained hidden for about two years before being identified by Team Xint Code, described as an autonomous AI security tool designed to hunt bugs in large codebases. Their analysis showed that a January 2023 refactor added the unchecked call to processCommandAndResetClient(), while a March 2023 change added further client access afterward; alone they were harmless, together they created the Redis RCE vulnerability now tracked as CVE-2026-23479. This flaw first appeared in Redis 7.2.0 and propagated across all stable branches released afterward. Official guidance now lists the affected branches and their fixes: 7.2.0–7.2.13 patched in 7.2.14, 7.4.0–7.4.8 patched in 7.4.9, 8.2.x patched in 8.2.6, 8.4.x patched in 8.4.3, and 8.6.x patched in 8.6.3, all shipped as minor drop-in upgrades.

How the Authenticated Remote Code Execution Chain Works

CVE-2026-23479 is not a simple bug; it is a multi-stage authenticated remote code execution chain that abuses Redis’s own features. First, an attacker uses a one-line Lua script (EVAL "return tostring(redis.call)" 0) to leak a heap pointer. Second, they carefully shape client memory limits and blocking stream commands so that Redis frees a blocked client and a pipelined SET call reuses that freed memory with a fake client structure. Third, when updateClientMemoryUsage() runs, it performs an out-of-bounds decrement based on attacker-controlled fields, targeting the Global Offset Table to redirect strcasecmp() to system(). From that point, the next parsed Redis command executes as a shell command on the host. The published exploit chain highlights why partial RELRO in the official Redis Docker image leaves the GOT writable, making exploitation more practical in many environments.

Authentication, ACL Requirements, and Risk Context

One important detail for defenders is that this Redis security update addresses an RCE that requires authentication and specific privileges. The chain needs a session that can run CONFIG SET, Lua EVAL, stream commands like XREAD or XADD, and basic SET/GET operations, mapping to the @admin, @scripting, @stream, and @read/@write ACL categories. On paper, this limits the threat to trusted users. In practice, Wiz’s analysis notes that Redis appears in a large majority of cloud environments, and many instances run without a password or with default users that already have all the necessary privileges. While Redis reports no evidence of exploitation so far and there are no confirmed in-the-wild cases yet, the public exploit write-up and detailed technical chain raise the risk that threat actors will attempt to weaponize CVE-2026-23479 in the near future.

Immediate Steps for Developers: Patch, Harden, and Monitor

Developers and operators should prioritize installing the CVE-2026-23479 patch by upgrading to the latest minor release in their Redis series—7.2.14, 7.4.9, 8.2.6, 8.4.3, or 8.6.3—which are intended as drop-in updates. Managed Redis services will patch on their own timelines, but Redis Cloud is already updated, so verify your provider’s status. As a short-term mitigation, tighten ACLs and remove CONFIG privileges from application users where possible, since blocking CONFIG SET breaks the published exploit chain even though it does not fix the underlying bug. Enforce passwords or Redis ACL users for all instances, disable or restrict Lua scripting if unused, and avoid exposing Redis directly to the internet. Finally, add monitoring for unusual EVAL, CONFIG, stream, or large pipeline activity. Treat CVE-2026-23479 as a critical authenticated remote code execution issue and schedule emergency maintenance accordingly.

Milik earns a commission when you shop through our links, at no extra cost to you. Editorial content is independently selected by our team.

You May Also Like

Comments
Say something...
No comments yet. Be the first to share your thoughts!