CVE-2024-46981

Name
CVE-2024-46981
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.
NVD Severity
medium
Other trackers
Mailing lists
Exploits
Forges
GitHub (code, issues), Aports (code, issues)

References

Type URI
MISC https://github.com/redis/redis/releases/tag/6.2.17
MISC https://github.com/redis/redis/releases/tag/7.2.7
MISC https://github.com/redis/redis/releases/tag/7.4.2
CONFIRM https://github.com/redis/redis/security/advisories/GHSA-39h2-x6c4-6w4c
af854a3a-2127-422b-91ae-364da2661108 https://lists.debian.org/debian-lts-announce/2025/01/msg00018.html
af854a3a-2127-422b-91ae-364da2661108 https://www.vicarius.io/vsociety/posts/cve-2024-46981-detect-redis-vulnerability
af854a3a-2127-422b-91ae-364da2661108 https://www.vicarius.io/vsociety/posts/cve-2024-46981-mitigate-redis-vulnerability

Match rules

CPE URI Source package Min version Max version
redis >= 7.4.0 < 7.4.2
redis >= 7.2.0 < 7.2.7
redis >= 0 < 6.2.17

Vulnerable and fixed packages

Source package Branch Version Maintainer Status
redis 3.19-main 7.2.7-r0 TBK <alpine@jjtc.eu> fixed
valkey edge-main 7.2.8-r0 Jakub Jirutka <jakub@jirutka.cz> fixed
redict edge-community 7.3.2-r0 fossdd <fossdd@pwned.life> fixed
redis edge-community 7.2.7-r0 fossdd <fossdd@pwned.life> fixed
valkey 3.21-main 7.2.8-r0 Jakub Jirutka <jakub@jirutka.cz> fixed
redict 3.21-community 7.3.2-r0 fossdd <fossdd@pwned.life> fixed
redis 3.21-community 7.2.7-r0 fossdd <fossdd@pwned.life> fixed
valkey 3.20-main 7.2.8-r0 Jakub Jirutka <jakub@jirutka.cz> fixed
redis 3.18-main 7.0.15-r2 TBK <alpine@jjtc.eu> fixed