# CVE-2024-46981: Redis' Lua library commands may lead to remote code execution

- Severity: High 7.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 8.18%, higher than 94% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2025-01-06T21:11:51.687Z
- Modified: 2026-09-08T08:48:21.162Z
- Also known as: BIT-KEYDB-2024-46981, BIT-REDIS-2024-46981, BIT-VALKEY-2024-46981, GHSA-39h2-x6c4-6w4c
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- redis redis: >= 7.4.0, < 7.4.2; >= 7.2.0, < 7.2.7; < 6.2.17; from 6.2.0 before 6.2.17; from 7.2.0 before 7.2.7; from 7.4.0 before 7.4.2
- debian debian_linux: 11.0
- keydb (Bitnami): before 6.3.4; from 7.2.0
- redis (Bitnami): before 6.2.17; from 7.2.0 before 7.2.8; from 7.4.0 before 7.4.2
- valkey (Bitnami): before 8.0.2

## Every score

- GitHub_M: CVSS:3.1 7.0 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://www.vicarius.io/vsociety/posts/cve-2024-46981-detect-redis-vulnerability> (exploit, advisory, third-party-advisory)
- <https://www.vicarius.io/vsociety/posts/cve-2024-46981-mitigate-redis-vulnerability> (exploit, advisory, third-party-advisory)
- <https://github.com/redis/redis/security/advisories/GHSA-39h2-x6c4-6w4c> (advisory, vendor-advisory)
- <https://github.com/redis/redis/releases/tag/6.2.17> (article, release-notes)
- <https://github.com/redis/redis/releases/tag/7.2.7> (article, release-notes)
- <https://github.com/redis/redis/releases/tag/7.4.2> (article, release-notes)
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00018.html> (advisory, mailing-list, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-46981> (web)
- <https://codeberg.org/redict/redict/releases/tag/7.3.2> (web)
- <https://github.com/valkey-io/valkey/releases/tag/8.0.2> (web)
- <https://redict.io/posts/2025-01-08-redict-7.3.2-released> (web)

## Sources

- CVE List: [CVE-2024-46981](https://www.cve.org/CVERecord?id=CVE-2024-46981), CVE Terms of Use, modified 2025-03-19
- NVD: [CVE-2024-46981](https://nvd.nist.gov/vuln/detail/CVE-2024-46981), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-KEYDB-2024-46981](https://osv.dev/vulnerability/BIT-KEYDB-2024-46981), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-REDIS-2024-46981](https://osv.dev/vulnerability/BIT-REDIS-2024-46981), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-VALKEY-2024-46981](https://osv.dev/vulnerability/BIT-VALKEY-2024-46981), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2024-46981 · Whole record: https://cve.day/CVE-2024-46981.json · Rebuilt by cve.day 2026-11-25T22:58:50.732Z
