Use After Free in Redis
CVE-2026-23631
Redis is an in-memory data structure store. In all versions of redis-server with Lua scripting, an authenticated attacker can exploit the master-replica synchronization mechanism to trigger a use-after-free on replicas where replica-read-only is disabled or can be disabled, which may lead to remote code execution. A workaround is to prevent users from executing Lua scripts or avoid using replicas where replica-read-only is disabled. This is patched in version 8.6.3.
Vulnerability class: Use-After-Free
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.1 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H.
EPSS exploit prediction
EPSS 0.031, 87.9th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Redis — versions < 8.6.3
Weakness classification (CWE)
Public exploits and proof-of-concept code
2 public repositories with exploit or proof-of-concept code for this CVE:
- yoyosh/DarkReplica (33 stars, last pushed 2026-06-02): CVE-2026-23631 (DarkReplica) Redis Exploit
- HORKimhab/CVE-2026-23631 (last pushed 2026-06-04): CVE-2026-23631-Draft
References
- https://github.com/redis/redis/security/advisories/GHSA-8ghh-qpmp-7826 (Mitigation, Vendor Advisory)
- https://github.com/redis/redis/releases/tag/8.6.3 (Release Notes)
- access.redhat.com/errata/RHSA-2026:25216
- access.redhat.com/errata/RHSA-2026:25219
- access.redhat.com/errata/RHSA-2026:25925
- access.redhat.com/errata/RHSA-2026:26306
- access.redhat.com/errata/RHSA-2026:26540
- access.redhat.com/security/cve/CVE-2026-23631
- bugzilla.redhat.com/show_bug.cgi
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-23631.json
This CVE has public exploit evidence. See the latest CVEs with public exploits.