Valkey: Lua library commands may lead to stack overflow and RCE in Redis (CVE-2024-31449)
CVE-2024-31449 is a high-severity vulnerability in Redis affecting all versions with Lua scripting enabled. An authenticated user can exploit a specially crafted Lua script to trigger a stack buffer overflow in the bit library, potentially leading to remote code execution. The issue has been fixed in Redis versions 6.2.16, 7.2.6, and 7.4.1. No workarounds are available, so upgrading to a fixed version is the recommended mitigation.
AI Analysis
Technical Summary
Redis, an open source in-memory database, contains a stack buffer overflow vulnerability in its Lua bit library commands. This flaw allows an authenticated user to execute a crafted Lua script that triggers the overflow, which may lead to remote code execution. The vulnerability affects all Redis versions with Lua scripting prior to 6.2.16, 7.2.6, and 7.4.1. The fix is available in these versions, and users should upgrade accordingly. No known workarounds exist.
Potential Impact
Successful exploitation can lead to remote code execution by an authenticated user, which compromises the confidentiality, integrity, and availability of the Redis server. This can allow attackers to execute arbitrary code on the host system running Redis.
Mitigation Recommendations
A patch is available and users should upgrade to Redis versions 6.2.16, 7.2.6, or 7.4.1 or later. There are no known workarounds, so applying the official fix is the only effective mitigation.
Valkey: Lua library commands may lead to stack overflow and RCE in Redis (CVE-2024-31449)
Description
CVE-2024-31449 is a high-severity vulnerability in Redis affecting all versions with Lua scripting enabled. An authenticated user can exploit a specially crafted Lua script to trigger a stack buffer overflow in the bit library, potentially leading to remote code execution. The issue has been fixed in Redis versions 6.2.16, 7.2.6, and 7.4.1. No workarounds are available, so upgrading to a fixed version is the recommended mitigation.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Redis, an open source in-memory database, contains a stack buffer overflow vulnerability in its Lua bit library commands. This flaw allows an authenticated user to execute a crafted Lua script that triggers the overflow, which may lead to remote code execution. The vulnerability affects all Redis versions with Lua scripting prior to 6.2.16, 7.2.6, and 7.4.1. The fix is available in these versions, and users should upgrade accordingly. No known workarounds exist.
Potential Impact
Successful exploitation can lead to remote code execution by an authenticated user, which compromises the confidentiality, integrity, and availability of the Redis server. This can allow attackers to execute arbitrary code on the host system running Redis.
Mitigation Recommendations
A patch is available and users should upgrade to Redis versions 6.2.16, 7.2.6, or 7.4.1 or later. There are no known workarounds, so applying the official fix is the only effective mitigation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BIT-valkey-2024-31449
- Osv Schema Version
- 1.5.0
- Aliases
- ["CVE-2024-31449"]
- Ecosystems
- ["Bitnami"]
- Database Specific Severity
- High
- Cvss Version
- null
Patch Information
Threat ID: 6aa005b3acd9273b49ab58b5
Added to database: 09/08/2026, 12:55:15 UTC
Last enriched: 09/08/2026, 13:20:12 UTC
Last updated: 09/08/2026, 22:52:02 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.