6.1medium
redis-server Lua use-after-free may allow remote code execution
- Severity
- 6.1medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 3.09% (higher than 88% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- BIT-KEYDB-2026-23631BIT-REDIS-2026-23631BIT-VALKEY-2026-23631GHSA-8ghh-qpmp-7826
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| redis redis | < 8.6.3, before 8.6.3 | CVE List, NVD |
| valkey | Not specified Not affected: from 0:8.0.9-1.el10_2 before *, from 0:8.0.9-1.el10_0 before *, from 0:8.0.9-1.el9_8 before * | CVE List |
| redis:7 | Not specified Not affected: from 9080020260521083756.9 before *, from 9040020260625094332.9 before *, from 9060020260602115714.9 before * | CVE List |
| valkey-main | Not specified Not affected: from 9.0.4-0.1.hum1 before * | CVE List |
| redis:6/redis | Not specified | CVE List |
| redis | Not specified | CVE List |
| boost | Not specified | CVE List |
| keydb (Bitnami) | from 7.2.0 before 7.2.14, from 7.3.0 before 7.4.9, from 8.0.0 before 8.2.6, from 8.3.0 before 8.4.3, from 8.5.0 before 8.6.3 | Bitnami Vulnerability Database |
| redis (Bitnami) | from 7.2.0 before 7.2.14, from 7.3.0 before 7.4.9, from 8.0.0 before 8.2.6, from 8.3.0 before 8.4.3, from 8.5.0 before 8.6.3 | Bitnami Vulnerability Database |
| valkey (Bitnami) | before 7.2.13, from 8.0.0 before 8.0.8, from 8.1.0 before 8.1.7, from 9.0.0 before 9.0.4 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 6.1medium CVSS:4.0 | 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 |
| redhat-SADP | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H |
| Bitnami Vulnerability Database | high rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
Redis es un almacén de estructuras de datos en memoria. En todas las versiones de redis-server con scripting Lua, un atacante autenticado puede explotar el mecanismo de sincronización maestro-réplica para desencadenar un uso después de liberación en réplicas donde replica-read-only está deshabilitado o puede ser deshabilitado, lo que puede conducir a ejecución remota de código. Una solución alternativa es evitar que los usuarios ejecuten scripts Lua o evitar el uso de réplicas donde replica-read-only está deshabilitado. Esto está parcheado en la versión 8.6.3.
References
| https://github.com/redis/redis/security/advisories/GHSA-8ghh-qpmp-7826 | advisory, mitigation, vendor-advisory | |
| https://github.com/redis/redis/releases/tag/8.6.3 | article, release-notes | |
| https://access.redhat.com/security/cve/CVE-2026-23631 | vdb-entry, web | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2466788 | issue-tracking, web | |
| https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-23631.json | web | |
| https://access.redhat.com/errata/RHSA-2026:26540 | vendor-advisory, web | |
| https://access.redhat.com/errata/RHSA-2026:25216 | vendor-advisory, web | |
| https://access.redhat.com/errata/RHSA-2026:33444 | vendor-advisory, web | |
| https://access.redhat.com/errata/RHSA-2026:26306 | vendor-advisory, web | |
| https://access.redhat.com/errata/RHSA-2026:25219 | vendor-advisory, web | |
| https://access.redhat.com/errata/RHSA-2026:25925 | vendor-advisory, web | |
| https://access.redhat.com/errata/RHSA-2026:14316 | vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-23631 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-23631 changed 2026-07-16 | CVE Terms of Use |
| NVD | CVE-2026-23631 changed 2026-07-25 | Public domain |
| Bitnami Vulnerability Database | BIT-KEYDB-2026-23631 changed 2026-09-10 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-REDIS-2026-23631 changed 2026-09-10 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-VALKEY-2026-23631 changed 2026-09-10 | Apache-2.0 |