CVE-2024-31449 | Lua library commands may lead to stack overflow and RCE in Redis

Redis is an open source, in-memory database that persists on disk. An authenticated user may use a specially crafted Lua script to trigger a stack buffer overflow in the bit library, which may potentially lead to remote code execution. The problem exists in all versions of Redis with Lua scripting. This problem has been fixed in Redis versions 6.2.16, 7.2.6, and 7.4.1. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Published: 2024-10-07 Last update: 2025-09-04 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2024-31449 is rated Moderate Risk (54.6/100): CVSS High severity, with high exploitation likelihood (EPSS 4.49%, 90th percentile). Core evidence: EPSS ranks this CVE among the most likely to be exploited in the near term. Mandatory action: High exploitation likelihood—assess exposure and prioritize remediation.

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

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

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 64.12% 4.49% -59.63%
2 2026-06-11 61.32% 64.12% +2.81%
3 2026-06-09 61.32%

Full EPSS history (42 records total)

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

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]
8.8 3.1 HIGH
CVSS:3.1/AV:N/AC:L/PR:L/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: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.
2.8 5.9 [email protected]

Weakness enumeration for CVE-2024-31449

OS Trackers for CVE-2024-31449

vendor priority summary link
alpine CVE-2024-31449: 3 source package rows (redict, redis, valkey); 91 state rows across 11 repos (3.17-main, 3.18-main, 3.19-main, 3.20-community, 3.20-main, 3.21-community, 3.21-main, 3.22-community, 3.22-main, edge-community, edge-main); fixed 16, open 75. https://security.alpinelinux.org/vuln/CVE-2024-31449
debian not yet assigned CVE-2024-31449 not yet assigned priority: Debian including 3 source packages (redict, redis, valkey), 10 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 9, open 1. https://security-tracker.debian.org/tracker/CVE-2024-31449
gentoo high CVE-2024-31449: 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-31449
redhat medium https://access.redhat.com/security/cve/CVE-2024-31449
suse high CVE-2024-31449 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, …), 39 product×package rows across 23 product lines (SUSE Enterprise Storage 7.1, SUSE Liberty Linux 8, … (23 product lines)): Fixed 39. https://www.suse.com/security/cve/CVE-2024-31449/
ubuntu high CVE-2024-31449 high priority: Ubuntu including 2 source packages (lua-bitop, redis), 17 status rows across 10 suites (bionic, focal, jammy, noble, oracular, plucky, questing, trusty, upstream, xenial): released 6, needed 4, not-affected 4, ignored 2, needs-triage 1. https://ubuntu.com/security/CVE-2024-31449

Affected software / configurations for CVE-2024-31449

Vendor Product Version Raw CPE
redis redis >= 2.8.18, < 6.2.16 cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:*
redis redis >= 7.2.0, < 7.2.6 cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:*
redis redis 7.4.0 cpe:2.3:a:redis:redis:7.4.0:-:*:*:*:*:*:*
redis redis 7.4.0 cpe:2.3:a:redis:redis:7.4.0:rc1:*:*:*:*:*:*
redis redis 7.4.0 cpe:2.3:a:redis:redis:7.4.0:rc2:*:*:*:*:*:*

References for CVE-2024-31449

cvelogic Threat Intelligence