Skip to main content
← All vulnerabilities
CVE-2024-46981

Redis' Lua library commands may lead to remote code execution

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 7.4.2, 7.2.7, 6.2.17
2 proofs of concept on GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • redis redis

    From 7.4.0 · fixed in 7.4.2; From 7.2.0 · fixed in 7.2.7; fixed in 6.2.17

References 6

GitHub · redis/redis

GitHub · publicqi/CVE-2024-46981

GitHub · xsshk/CVE-2024-46981