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

CVE-2024-31449 affects 105 listed versions of Redis, Redis Valkey in the Dawnsentry catalogue.

8.8CVSS high
Proof of concept publicexploitation
5%EPSS (next 30 days)
7 October 2024published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

Redis

102 of 183 listed versions are affected. Fixed in 7.4.1, 7.2.6, 6.2.16. The newest release, 8.12.0, is not affected.

7.4.0 7.4.0-rc2 7.4.0-rc1 7.2.5 7.2.4 7.2.3 7.0.15 7.0.14 7.0.13 7.0.12 7.0.11 7.0.10 7.0.9 7.0.8 7.0.7 7.0.6 7.0.5 7.0.4 7.0.3 7.0.2 7.0.1 6.2.15 6.2.14 6.2.13 6.2.12 6.2.11 6.2.10 6.0.20 6.0.19 6.0.18 6.0.17 6.0.16 6.0.15 6.0.14 6.0.13 6.0.12 6.0.11 6.0.10 6.0.9 6.0.8 6.0.7 6.0.6 5.0.14 5.0.13 5.0.12 5.0.11 5.0.10 5.0.9 5.0.8 5.0.7 5.0.6 5.0.5 5.0.4 5.0.3 5.0.2 5.0.1 5.0.0 4.0.14 4.0.13 4.0.12 and 42 more

Redis Valkey

3 of 57 listed versions are affected. Fixed in 7.2.7. The newest release, 9.2.1, is not affected.

7.2.6 7.2.5 7.2.4

What it is

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.

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD)

Published by GitHub on 7 October 2024. Last changed 4 November 2026.

Sources

Check one version you run: look CVE-2024-31449 up, or pick a product and version in the quick lookup.

Updated 2 December 2026.