CVE-2025-49844
JSON

10.0critical

Redis Lua Use-After-Free may lead to remote code execution

Severity
10.0critical CVSS:3.1 by GitHub_M
Exploit likelihood
5.43% (higher than 94% of CVEs)
Published
Last changed
Assigned by
GitHub_M
Also known as
BIT-KEYDB-2025-49844BIT-REDIS-2025-49844BIT-VALKEY-2025-49844GHSA-4789-qfc9-5f9q

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 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.

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
lfprojects valkeybefore 7.2.11, from 8.0.0 before 8.0.6, from 8.1.0 before 8.1.4NVD
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_M10.0critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
NVD9.9critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Bitnami Vulnerability Databasecritical rating

Classification

CWE-416

SSVC (CISA-ADP): exploitation poc, 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 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.

NVD (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.

References

Sources

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