7.0high
Lua library commands may lead to stack overflow and RCE in Redis
- Severity
- 7.0high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 4.92% (higher than 92% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- BIT-KEYDB-2024-31449BIT-REDIS-2024-31449BIT-VALKEY-2024-31449GHSA-whxg-wx83-85p5
Description
Redis is an open source, in-memory database that persists on disk. An authenticated user may use a specially crafted Lua script to trigger a stack buffer overflow in the bit library, which may potentially lead to remote code execution. The problem exists in all versions of Redis with Lua scripting. This problem has been fixed in Redis versions 6.2.16, 7.2.6, and 7.4.1. Users are advised to upgrade. There are no known workarounds for this vulnerability.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| redis redis | >= 2.6, < 6.2.16, >= 7.0.0, < 7.2.6, >= 7.3.0, < 7.4.1, from 2.6 before 6.2.16, from 7.0.0 before 7.2.6, from 7.3.0 before 7.4.1, from 2.8.18 before 6.2.16, from 7.2.0 before 7.2.6 and 1 more | CVE List, NVD |
| keydb (Bitnami) | from 2.6.0 before 6.3.4, from 7.0.0 | Bitnami Vulnerability Database |
| redis (Bitnami) | from 2.6.0 before 6.2.16, from 7.0.0 before 7.2.8, from 7.3.0 before 7.4.1 | Bitnami Vulnerability Database |
| valkey (Bitnami) | before 7.2.7, from 8.0.0 before 8.0.1 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 7.0high CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Bitnami Vulnerability Database | high rating |
Classification
What each source says
CVE List
Redis is an open source, in-memory database that persists on disk. An authenticated user may use a specially crafted Lua script to trigger a stack buffer overflow in the bit library, which may potentially lead to remote code execution. The problem exists in all versions of Redis with Lua scripting. This problem has been fixed in Redis versions 6.2.16, 7.2.6, and 7.4.1. Users are advised to upgrade. There are no known workarounds for this vulnerability.
NVD (es)
Redis es una base de datos en memoria de código abierto que persiste en el disco. Un usuario autenticado puede usar un script Lua especialmente manipulado para provocar un desbordamiento del búfer de pila en la librería de bits, lo que puede provocar la ejecución remota de código. El problema existe en todas las versiones de Redis con scripts Lua. Este problema se ha solucionado en las versiones 6.2.16, 7.2.6 y 7.4.1 de Redis. Se recomienda a los usuarios que actualicen la versión. No existen workarounds conocidas para esta vulnerabilidad.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-31449 changed 2026-11-03 | CVE Terms of Use |
| NVD | CVE-2024-31449 changed 2026-11-04 | Public domain |
| Bitnami Vulnerability Database | BIT-KEYDB-2024-31449 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-REDIS-2024-31449 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-VALKEY-2024-31449 changed 2026-09-08 | Apache-2.0 |