CVE-2024-31449

Lua library commands may lead to stack overflow and RCE in Redis

Published Oct 7, 2024 CVSS 3.1 · 7 High EPSS 4.5% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-29337 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.
Ubuntu USN Ubuntu USN USN-8169-1 Redis, Lua vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
CPEs cpe:2.3:a:redis:redis:7.4.0:-:*:*:*:*:*:*
cpe:2.3:a:redis:redis:7.4.0:rc1:*:*:*:*:*:*
cpe:2.3:a:redis:redis:7.4.0:rc2:*:*:*:*:*:*
Type Values Removed Values Added
Metrics epss

{'score': 0.01337}

epss

{'score': 0.01447}

Type Values Removed Values Added
First Time appeared Redhat discovery
CPEs cpe:/a:redhat:enterprise_linux:8
cpe:/o:redhat:discovery:1.0::el9
Vendors & Products Redhat discovery
Type Values Removed Values Added
First Time appeared Redhat
Redhat enterprise Linux
CPEs cpe:/a:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
Type Values Removed Values Added
First Time appeared Redis
Redis redis
CPEs cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:*
Vendors & Products Redis
Redis redis
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Lua library commands may lead to stack overflow and RCE in Redis
Weaknesses CWE-121
CWE-20
References
Metrics cvssV3_1

{'score': 7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 3, 2026, 11:57 PM
Reserved
Apr 3, 2024, 5:55 PM
Status
Analyzed
Published
Oct 7, 2024, 8:15 PM
Modified
Nov 4, 2026, 12:17 AM
Severity
Moderate
Public date
Oct 7, 2024, 7:51 PM