CVE-2025-49844

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 the garbage collector, trigger a use-after-free and potentially lead to remote code execution. The problem exists in all versions of Redis with Lua scripting. This issue is fixed in version 8.2.2. To workaround this issue without patching the redis-server executable is to prevent users from executing Lua scripts. This can be done using ACL to restrict EVAL and EVALSHA commands.
Configurations

Configuration 1 (hide)

OR cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:*
cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:*
cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:*
cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:*
cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:*

Configuration 2 (hide)

OR cpe:2.3:a:lfprojects:valkey:*:*:*:*:*:*:*:*
cpe:2.3:a:lfprojects:valkey:*:*:*:*:*:*:*:*
cpe:2.3:a:lfprojects:valkey:*:*:*:*:*:*:*:*

History

19 Oct 2026, 16:10

Type Values Removed Values Added
Summary
  • (es) Redis es una base de datos en memoria de código abierto 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 el recolector de basura, desencadenar un uso después de liberación y potencialmente conducir a la ejecución remota de código. El problema existe en todas las versiones de Redis con scripting Lua. Este problema está solucionado en la versión 8.2.2. Para solucionar este problema sin parchear el ejecutable del servidor Redis es evitar que los usuarios ejecuten scripts Lua. Esto se puede hacer usando ACL para restringir los comandos EVAL y EVALSHA.

Information

Published : 2025-10-03 20:15

Updated : 2026-10-19 16:10


NVD link : CVE-2025-49844

Mitre link : CVE-2025-49844

CVE.ORG link : CVE-2025-49844


JSON object : View

Products Affected

redis

  • redis

lfprojects

  • valkey
CWE
CWE-416

Use After Free