# Autonomous AI Discovers Critical 2-Year-Old Redis RCE Hidden in Plain Sight


## The Threat


For over two years, a critical remote code execution flaw lay dormant in Redis, one of the most widely deployed database systems in modern cloud infrastructure. The vulnerability, tracked as CVE-2026-23479, is a use-after-free bug in Redis's blocking-client code that allows an authenticated attacker to execute arbitrary operating system commands on any machine running the affected versions. The flaw was introduced in Redis 7.2.0 in February 2023 and persisted through multiple security reviews and minor releases until patches were released on May 5, 2026—undetected for 844 days.


What makes this discovery particularly significant is how it was found: not by conventional security researchers or vendor audits, but by an autonomous AI security tool built by Team Xint Code. The tool was designed specifically to hunt bugs in large codebases, and it succeeded where traditional methods had failed. The flaw wasn't a subtle, theoretical weakness; it was a practical, exploitable RCE chain demonstrated publicly at ZeroDay.Cloud 2025, complete with working proof-of-concept code that has since been published in full.


The technical vulnerability lives in the unblockClientOnKey() function in Redis's src/blocked.c file. When a key event triggers a blocked command to resume, the function processes it through processCommandAndResetClient() and then continues to access the same client pointer—except that function can free the client structure as a side effect, creating a classic use-after-free condition (CWE-416). The bug was born from two separate commits in early 2023 that, alone, were harmless, but combined unlocked a complete remote code execution chain requiring only authenticated access.


## Severity and Impact


| Aspect | Details |

|--------|---------|

| CVE Identifier | CVE-2026-23479 |

| CVSS v3.1 Score | 8.8 (High) |

| CVSS v4.0 Score | 7.7 (High) |

| Vector (CVSS v3.1) | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |

| Attack Vector | Network |

| Attack Complexity | Low |

| Privileges Required | Low (Authenticated user) |

| User Interaction | None |

| Scope | Unchanged |

| Confidentiality Impact | High |

| Integrity Impact | High |

| Availability Impact | High |

| CWE Classification | CWE-416 (Use After Free) |

| Discovery Method | Autonomous AI security tool |

| Discovered By | Team Xint Code / Theori |

| Public Disclosure Date | June 3, 2026 |


## Affected Products


Vulnerable Redis Versions:

  • Redis 7.2.0 through 7.2.13
  • Redis 7.3.0 through 7.3.x (all versions)
  • Redis 7.4.0 through 7.4.8
  • Redis 8.0.0 through 8.1.x (all versions)
  • Redis 8.2.0 through 8.2.5
  • Redis 8.3.0 through 8.3.x (all versions)
  • Redis 8.4.0 through 8.4.2
  • Redis 8.5.0 through 8.5.x (all versions)
  • Redis 8.6.0 through 8.6.2

  • Patched Versions (Released May 5, 2026):

  • Redis 7.2.14 and later
  • Redis 7.4.9 and later
  • Redis 8.2.6 and later
  • Redis 8.4.3 and later
  • Redis 8.6.3 and later

  • Deployment Impact:

  • Official Redis Docker images (affected due to partial RELRO configuration)
  • Redis instances deployed in cloud environments (AWS ElastiCache, Google Cloud Memorystore, Azure Cache, self-managed instances)
  • Kubernetes deployments using standard Redis images
  • On-premises Redis installations

  • ## Mitigations


    Immediate Actions:

    1. Upgrade Priority: Update immediately to patched versions (7.2.14, 7.4.9, 8.2.6, 8.4.3, or 8.6.3). Minor version upgrades within a series are designed as drop-in replacements.


    2. Authentication & ACL Hardening:

    - Disable the default user or assign it a strong, unique password

    - Restrict ACL privileges: remove CONFIG command access unless absolutely required

    - Create least-privilege users for application roles; avoid using a single shared operator role with admin access

    - Audit ACL policies: the exploit requires @admin, @scripting, @stream, and @read/@write categories


    3. Network Segmentation:

    - Restrict Redis network access to only trusted application servers

    - Do not expose Redis instances to the public internet

    - Use private subnets and security groups to limit connectivity

    - Consider VPN or SSH tunneling for remote access


    4. Managed Services: If using AWS ElastiCache, Google Cloud Memorystore, or Azure Cache for Redis, patches are applied on vendor schedules—verify patched status with your provider immediately.


    5. Disable Lua Scripting (if not required): The exploit chain uses EVAL to leak heap addresses; if Lua scripting isn't essential, disable it via ACL restrictions.


    6. Monitor for Exploitation:

    - Watch for unexpected EVAL commands, CONFIG SET calls, and XREAD/XADD stream operations in access logs

    - Alert on any authenticated user executing Lua scripts or modifying configuration

    - Monitor process execution on Redis hosts for unexpected shell commands


    7. Temporary Workaround (pre-upgrade): Deny CONFIG SET access via ACL if operationally feasible; this breaks the demonstrated exploit chain but does not address the underlying use-after-free.


    ## References


  • Official Redis Security Advisory: https://redis.io/docs/management/security/cves/
  • Team Xint Code / Theori Technical Writeup: https://www.theori.io/research/redis-cve-2026-23479
  • Wiz Research Analysis: https://www.wiz.io/blog/redis-rce-cve-2026-23479
  • Redis Download & Patch Information: https://redis.io/download/
  • NVD CVE-2026-23479 Entry: https://nvd.nist.gov/vuln/detail/CVE-2026-23479

  • ---


    ## HackWire Analysis


    This discovery underscores a fundamental shift in how security bugs are found—and how dangerous gaps can persist in critical infrastructure. An autonomous AI tool succeeded where two years of traditional security review and industry audits failed. That's not reassuring; it's a wake-up call.


    The vulnerability's longevity wasn't due to opacity or obscurity. Redis is open source. The commit history is public. Security researchers regularly audit it. Yet the bug survived because it required *two separate commits in different parts of the codebase to activate*. This is the new surface: not individual exploits, but emergent vulnerabilities born from the interaction of seemingly unrelated changes. Traditional code review—line-by-line inspection of a single patch—misses these patterns entirely.


    The cloud footprint compounds the risk. Wiz's analysis notes that Redis is in a substantial majority of cloud environments, and many run without authentication or with weak defaults. The exploit does require an authenticated session, but in a default Redis deployment, the default user holds every privilege the attack chain needs. That's not a misconfiguration; it's the baseline. Organizations that never bothered to harden Redis—or believed it was safe behind a corporate network—are exposed.


    What concerns us most is the now-public exploit code. The chain is elegant and non-trivial: leak a heap address via Lua, groom client memory limits, trigger a use-after-free during command dispatch, implant a fake client structure, and overwrite a function pointer via Redis's own memory accounting. Each step has multiple failure points. Each step could have been detected. None were. Now that it's public, the window for unpatched systems closes fast.


    The broader pattern is clear: critical, difficult-to-find bugs are now being discovered by automated tools faster than humans can patch them. Organizations must assume they're running vulnerable code and prioritize patching velocity over perfection. For Redis specifically, this is a "patch today" vulnerability in any environment where you can't guarantee that every authenticated user is absolutely trusted. In most cloud deployments, that means everyone.


    — HackWire Editorial


    ## Related Coverage


  • Read more in our [Vulnerabilities](https://www.hackwire.news/category/vulnerabilities) coverage
  • Cross-reference with [Breaches](https://www.hackwire.news/category/breaches) and [Malware](https://www.hackwire.news/category/malware)
  • Stay current via the [HackWire homepage](https://www.hackwire.news/)