CVEfocus › CVE database › CVE-2022-24735

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

CVSS 3.9 LowEPSS 1.9% (higher than 80% of CVEs)Published 2022-04-27Updated 2025-04-22Assigner: GitHub_M

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.

CWE-94

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

28Fixed
2Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 25.10redisNot affected
vulnerable_code_not_present
Ubuntu 24.04redisNot affected
vulnerable_code_not_present
Debian 14redisFixed5:7.0.1-4DEBIAN-CVE-2022-24735
Debian 13redisFixed5:7.0.1-4DEBIAN-CVE-2022-24735
Debian 12redisFixed5:7.0.1-4DEBIAN-CVE-2022-24735
Red Hat Enterprise Linux 9redisFixed0:6.2.7-1.el9RHSA-2022:8096
Red Hat Enterprise Linux 9redis-develFixed0:6.2.7-1.el9RHSA-2022:8096
Red Hat Enterprise Linux 9redis-docFixed0:6.2.7-1.el9RHSA-2022:8096
Red Hat Enterprise Linux 8redisFixed
Fix deferred
0:6.2.7-1.module+el8.7.0+15197+cc495aebRHSA-2022:7541
Red Hat Enterprise Linux 8redis-develFixed
Fix deferred
0:6.2.7-1.module+el8.7.0+15197+cc495aebRHSA-2022:7541
Red Hat Enterprise Linux 8redis-docFixed
Fix deferred
0:6.2.7-1.module+el8.7.0+15197+cc495aebRHSA-2022:7541
AlmaLinux 9redisFixed6.2.7-1.el9ALSA-2022:8096
AlmaLinux 9redis-develFixed6.2.7-1.el9ALSA-2022:8096
AlmaLinux 9redis-docFixed6.2.7-1.el9ALSA-2022:8096
AlmaLinux 8redisFixed6.2.7-1.module_el8.7.0+3288+a82c1b48ALSA-2022:7541
AlmaLinux 8redis-develFixed6.2.7-1.module_el8.7.0+3288+a82c1b48ALSA-2022:7541
AlmaLinux 8redis-docFixed6.2.7-1.module_el8.7.0+3288+a82c1b48ALSA-2022:7541
Rocky Linux 9redisFixed0:6.2.7-1.el9RLSA-2022:8096
Rocky Linux 8redisFixed0:6.2.7-1.module+el8.7.0+1105+8815ce78RLSA-2022:7541
Alpine Linux 3.24redisFixed6.2.7-r0ALPINE-CVE-2022-24735
Alpine Linux 3.23redisFixed6.2.7-r0ALPINE-CVE-2022-24735
Alpine Linux 3.22redisFixed6.2.7-r0ALPINE-CVE-2022-24735
Alpine Linux 3.21redisFixed6.2.7-r0ALPINE-CVE-2022-24735
Alpine Linux 3.20redisFixed6.2.7-r0ALPINE-CVE-2022-24735
Alpine Linux 3.19redisFixed6.2.7-r0ALPINE-CVE-2022-24735
Alpine Linux 3.18redisFixed6.2.7-r0ALPINE-CVE-2022-24735
Alpine Linux 3.17redisFixed6.2.7-r0ALPINE-CVE-2022-24735
Alpine Linux 3.16redisFixed6.2.7-r0ALPINE-CVE-2022-24735
Alpine Linux 3.15redisFixed6.2.7-r0ALPINE-CVE-2022-24735
Alpine Linux 3.14redisFixed6.2.7-r0ALPINE-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.

Vendor advisories:

References

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.