Use After Free in Redis
CVE-2024-46981
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.
Vulnerability class: Use-After-Free
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.0 (High). Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.082, 95.0th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Redis — versions >= 7.4.0, < 7.4.2, >= 7.2.0, < 7.2.7, < 6.2.17
- Debian Linux — versions 11.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
2 public repositories with exploit or proof-of-concept code for this CVE:
- publicqi/CVE-2024-46981 (5 stars, last pushed 2025-03-19)
- xsshk/CVE-2024-46981 (last pushed 2025-03-19)
Also mentioned in 3 other repositories (ARPSyndicate/cve-scores, plzheheplztrying/cve_monitor, rick2600/redis-stack-CVE-2024-55656). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- https://github.com/redis/redis/security/advisories/GHSA-39h2-x6c4-6w4c (Vendor Advisory)
- 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 (Release Notes)
- lists.debian.org/debian-lts-announce/2025/01/msg00018.html (Mailing List, Third Party Advisory)
- www.vicarius.io/vsociety/posts/cve-2024-46981-detect-redis-vulnerability (Exploit, Third Party Advisory)
- www.vicarius.io/vsociety/posts/cve-2024-46981-mitigate-redis-vulnerability (Exploit, Third Party Advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.