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.
CVSS Details
- CVSS 3.1 Base Score: 3.9
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alma_linux | — | Upgrade redis-develUpgrade redisUpgrade redis-doc | Nov 14, 2022 | Apr 27, 2022 |
| Alpine Linux | — | Upgrade redis | Mar 26, 2024 | Apr 27, 2022 |
| Amazon Linux Ami 2 | — | Upgrade redis-docUpgrade redisUpgrade redis-develUpgrade redis-debuginfo | Sep 28, 2023 | Apr 27, 2022 |
| Amazon_linux_2023 | — | Upgrade redis6-debuginfoUpgrade redis6-docUpgrade redis6-develUpgrade redis6-debugsourceUpgrade redis6 | Feb 17, 2025 | Apr 27, 2022 |
| Centos_linux | — | Upgrade redis-docUpgrade redis-develUpgrade redisUpgrade redis-debuginfoUpgrade redis-debugsource | Nov 9, 2022 | Apr 27, 2022 |
| Debian | — | Upgrade redis | Jul 30, 2024 | Apr 27, 2022 |
| Freebsd | — | Upgrade redis62Upgrade redis-develUpgrade redis | Nov 4, 2022 | Apr 27, 2022 |
| Gentoo Linux | — | Upgrade dev-db/redis. | Sep 30, 2022 | Apr 27, 2022 |
| Oracle_linux | — | Upgrade redis-develUpgrade redis-docUpgrade redis | Nov 16, 2022 | Apr 27, 2022 |
| Redhat_linux | — | No solution existsUpgrade redis-develUpgrade redis-debugsourceUpgrade redis-debuginfoUpgrade redisUpgrade redis-doc | Nov 9, 2022 | Apr 27, 2022 |
| Redislabs Redis | — | Upgrade RedisLabs Redis to the latest versionUpgrade RedisLabs Redis to version 6.2.7 | Oct 17, 2025 | Apr 27, 2022 |
| Rocky_linux | — | Upgrade redis-debuginfoUpgrade redis-debugsourceUpgrade redisUpgrade redis-devel | Mar 12, 2024 | Apr 27, 2022 |
| Suse | — | Upgrade redis | Oct 26, 2022 | Apr 27, 2022 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Jan 20, 2025 | Apr 27, 2022 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub