CVE-2024-31449: Lua library commands may lead to stack overflow and RCE in Redis
Vulnerability summary
CVE-2024-31449 is a high (CVSS 8.8) Improper Input Validation vulnerability in redis. EPSS estimates a 4.92% chance of exploitation in the next 30 days, higher than 92.3% of scored vulnerabilities.
Not severe (CVSS 7, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 12 · Related 10Timeline
- 07-10-2024PublishedVulnerability first disclosed.
- 03-11-2026Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
6 scores · 6 sources · 1 version- CVE.orgCNA7.0HighCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HDiffers
- OSV · AlpineEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · ChainguardEcosystem advisory · calculated7.0HighCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HDiffers
EPSS trend
Probability
4.92%
Chance of exploitation in the next 30 days
Percentile
92%
Versus all other CVEs
30-day change
Increase +0.46 pp
From 4.46% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-20Improper Input ValidationThe product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
- CWE-121Stack-based Buffer OverflowThe product writes past the end of a buffer that was allocated on the stack.
Affected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard13 products
- py3-redisAll versions (No fix recorded)
- py3.10-redisAll versions (No fix recorded)
- py3.11-redisAll versions (No fix recorded)
- py3.12-redisAll versions (No fix recorded)
- py3.13-redisAll versions (No fix recorded)
Alpine3 products
- redict< 7.3.1-r0
- redis≥ 2.8.18, < 7.2.4-r1 | ≥ 2.8.18, < 7.2.5-r1 | ≥ 2.8.18, < 6.2.18-r0 | ≥ 2.8.18, < 7.0.15-r1 | ≥ 7.2.0, < 7.2.4-r1 | ≥ 7.2.0, < 7.2.5-r1
- valkey< 7.2.7-r0
Debian3 products
- redict< 7.3.1+ds-1
- redis< 5:7.0.15-1~deb12u2 | < 5:7.0.15-2
- valkey< 8.0.1+dfsg1-1
Ubuntu2 products
- lua-bitopAll versions (No fix recorded) | < 1.0.2-5ubuntu0.20.04.1~esm2 | < 1.0.2-5ubuntu0.22.04.1~esm2
- redis< 2:3.0.6-1ubuntu0.4+esm5 | < 5:4.0.9-1ubuntu0.2+esm7 | < 5:7.0.15-1ubuntu0.24.04.4
Redis1 product
- redis≥ 2.6, < 6.2.16 | ≥ 7.0.0, < 7.2.6 | ≥ 7.3.0, < 7.4.1 | ≥ 2.8.18, < 6.2.16 | ≥ 7.2.0, < 7.2.6 | 7.4.0 | 7.4.0:rc1 | 7.4.0:rc2
5 vendors · 22 products
References
9 links- github.com/redis/redis/security/advisories/GHSA-whxg-wx83-85p5X Refsource CONFIRMREPORTAdvisoryVendor Advisory
- github.com/redis/redis/commit/1f7c148be2cbacf7d50aa461c58b871e87cc5ed9X Refsource MISCREPORTFIXPatch