CVE-2024-31449

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

State
Published
Severity
7.0 High
Published
Oct 7, 2024
Updated
Nov 19, 2024
Reserved
Apr 3, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.0 HighCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HGitHub_M

Weaknesses

  • CWE-20 Improper Input Validation
  • CWE-121 Stack-based Buffer Overflow

Affected Products

ProductVersions
redisredis
  • >= 2.6, < 6.2.16Affected
  • >= 7.0.0, < 7.2.6Affected
  • >= 7.3.0, < 7.4.1Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.