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
unknown
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
cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:* redis >= 6.2.0 < 6.2.17

Vulnerable and fixed packages

Source package Branch Version Maintainer Status
valkey edge-main 7.2.8-r0 Jakub Jirutka <jakub@jirutka.cz> fixed
valkey 3.22-main 7.2.8-r0 None fixed
valkey 3.21-main 7.2.8-r0 Jakub Jirutka <jakub@jirutka.cz> fixed
valkey 3.20-main 7.2.8-r0 Jakub Jirutka <jakub@jirutka.cz> fixed
redis edge-main 7.2.4-r1 TBK <alpine@jjtc.eu> possibly vulnerable
redis edge-main 7.2.4-r0 TBK <alpine@jjtc.eu> possibly vulnerable
redis edge-main 7.2.3-r0 TBK <alpine@jjtc.eu> possibly vulnerable
redis edge-main 7.2.2-r0 TBK <alpine@jjtc.eu> possibly vulnerable
redis edge-main 7.2.1-r0 TBK <alpine@jjtc.eu> possibly vulnerable
redis edge-main 7.2.0-r0 TBK <alpine@jjtc.eu> possibly vulnerable
redis edge-main 6.2.7-r0 TBK <alpine@jjtc.eu> possibly vulnerable
redis edge-main 6.2.6-r0 TBK <alpine@jjtc.eu> possibly vulnerable
redis edge-main 6.2.5-r0 TBK <alpine@jjtc.eu> possibly vulnerable
redis edge-main 6.2.4-r0 TBK <alpine@jjtc.eu> possibly vulnerable
redis edge-main 6.2.0-r0 None possibly vulnerable
redis edge-main 6.0.3-r0 None possibly vulnerable
redis edge-main 5.0.8-r0 None possibly vulnerable
redis edge-main 5.0.4-r0 None possibly vulnerable
redis edge-community 7.2.7-r0 fossdd <fossdd@pwned.life> fixed
redis edge-community 7.2.5-r2 fossdd <fossdd@pwned.life> possibly vulnerable
redis edge-community 7.2.5-r1 TBK <alpine@jjtc.eu> possibly vulnerable
redis edge-community 7.2.5-r0 TBK <alpine@jjtc.eu> possibly vulnerable
redis edge-community 7.2.4-r1 TBK <alpine@jjtc.eu> possibly vulnerable
redis edge-community 7.2.4-r0 None possibly vulnerable
redis edge-community 7.2.2-r0 None possibly vulnerable
redis edge-community 7.2.1-r0 None possibly vulnerable
redis edge-community 6.2.7-r0 None possibly vulnerable
redis edge-community 6.2.6-r0 None possibly vulnerable
redis edge-community 6.2.5-r0 None possibly vulnerable
redis edge-community 6.2.4-r0 None possibly vulnerable
redis edge-community 6.2.0-r0 None possibly vulnerable
redis edge-community 6.0.3-r0 None possibly vulnerable
redis edge-community 5.0.8-r0 None possibly vulnerable
redis edge-community 5.0.4-r0 None possibly vulnerable
redis 3.22-community 7.2.7-r0 None fixed
redis 3.22-community 7.2.5-r1 None possibly vulnerable
redis 3.22-community 7.2.4-r0 None possibly vulnerable
redis 3.22-community 7.2.2-r0 None possibly vulnerable
redis 3.22-community 7.2.1-r0 None possibly vulnerable
redis 3.22-community 6.2.7-r0 None possibly vulnerable
redis 3.22-community 6.2.6-r0 None possibly vulnerable
redis 3.22-community 6.2.5-r0 None possibly vulnerable
redis 3.22-community 6.2.4-r0 None possibly vulnerable
redis 3.22-community 6.2.0-r0 None possibly vulnerable
redis 3.22-community 6.0.3-r0 None possibly vulnerable
redis 3.22-community 5.0.8-r0 None possibly vulnerable
redis 3.22-community 5.0.4-r0 None possibly vulnerable
redis 3.21-community 7.2.7-r0 fossdd <fossdd@pwned.life> fixed
redis 3.19-main 7.2.7-r0 TBK <alpine@jjtc.eu> fixed
redis 3.19-main 7.2.4-r1 TBK <alpine@jjtc.eu> possibly vulnerable
redis 3.19-main 7.2.4-r0 TBK <alpine@jjtc.eu> possibly vulnerable
redis 3.19-main 7.2.3-r0 TBK <alpine@jjtc.eu> possibly vulnerable
redis 3.19-main 7.2.2-r0 None possibly vulnerable
redis 3.19-main 7.2.1-r0 None possibly vulnerable
redis 3.19-main 6.2.7-r0 None possibly vulnerable
redis 3.19-main 6.2.6-r0 None possibly vulnerable
redis 3.19-main 6.2.5-r0 None possibly vulnerable
redis 3.19-main 6.2.4-r0 None possibly vulnerable
redis 3.19-main 6.2.0-r0 None possibly vulnerable
redis 3.19-main 6.0.3-r0 None possibly vulnerable
redis 3.19-main 5.0.8-r0 None possibly vulnerable
redis 3.19-main 5.0.4-r0 None possibly vulnerable
redis 3.18-main 7.0.15-r2 TBK <alpine@jjtc.eu> fixed
redict edge-community 7.3.2-r0 fossdd <fossdd@pwned.life> fixed
redict 3.22-community 7.3.2-r0 None fixed
redict 3.21-community 7.3.2-r0 fossdd <fossdd@pwned.life> fixed