Critical severity · published Jan 6, 2025
CVE-2024-46981
Redis' Lua library commands may lead to remote code execution
9.8
CVSS
8.2%
EPSS
No
On KEV
Description
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 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)8.2% · higher than 95% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
RE
Redis · Redis
>= 7.4.0, < 7.4.2; >= 7.2.0, < 7.2.7; < 6.2.17 · source: vendor, NVD
DL
Debian Linux · Debian
11.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-46981
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-46981
Release Notes
https://github.com/redis/redis/releases/tag/6.2.17
Release Notes
https://github.com/redis/redis/releases/tag/7.2.7
Release Notes
https://github.com/redis/redis/releases/tag/7.4.2
Vendor Advisory
https://github.com/redis/redis/security/advisories/GHSA-39h2-x6c4-6w4c
Mailing List
https://lists.debian.org/debian-lts-announce/2025/01/msg00018.html
Exploit
https://www.vicarius.io/vsociety/posts/cve-2024-46981-detect-redis-vulnerability
More from Redis
10.0
CVE-2022-0543
Debian-specific Redis Server Lua Sandbox Escape Vulnerability
9.9
CVE-2025-49844
Redis is an open source, in-memory database that persists on disk
9.8
CVE-2025-27151
Redis is an open source, in-memory database that persists on disk
9.8
CVE-2022-3734
Redis on Windows dbghelp.dll uncontrolled search path
9.8
CVE-2022-35951
Redis is an in-memory database that persists on disk
