CVE-2022-24735

LOW

Redis <7.0.0-6.2.7 - Code Injection

Title source: llm
STIX 2.1

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.

References (10)

Core 10
Core References
Exploit, Third Party Advisory x_refsource_misc
https://github.com/redis/redis/pull/10651
Release Notes, Third Party Advisory x_refsource_misc
https://github.com/redis/redis/releases/tag/6.2.7
Release Notes, Third Party Advisory x_refsource_misc
https://github.com/redis/redis/releases/tag/7.0.0
Patch, Third Party Advisory x_refsource_misc
https://www.oracle.com/security-alerts/cpujul2022.html
Third Party Advisory x_refsource_confirm
https://security.netapp.com/advisory/ntap-20220715-0003/
Third Party Advisory vendor-advisory x_refsource_gentoo
https://security.gentoo.org/glsa/202209-17

Scores

CVSS v3 3.9
EPSS 0.0168
EPSS Percentile 82.4%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N

CISA SSVC

Vulnrichment
Exploitation poc
Automatable no
Technical Impact partial

Details

CWE
CWE-94
Status published
Products (10)
fedoraproject/fedora 34
fedoraproject/fedora 35
fedoraproject/fedora 36
netapp/management_services_for_element_software
netapp/management_services_for_netapp_hci
oracle/communications_operations_monitor 4.3
oracle/communications_operations_monitor 4.4
oracle/communications_operations_monitor 5.0
redis/redis 7.0 rc1 (3 CPE variants)
redis/redis < 6.2.7
Published Apr 27, 2022
Tracked Since Feb 18, 2026