Skip to content

CVE-2022-24735 Lua scripts can be manipulated to overcome ACL rules in Redis

HighCVSS 7.8 EPSS 2.2%
Published
Updated
Exploit status
No public exploit known

Description

Redis is an in-memory database that persists on disk. By exploiting weaknesses in the Lua script execution environment, an attacker with access to Redis prior to version 7.0.0 or 6.2.7 can inject Lua code that will execute with the (potentially higher) privileges of another Redis user. The Lua script execution environment in Redis provides some measures that prevent a script from creating side effects that persist and can affect the execution of the same, or different script, at a later time. Several weaknesses of these measures have been publicly known for a long time, but they had no security impact as the Redis security model did not endorse the concept of users or privileges. With the introduction of ACLs in Redis 6.0, these weaknesses can be exploited by a less privileged users to inject Lua code that will execute at a later time, when a privileged user executes a Lua script. The problem is fixed in Redis versions 7.0.0 and 6.2.7. An additional workaround to mitigate this problem without patching the redis-server executable, if Lua scripting is not being used, is to block access to SCRIPT LOAD and EVAL commands using ACL rules.

Affected products

ProductAffected versionsFixed in
debian/redis(Debian:12) < 5:7.0.1-4 5:7.0.1-4
debian/redis(Debian:13) < 5:7.0.1-4 5:7.0.1-4
debian/redis(Debian:14) < 5:7.0.1-4 5:7.0.1-4
Redis = < 7.0.0 No fix listed
Redis = >= 6.0.0, < 6.2.7 No fix listed
Redis < 6.2.7 6.2.7
Redis = 7.0-rc1 No fix listed
Redis = 7.0-rc2 No fix listed
Redis = 7.0-rc3 No fix listed
fedoraproject fedora = 34 No fix listed
fedoraproject fedora = 35 No fix listed
fedoraproject fedora = 36 No fix listed
netapp management services for element software All versions No fix listed
netapp management services for netapp hci All versions No fix listed
oracle communications operations monitor = 4.3 No fix listed
oracle communications operations monitor = 4.4 No fix listed
oracle communications operations monitor = 5.0 No fix listed
alpine/redis(Alpine:v3.14) < 6.2.7-r0 6.2.7-r0
alpine/redis(Alpine:v3.15) < 6.2.7-r0 6.2.7-r0
alpine/redis(Alpine:v3.16) < 6.2.7-r0 6.2.7-r0
alpine/redis(Alpine:v3.17) < 6.2.7-r0 6.2.7-r0
alpine/redis(Alpine:v3.18) < 6.2.7-r0 6.2.7-r0
alpine/redis(Alpine:v3.19) < 6.2.7-r0 6.2.7-r0
alpine/redis(Alpine:v3.20) < 6.2.7-r0 6.2.7-r0
alpine/redis(Alpine:v3.21) < 6.2.7-r0 6.2.7-r0
Show 3 more
ProductAffected versionsFixed in
alpine/redis(Alpine:v3.22) < 6.2.7-r0 6.2.7-r0
alpine/redis(Alpine:v3.23) < 6.2.7-r0 6.2.7-r0
alpine/redis(Alpine:v3.24) < 6.2.7-r0 6.2.7-r0

References