CVE-2022-24735Lua scripts can be manipulated to overcome ACL rules in Redis
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.
What to do
Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 25.10 | redis | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | redis | Not affected vulnerable_code_not_present | ||
| Debian 14 | redis | Fixed | 5:7.0.1-4 | DEBIAN-CVE-2022-24735 |
| Debian 13 | redis | Fixed | 5:7.0.1-4 | DEBIAN-CVE-2022-24735 |
| Debian 12 | redis | Fixed | 5:7.0.1-4 | DEBIAN-CVE-2022-24735 |
| Red Hat Enterprise Linux 9 | redis | Fixed | 0:6.2.7-1.el9 | RHSA-2022:8096 |
| Red Hat Enterprise Linux 9 | redis-devel | Fixed | 0:6.2.7-1.el9 | RHSA-2022:8096 |
| Red Hat Enterprise Linux 9 | redis-doc | Fixed | 0:6.2.7-1.el9 | RHSA-2022:8096 |
| Red Hat Enterprise Linux 8 | redis | Fixed Fix deferred | 0:6.2.7-1.module+el8.7.0+15197+cc495aeb | RHSA-2022:7541 |
| Red Hat Enterprise Linux 8 | redis-devel | Fixed Fix deferred | 0:6.2.7-1.module+el8.7.0+15197+cc495aeb | RHSA-2022:7541 |
| Red Hat Enterprise Linux 8 | redis-doc | Fixed Fix deferred | 0:6.2.7-1.module+el8.7.0+15197+cc495aeb | RHSA-2022:7541 |
| AlmaLinux 9 | redis | Fixed | 6.2.7-1.el9 | ALSA-2022:8096 |
| AlmaLinux 9 | redis-devel | Fixed | 6.2.7-1.el9 | ALSA-2022:8096 |
| AlmaLinux 9 | redis-doc | Fixed | 6.2.7-1.el9 | ALSA-2022:8096 |
| AlmaLinux 8 | redis | Fixed | 6.2.7-1.module_el8.7.0+3288+a82c1b48 | ALSA-2022:7541 |
| AlmaLinux 8 | redis-devel | Fixed | 6.2.7-1.module_el8.7.0+3288+a82c1b48 | ALSA-2022:7541 |
| AlmaLinux 8 | redis-doc | Fixed | 6.2.7-1.module_el8.7.0+3288+a82c1b48 | ALSA-2022:7541 |
| Rocky Linux 9 | redis | Fixed | 0:6.2.7-1.el9 | RLSA-2022:8096 |
| Rocky Linux 8 | redis | Fixed | 0:6.2.7-1.module+el8.7.0+1105+8815ce78 | RLSA-2022:7541 |
| Alpine Linux 3.24 | redis | Fixed | 6.2.7-r0 | ALPINE-CVE-2022-24735 |
| Alpine Linux 3.23 | redis | Fixed | 6.2.7-r0 | ALPINE-CVE-2022-24735 |
| Alpine Linux 3.22 | redis | Fixed | 6.2.7-r0 | ALPINE-CVE-2022-24735 |
| Alpine Linux 3.21 | redis | Fixed | 6.2.7-r0 | ALPINE-CVE-2022-24735 |
| Alpine Linux 3.20 | redis | Fixed | 6.2.7-r0 | ALPINE-CVE-2022-24735 |
| Alpine Linux 3.19 | redis | Fixed | 6.2.7-r0 | ALPINE-CVE-2022-24735 |
| Alpine Linux 3.18 | redis | Fixed | 6.2.7-r0 | ALPINE-CVE-2022-24735 |
| Alpine Linux 3.17 | redis | Fixed | 6.2.7-r0 | ALPINE-CVE-2022-24735 |
| Alpine Linux 3.16 | redis | Fixed | 6.2.7-r0 | ALPINE-CVE-2022-24735 |
| Alpine Linux 3.15 | redis | Fixed | 6.2.7-r0 | ALPINE-CVE-2022-24735 |
| Alpine Linux 3.14 | redis | Fixed | 6.2.7-r0 | ALPINE-CVE-2022-24735 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- redis: affected: < 7.0.0, >= 6.0.0, < 6.2.7
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://security.gentoo.org/glsa/202209-17 (vendor-advisory)
References
- https://github.com/redis/redis/security/advisories/GHSA-647m-2wmq-qmvq
- https://github.com/redis/redis/pull/10651
- https://github.com/redis/redis/releases/tag/6.2.7
- https://github.com/redis/redis/releases/tag/7.0.0
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VPYKSG7LKUJGVM2P72EHXKVRVRWHLORX/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WSTPUCAPBRHIFPSCOURR4OYX4E2OISAF/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/J4ZK3675DGHVVDOFLJN7WX6YYH27GPMK/
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://security.netapp.com/advisory/ntap-20220715-0003/
- https://security.gentoo.org/glsa/202209-17
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.