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.

Affected Software

4 affected componentsFixes available
Redis redis-server<8.6.3
Redis redis<8.6.3
IBM Db2 Genius Hub<=1.1, 1.1.1, 1.1.2
IBM Agentics<=1.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 8.6.3
  2. 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
  3. 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 NVD·05:17 PM
DescriptionSeverityWeaknessAffected Software
Jul 13, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

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