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 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 |
| lfprojects valkey | before 7.2.11, from 8.0.0 before 8.0.6, from 8.1.0 before 8.1.4 | 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 | 10.0critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| NVD | 9.9critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| Bitnami Vulnerability Database | critical rating |
Classification
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
| https://github.com/redis/redis/security/advisories/GHSA-4789-qfc9-5f9q | advisory, third-party-advisory | |
| https://github.com/redis/redis/commit/d5728cb5795c966c5b5b1e0f0ac576a7e69af539 | fix, patch | |
| https://github.com/redis/redis/releases/tag/8.2.2 | article, release-notes | |
| https://github.com/lastvocher/redis-CVE-2025-49844 | exploit, web | |
| http://www.openwall.com/lists/oss-security/2025/10/07/2 | advisory, mailing-list, third-party-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-49844 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-49844 changed 2026-03-20 | CVE Terms of Use |
| NVD | CVE-2025-49844 changed 2026-10-19 | Public domain |
| Bitnami Vulnerability Database | BIT-KEYDB-2025-49844 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-REDIS-2025-49844 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-VALKEY-2025-49844 changed 2026-09-08 | Apache-2.0 |