CVE-2026-23631

redis-server Lua use-after-free may allow remote code execution

Published May 5, 2026 CVSS 4.0 · 6.1 Medium EPSS 3.1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

An authenticated attacker who can run Lua scripts in redis-server can trigger a use‑after‑free during the master‑replica synchronization process on replicas where replica‑read‑only is not enforced. The vulnerability allows the attacker to execute arbitrary code on the replica host, resulting in remote code execution. The flaw is a classic use‑after‑free (CWE‑416) that undermines the integrity of replica memory. Its exploitation requires the attacker to have sufficient credentials to run scripts and to influence the synchronization flow.

Affected Systems

All redis‑server versions that include Lua support prior to version 8.6.3 run the vulnerable code. The issue manifests when replicas have replica‑read‑only disabled or can be disabled, allowing the use‑after‑free to be reached. Any deployment that uses replicas without the read‑only safeguard and permits authenticated Lua execution is affected.

Risk and Exploitability

The CVSS score is 6.1, indicating moderate severity. The EPSS score is 3%, and the vulnerability is not listed in CISA KEV. The exploit path requires authentication and Lua scripting ability, implying that the attacker must have at least internal or privileged access. Once the use‑after‑free is triggered via replication, the attacker can run arbitrary code on the replica, controlling that host.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade redis to version 8.6.3 or later, which contains the patch.
  • Disable Lua scripting or restrict it to trusted users when the server is in use.
  • Ensure replica‑read‑only is enabled on all replicas, or avoid using replicas where this setting can be disabled.

Generated by OpenCVE AI on August 3, 2026 at 07:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4682-1 redis security update
Debian DSA Debian DSA DSA-6538-1 redis security update
History
Type Values Removed Values Added
CPEs cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:*
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Redis
Redis redis
Vendors & Products Redis
Redis redis
Type Values Removed Values Added
Description 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.
Title redis-server Lua use-after-free may allow remote code execution
Weaknesses CWE-416
References
Metrics cvssV4_0

{'score': 6.1, 'vector': '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 16, 2026, 12:04 PM
Reserved
Jan 14, 2026, 4:08 PM
Status
Modified
Published
May 5, 2026, 5:17 PM
Modified
Jul 25, 2026, 11:10 AM
Severity
Important
Public date
May 5, 2026, 4:39 PM