CVE-2024-46981: Redis is an open source, in-memory database that persists on disk.
Critical CVSS 9.8
- CVE id
- CVE-2024-46981
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Redis Runtimes and servers |
>= 6.2.0, < 6.2.17 >= 7.2.0, < 7.2.7 >= 7.4.0, < 7.4.2 |
6.2.17, 7.2.7, 7.4.2 |
How to fix it
Upgrade Redis to the fixed release of the line you run: 6.2.17, 7.2.7, 7.4.2.
redis-server --version
- Install the patched Redis release of your series (the redis image tag or your packages) and restart it; on a managed service, apply the provider's maintenance update.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
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.
References
- CVE-2024-46981 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2024-46981
- Web: https://github.com/redis/redis/releases/tag/6.2.17
- Web: https://github.com/redis/redis/releases/tag/7.2.7
- Web: https://github.com/redis/redis/releases/tag/7.4.2
- Web: https://github.com/redis/redis/security/advisories/GHSA-39h2-x6c4-6w4c
- Web: https://lists.debian.org/debian-lts-announce/2025/01/msg00018.html
- Web: https://www.vicarius.io/vsociety/posts/cve-2024-46981-detect-redis-vulnerability
- Web: https://www.vicarius.io/vsociety/posts/cve-2024-46981-mitigate-redis-vulnerability
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.