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.
Attack Parameters
Impact Assessment
CVSS Vector v3.1
Weakness Type (CWE)
Vulnerable Products 4
| Configuration | From (including) | Up to (excluding) |
|---|---|---|
|
Redis Redis
cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:*
|
6.2.0
|
6.2.17
|
|
Redis Redis
cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:*
|
7.2.0
|
7.2.7
|
|
Redis Redis
cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:*
|
7.4.0
|
7.4.2
|
|
Debian Debian_Linux
cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
|
— | — |