---
id: CVE-2026-23631
title: Redis is an in-memory data structure store
summary: >-
  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…
severity: high
cvss: 8.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H'
cwe:
  - CWE-416
  - CWE-416
vendor: redis
product: redis
affected:
  - redis < 8.6.3
patched:
  - redis 8.6.3
published: '2026-05-05'
updated: '2026-06-30'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-23631'
references:
  - url: 'https://github.com/redis/redis/releases/tag/8.6.3'
    label: security-advisories@github.com
  - url: 'https://github.com/redis/redis/security/advisories/GHSA-8ghh-qpmp-7826'
    label: security-advisories@github.com
  - url: 'https://access.redhat.com/errata/RHSA-2026:25216'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/errata/RHSA-2026:25219'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/errata/RHSA-2026:25925'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/errata/RHSA-2026:26306'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/errata/RHSA-2026:26540'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/errata/RHSA-2026:33444'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/security/cve/CVE-2026-23631'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2466788'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-23631.json
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
tags:
  - nvd
  - exploit-available
epss: 0.02805
epssPercentile: 0.85897
ingestedAt: '2026-07-01T09:50:45.529Z'
exploits:
  github: 2
  githubRepos:
    - 'https://github.com/yoyosh/DarkReplica'
    - 'https://github.com/HORKimhab/CVE-2026-23631'
  checkedAt: '2026-09-25T08:20:53.218Z'
exploitAvailable: true
---

## Overview

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.

## Affected

- `redis < 8.6.3`

## Remediation

Upgrade past the affected range:

- `redis 8.6.3`
