CVE
CVE-2024-46981
CNA 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.
Affected versions
- ≥ 7.4.0, < 7.4.2Fixed in 7.4.2
- ≥ 7.2.0, < 7.2.7Fixed in 7.2.7
- ≥ 6.2.0, < 6.2.17Fixed in 6.2.17
Distribution packages (Debian, Ubuntu, Red Hat…) backport fixes without changing the upstream version: check your distribution’s advisory as well.
Advisories and patches
- github.com/redis/redis/releases/tag/6.2.17 · Release Notes
- github.com/redis/redis/releases/tag/7.2.7 · Release Notes
- github.com/redis/redis/releases/tag/7.4.2 · Release Notes
- github.com/redis/redis/security/advisories/GHSA-39h2-x6c4-6w4c · Vendor Advisory
- lists.debian.org/debian-lts-announce/2025/01/msg00018.html · Third Party Advisory
Data: NVD (public domain), CISA KEV (CC0), FIRST EPSS, OSV.dev / GitHub Advisory Database (CC-BY 4.0) · This database lists affected versions and fixes only. It never hosts or links exploit code.