CVE-2024-46981: Redis' Lua library commands may lead to remote code execution

CVE-2024-46981 affects 88 listed versions of Redis in the Dawnsentry catalogue.

9.8CVSS critical
None knownexploitation
8%EPSS (next 30 days)
6 January 2025published

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

88 of 183 listed versions are affected. Fixed in 7.4.2, 7.2.7, 6.2.17. The newest release, 8.12.0, is not affected.

7.4.1 7.4.0 7.2.6 7.2.5 7.2.4 7.2.3 6.2.16 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 4.0.11 4.0.10 4.0.9 4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 4.0.2 4.0.1 4.0.0 3.2.13 3.2.12 and 28 more

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 manipulate the garbage collector and potentially lead to remote code execution. The problem is fixed in 7.4.2, 7.2.7, and 6.2.17. An additional workaround to mitigate the problem 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.

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

Published by GitHub on 6 January 2025. Last changed 17 June 2026.

Sources

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

Updated 2 December 2026.