CVE-2025-46818
JSON

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 packageVersionsReported 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.2CVE 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.2Bitnami 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.2Bitnami Vulnerability Database
valkey (Bitnami)before 7.2.11, from 8.0.0 before 8.0.6, from 8.1.0 before 8.1.4Bitnami Vulnerability Database

All scores

GitHub_M6.0medium CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N
NVD7.3high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Bitnami Vulnerability Databasehigh rating

Classification

CWE-94

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

Sources

SourceRecordLicence
CVE ListCVE-2025-46818 changed 2025-10-03CVE Terms of Use
NVDCVE-2025-46818 changed 2026-10-19Public domain
Bitnami Vulnerability DatabaseBIT-KEYDB-2025-46818 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-REDIS-2025-46818 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-VALKEY-2025-46818 changed 2026-09-08Apache-2.0