CVE-2024-46981

Redis' Lua library commands may lead to remote code execution

State
Published
Severity
7.0 High
Published
Jan 6, 2025
Updated
Mar 19, 2025
Reserved
Sep 16, 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 manipulate the garbage collector and potentially lead to remote code execution. The problem is fixed in 7.4.2, 7.2.7, and 6.2.17. An additional workaround to mitigate the problem without patching the redis-server executable is to prevent users from executing Lua scripts. This can be done using ACL to restrict EVAL and EVALSHA commands.

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

Affected Products

ProductVersions
redisredis
  • >= 7.4.0, < 7.4.2Affected
  • >= 7.2.0, < 7.2.7Affected
  • < 6.2.17Affected

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.