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

Exp

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.

Published: 2025-01-06 Last update: 2026-06-17 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2024-46981 is rated High Exploit Risk (70.9/100): CVSS High severity, with high exploitation likelihood (EPSS 7.80%, 94th percentile). Core evidence: 2 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2024-46981

EDB-ID Source Kind Published Link
nvd_ref exploit_tag Exploit-DB ↗
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2024-46981

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-15 80.73% 7.80% -72.93%
2 2026-05-28 77.56% 80.73% +3.17%
3 2026-05-16 77.56%

Full EPSS history (36 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2024-46981

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
7.0 3.1 HIGH
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H Click to expand
Attack vector (AV:L)
They already need access on the box, or another person has to do something wrong; it’s not a remote drive-by.
Attack complexity (AC:H)
Even with access, the exploit needs extra luck, timing, or a fussy environment to actually work.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
1.0 5.9 [email protected]
9.8 3.1 CRITICAL
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
3.9 5.9 [email protected]

Weakness enumeration for CVE-2024-46981

OS Trackers for CVE-2024-46981

vendor priority summary link
alpine CVE-2024-46981: 3 source package rows (redict, redis, valkey); 66 state rows across 9 repos (3.18-main, 3.19-main, 3.20-main, 3.21-community, 3.21-main, 3.22-community, 3.22-main, edge-community, edge-main); fixed 12, open 54. https://security.alpinelinux.org/vuln/CVE-2024-46981
debian not yet assigned CVE-2024-46981 not yet assigned priority: Debian including 3 source packages (redict, redis, valkey), 10 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 10. https://security-tracker.debian.org/tracker/CVE-2024-46981
gentoo high CVE-2024-46981: 1 GLSA(s) (202511-05), 2 atom(s) (dev-db/redict, dev-db/redis); latest impact high. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2024-46981
redhat high https://access.redhat.com/security/cve/CVE-2024-46981
suse high CVE-2024-46981 severity important: SUSE including 21 source package names (redis-6.0.14-150200.6.32.1, redis-6.2.17-1.module+el8.10.0+22680+748527fd, …), 43 product×package rows across 25 product lines (SUSE Enterprise Storage 7.1, SUSE Liberty Linux 8, … (25 product lines)): Fixed 43. https://www.suse.com/security/cve/CVE-2024-46981/
ubuntu medium CVE-2024-46981 medium priority: Ubuntu including 3 source packages (redict, redis, valkey), 24 status rows across 10 suites (bionic, focal, jammy, noble, oracular, plucky, questing, trusty, upstream, xenial): released 11, DNE 5, ignored 4, needs-triage 2, not-affected 2. https://ubuntu.com/security/CVE-2024-46981

Affected software / configurations for CVE-2024-46981

Vendor Product Version Raw CPE
redis redis >= 6.2.0, < 6.2.17 cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:*
redis redis >= 7.2.0, < 7.2.7 cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:*
redis redis >= 7.4.0, < 7.4.2 cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:*
debian debian_linux 11.0 cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*

References for CVE-2024-46981

cvelogic Threat Intelligence