Vulnerability record · CVE-2024-46981 · published 6 January 2025
CVE-2024-46981: Redis use after free vulnerability
Redis · Redis
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.
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:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected products
2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| 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 |
| https://github.com/redis/redis/security/advisories/GHSA-39h2-x6c4-6w4c | Vendor Advisory |
| https://lists.debian.org/debian-lts-announce/2025/01/msg00018.html | Mailing ListThird Party Advisory |
| https://www.vicarius.io/vsociety/posts/cve-2024-46981-detect-redis-vulnerability | ExploitThird Party Advisory |
| https://www.vicarius.io/vsociety/posts/cve-2024-46981-mitigate-redis-vulnerability | ExploitThird Party Advisory |
Track CVE-2024-46981 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2024-46981), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.