cve.bz

CVE-2026-23631 (DarkReplica) redis redis: Use After Free

6.1 mediumEPSS 3.1%

Known as DarkReplica

Medium (6.1) in redis redis. EPSS 3.1% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

6.1 medium
CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N

CVSS 3.1

8.1 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
EPSS
3.1% (unchanged from 3.1% a week ago; 2.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 88th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-05-06. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-416 Use After Free
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-23631 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-23631?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-23631?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-23631 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
redis:redisbefore 8.6.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12redis5:7.0.15-1~deb12u8DEBIAN-CVE-2026-23631 DLA-4682-1
Debian13redis5:8.0.2-3+deb13u3DEBIAN-CVE-2026-23631 DSA-6538-1
Debian13valkey8.1.1+dfsg1-3+deb13u3DEBIAN-CVE-2026-23631 DSA-6586-1
Debian14redictno fix listedDEBIAN-CVE-2026-23631
Debian14redis5:8.0.6-3DEBIAN-CVE-2026-23631
Debian14valkey9.1.1-1DEBIAN-CVE-2026-23631
Ubuntu24.04:LTS, 25.10, 26.04:LTS and 6 moreredisno fix listedUBUNTU-CVE-2026-23631
Red Hatenterprise_linux:9::appstreamredis, redis-doc, redis-devel and 2 more0:7.2.14-1.module+el9.8.0+24327+41ceb644RHSA-2026:25219
Red Hatenterprise_linux:9::appstreamvalkey, valkey-devel, valkey-debuginfo and 1 more0:8.0.9-1.el9_8RHSA-2026:25925
Red Hatenterprise_linux:10.2valkey, valkey-devel, valkey-debuginfo and 1 more0:8.0.9-1.el10_2RHSA-2026:25216
Red Hatenterprise_linux_eus:10.0valkey, valkey-devel, valkey-debuginfo and 1 more0:8.0.9-1.el10_0RHSA-2026:26540
Red Hathummingbird:1valkey, valkey-doc, valkey-rdma and 3 more0:9.0.4-0.1.hum1RHSA-2026:14316
Red Hatrhel_e4s:9.4::appstreamredis, redis-doc, redis-devel and 2 more0:7.0.12-2.module+el9.4.0+24450+e284b512.8RHSA-2026:33444
Red Hatrhel_eus:9.6::appstreamredis, redis-doc, redis-devel and 2 more0:7.2.14-1.module+el9.6.0+24344+1bc33ec7RHSA-2026:26306
openSUSELeap 16.0redis, redis-modules8.10.1-bp160.1.1openSUSE-SU-2026:21612-1
openSUSETumbleweedredis8.6.3-1.1openSUSE-SU-2026:10711-1
openSUSETumbleweedvalkey9.0.4-1.1openSUSE-SU-2026:10719-1
AlmaLinux9redis, redis-doc, redis-devel7.2.14-1.module_el9.8.0+258+b8f945d3ALSA-2026:25219
AlmaLinux9valkey, valkey-devel8.0.9-1.el9_8ALSA-2026:25925
AlmaLinux10valkey, valkey-devel8.0.9-1.el10_2ALSA-2026:25216
Rocky Linux9redis0:7.2.14-1.module+el9.8.0+40207+e2014501RLSA-2026:25219
Rocky Linux9valkey0:8.0.9-1.el9_8RLSA-2026:25925
Rocky Linux10valkey0:8.0.9-1.el10_2RLSA-2026:25216
Alpinev3.20, v3.21valkey7.2.13-r0ALPINE-CVE-2026-23631
Alpinev3.22valkey8.1.7-r0ALPINE-CVE-2026-23631
Alpinev3.23, v3.24valkey9.0.4-r0ALPINE-CVE-2026-23631
Azure Linux3valkey8.0.9-1AZL-86084
Alpaquita23redis7.2.14-r0BELL-CVE-2026-23631
Alpaquita25valkey8.1.7-r0BELL-CVE-2026-23631
Alpaquitastreamvalkey9.0.4-r0BELL-CVE-2026-23631

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This Important vulnerability in Redis affects instances configured with Lua scripting and operating as replicas where the `replica-read-only` setting is disabled or can be modified by an authenticated attacker. Exploitation of a use-after-free flaw during master-replica synchronization could lead to remote code execution. The risk is present in deployments where Redis replicas are configured for write operations or lack sufficient access controls to prevent modification of the `replica-read-only` setting.

Red Hat's mitigation

To mitigate this flaw, ensure that Redis replicas maintain `replica-read-only` as enabled and prevent its modification by unauthorized users. If Lua scripting is not a required feature, consider disabling it to reduce the attack surface. Restricting network access to Redis instances to trusted clients can also limit exposure.

For Redis configuration, edit the `redis.conf` file to include or verify:

`replica-read-only yes`

After modifying the configuration, restart the Redis service for the changes to take effect. This action will temporarily interrupt service availability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10valkey-0:8.0.9-1.el10_2Fixed 2026-06-11RHSA-2026:25216
Red Hat Enterprise Linux 10.0 Extended Update Supportvalkey-0:8.0.9-1.el10_0Fixed 2026-06-17RHSA-2026:26540
Red Hat Enterprise Linux 9redis:7-9080020260521083756.9Fixed 2026-06-11RHSA-2026:25219
Red Hat Enterprise Linux 9valkey-0:8.0.9-1.el9_8Fixed 2026-06-15RHSA-2026:25925
Red Hat Enterprise Linux 9.4 Update Services for SAP Solutionsredis:7-9040020260625094332.9Fixed 2026-06-30RHSA-2026:33444
Red Hat Enterprise Linux 9.6 Extended Update Supportredis:7-9060020260602115714.9Fixed 2026-06-16RHSA-2026:26306
Red Hat Hardened Imagesvalkey-main-9.0.4-0.1.hum1Fixed 2026-05-06RHSA-2026:14316
Red Hat Enterprise Linux 8redis:6/redisNot affected
Red Hat Enterprise Linux 9redisNot affected
Red Hat Hardened ImagesboostNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-23631.

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

References

Check your stackJSON