6.0medium
Redis: Authenticated users can execute LUA scripts as a different user
- Severity
- 6.0medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.85% (higher than 59% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- BIT-KEYDB-2025-46818BIT-REDIS-2025-46818BIT-VALKEY-2025-46818GHSA-qrv7-wcrx-q5jp
Description
Redis is an open source, in-memory database that persists on disk. Versions 8.2.1 and below allow an authenticated user to use a specially crafted Lua script to manipulate different LUA objects and potentially run their own code in the context of another user. The problem exists in all versions of Redis with LUA scripting. This issue is fixed in version 8.2.2. A workaround to mitigate the problem without patching the redis-server executable is to prevent users from executing LUA scripts. This can be done using ACL to block a script by restricting both the EVAL and FUNCTION command families.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| redis redis | < 8.2.2, before 6.2.20, from 7.0 before 7.2.11, from 7.4.0 before 7.4.6, from 8.0.0 before 8.0.4, from 8.2.0 before 8.2.2 | CVE List, NVD |
| keydb (Bitnami) | before 6.2.20, from 7.0.0 before 7.2.11, from 7.3.0 before 7.4.6, from 8.0.0 before 8.0.4, from 8.1.0 before 8.2.2 | Bitnami Vulnerability Database |
| redis (Bitnami) | before 6.2.20, from 7.0.0 before 7.2.11, from 7.3.0 before 7.4.6, from 8.0.0 before 8.0.4, from 8.1.0 before 8.2.2 | Bitnami Vulnerability Database |
| valkey (Bitnami) | before 7.2.11, from 8.0.0 before 8.0.6, from 8.1.0 before 8.1.4 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 6.0medium CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N |
| NVD | 7.3high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/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 open source, in-memory database that persists on disk. Versions 8.2.1 and below allow an authenticated user to use a specially crafted Lua script to manipulate different LUA objects and potentially run their own code in the context of another user. The problem exists in all versions of Redis with LUA scripting. This issue is fixed in version 8.2.2. A workaround to mitigate the problem without patching the redis-server executable is to prevent users from executing LUA scripts. This can be done using ACL to block a script by restricting both the EVAL and FUNCTION command families.
NVD (es)
Redis es una base de datos de código abierto, en memoria, que persiste en disco. Las versiones 8.2.1 e inferiores permiten a un usuario autenticado usar un script Lua especialmente diseñado para manipular diferentes objetos LUA y potencialmente ejecutar su propio código en el contexto de otro usuario. El problema existe en todas las versiones de Redis con scripting LUA. Este problema está solucionado en la versión 8.2.2. Una solución alternativa para mitigar el problema sin parchear el ejecutable redis-server es evitar que los usuarios ejecuten scripts LUA. Esto se puede hacer usando ACL para bloquear un script restringiendo tanto las familias de comandos EVAL como FUNCTION.
References
| https://github.com/redis/redis/security/advisories/GHSA-qrv7-wcrx-q5jp | advisory, third-party-advisory | |
| https://github.com/redis/redis/commit/45eac0262028c771b6f5307372814b75f49f7a9e | fix, patch | |
| https://github.com/redis/redis/releases/tag/8.2.2 | article, release-notes | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-46818 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-46818 changed 2025-10-03 | CVE Terms of Use |
| NVD | CVE-2025-46818 changed 2026-10-19 | Public domain |
| Bitnami Vulnerability Database | BIT-KEYDB-2025-46818 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-REDIS-2025-46818 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-VALKEY-2025-46818 changed 2026-09-08 | Apache-2.0 |