CVE-2026-23631: redis-server Lua use-after-free may allow remote code execution

Published May 5, 2026
·
Updated

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.

Other sources

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

— Microsoft

Affected Software

24 affected componentsFixes available
Redis redis-server<8.6.3
IBM Db2 Genius Hub<=1.1, 1.1.1, 1.1.2
IBM Agentics<=1.0
Redis Redis<8.6.3
All of the following
azurelinux/valkey<0:8.1.10-5.azl4
0:8.1.10-5.azl4
Microsoft Azure Linux=4.0
All of the following
azurelinux/valkey=8.0.9-1
Microsoft Azure Linux=3.0
debian/redis<5:7.0.15-1~deb12u8
5:7.0.15-1~deb12u8
debian/redis<5:8.0.2-3+deb13u3
5:8.0.2-3+deb13u3
debian/redis<5:8.0.6-3
5:8.0.6-3
debian/valkey<8.1.1+dfsg1-3+deb13u3
8.1.1+dfsg1-3+deb13u3
debian/valkey<9.1.1-1
9.1.1-1
debian/redis<=5:7.0.15-1~deb12u7
5:8.6.3-15:7.0.15-1~deb12u85:8.0.2-3+deb13u35:8.0.6-3
debian/valkey
8.1.1+dfsg1-3+deb13u39.1.1-1
ubuntu/redis*
ubuntu/redis*
ubuntu/redis*
ubuntu/redis*
ubuntu/redis*
ubuntu/redis*
ubuntu/redis*
ubuntu/redis*
ubuntu/redis*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade azurelinux/valkey to a version that resolves this vulnerability.

    Fixed in 0:8.1.10-5.azl4
  2. Upgrade

    Upgrade debian/redis to a version that resolves this vulnerability.

    Fixed in 5:7.0.15-1~deb12u8
  3. Upgrade

    Upgrade debian/redis to a version that resolves this vulnerability.

    Fixed in 5:8.0.2-3+deb13u3
  4. Upgrade

    Upgrade debian/redis to a version that resolves this vulnerability.

    Fixed in 5:8.0.6-3
  5. Upgrade

    Upgrade debian/valkey to a version that resolves this vulnerability.

    Fixed in 8.1.1+dfsg1-3+deb13u3
  6. Upgrade

    Upgrade debian/valkey to a version that resolves this vulnerability.

    Fixed in 9.1.1-1
  7. Upgrade

    Upgrade debian/redis to a version that resolves this vulnerability.

    Fixed in 5:8.6.3-1Fixed in 5:7.0.15-1~deb12u8Fixed in 5:8.0.2-3+deb13u3Fixed in 5:8.0.6-3
  8. Upgrade

    Upgrade debian/valkey to a version that resolves this vulnerability.

    Fixed in 8.1.1+dfsg1-3+deb13u3Fixed in 9.1.1-1
  9. Upgrade

    Upgrade redis-server to a version that resolves this vulnerability.

    Fixed in 8.6.3
  10. Configuration

    Use the workaround by avoiding replicas where replica-read-only is disabled; enable replica-read-only so replicas are read-only during master-replica synchronization.

    redis-server replica-read-only = enabled
  11. Configuration

    Use the workaround by preventing users from executing Lua scripts.

    redis-server (Lua scripting) Lua script execution = disabled

Event History

May 5, 2026
CVE Published
via MITRE·04:39 PM
Data Sourced
via MITRE·04:39 PM
DescriptionWeakness
Data Sourced
via Red Hat·05:02 PM
DescriptionSeverityAffected Software
Data Sourced
via OSV·05:17 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·05:17 PM
DescriptionSeverityWeakness
May 6, 2026
Data Sourced
via NVD·04:14 PM
Affected Software
Updated
via NVD·04:14 PM
Severity
May 7, 2026
Exploit Published
via GitHub·12:36 PM
May 8, 2026
Data Sourced
via Microsoft·08:01 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:01 AM
Affected Software
Jun 8, 2026
News Published
via The Hacker News·01:18 PM
Jun 30, 2026
Updated
via NVD·01:17 PM
SeverityWeakness
Jul 13, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Nov 14, 2026
Updated
via OSV·05:00 PM
Affected Software
Nov 24, 2026
Updated
via OSV·05:00 AM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2026-23631?

CVE-2026-23631 is classified as a critical vulnerability due to its potential for remote code execution.

2

How do I fix CVE-2026-23631?

To fix CVE-2026-23631, upgrade redis-server to version 8.6.4 or later.

3

Who is affected by CVE-2026-23631?

CVE-2026-23631 affects all versions of redis-server that utilize Lua scripting prior to 8.6.4.

4

What is the nature of the vulnerability in CVE-2026-23631?

CVE-2026-23631 is a use-after-free vulnerability that can be exploited during master-replica synchronization.

5

Can CVE-2026-23631 be exploited remotely?

Yes, CVE-2026-23631 can be exploited remotely by an authenticated attacker.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203