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

Summary

CVECVE-2024-31449
StatePUBLISHED
AssignerGitHub_M
Source PriorityCVE Program / NVD first with legacy fallback
Published2024-10-07 20:15:05 UTC
Updated2026-11-04 00:17:18 UTC
DescriptionRedis 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.

Risk And Classification

Primary CVSS: v3.1 8.8 HIGH from [email protected]

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Problem Types: CWE-20 | CWE-121 | CWE-20 CWE-20: Improper Input Validation | CWE-121 CWE-121: Stack-based Buffer Overflow


VersionSourceTypeScoreSeverityVector
3.1[email protected]Primary8.8HIGHCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
3.1[email protected]Secondary7HIGHCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
3.1CNADECLARED7HIGHCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Redis Redis All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Redis Redis affected >= 2.6, < 6.2.16 Not specified
CNA Redis Redis affected >= 7.0.0, < 7.2.6 Not specified
CNA Redis Redis affected >= 7.3.0, < 7.4.1 Not specified
ADP Redis Redis affected 2.6 6.2.16 custom Not specified
ADP Redis Redis affected 7.0.0 7.2.6 custom Not specified
ADP Redis Redis affected 7.3.0 7.4.1 custom Not specified

References

ReferenceSourceLinkTags
github.com/redis/redis/commit/1f7c148be2cbacf7d50aa461c58b871e87cc5ed9 [email protected] github.com Patch
github.com/redis/redis/security/advisories/GHSA-whxg-wx83-85p5 [email protected] github.com Vendor Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report