# CVE-2024-31449: Lua library commands may lead to stack overflow and RCE in Redis

- Severity: High 7.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 4.92%, higher than 92% of CVEs (2026-12-01)
- Published: 2024-10-07T19:51:08.775Z
- Modified: 2026-11-04T00:17:18.600Z
- Also known as: BIT-KEYDB-2024-31449, BIT-REDIS-2024-31449, BIT-VALKEY-2024-31449, GHSA-whxg-wx83-85p5
- Weaknesses: CWE-20, CWE-121
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- 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; 7.4.0
- keydb (Bitnami): from 2.6.0 before 6.3.4; from 7.0.0
- 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
- valkey (Bitnami): before 7.2.7; from 8.0.0 before 8.0.1

## Every score

- GitHub_M: CVSS:3.1 7.0 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/redis/redis/security/advisories/GHSA-whxg-wx83-85p5> (advisory, vendor-advisory)
- <https://github.com/redis/redis/commit/1f7c148be2cbacf7d50aa461c58b871e87cc5ed9> (fix, patch)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-31449> (web)

## Sources

- CVE List: [CVE-2024-31449](https://www.cve.org/CVERecord?id=CVE-2024-31449), CVE Terms of Use, modified 2026-11-03
- NVD: [CVE-2024-31449](https://nvd.nist.gov/vuln/detail/CVE-2024-31449), Public domain, modified 2026-11-04
- Bitnami Vulnerability Database: [BIT-KEYDB-2024-31449](https://osv.dev/vulnerability/BIT-KEYDB-2024-31449), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-REDIS-2024-31449](https://osv.dev/vulnerability/BIT-REDIS-2024-31449), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-VALKEY-2024-31449](https://osv.dev/vulnerability/BIT-VALKEY-2024-31449), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2024-31449 · Whole record: https://cve.day/CVE-2024-31449.json · Rebuilt by cve.day 2026-11-25T22:58:46.139Z
