CVE-2022-24735
Lua 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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- Required
What an attacker can affect
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
3.9
Lua 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.
- Record
CVE-2022-24735- CVSS 3.1
- 3.9 Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N - Weakness
- CWE-94
- Updated
- 2026-11-02
EUVDEUVD-2022-29582
3.9
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.
- Record
EUVD-2022-29582- CVSS 3.1
- 3.9 Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N - Updated
- 2026-11-02
NVD
3.9
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.
- Record
CVE-2022-24735- CVSS 3.1
- 3.9 Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N - CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - CVSS 2.0
- 6.8 Medium
AV:N/AC:M/Au:N/C:P/I:P/A:P - Weakness
- CWE-94
- Updated
- 2026-11-02
OSVALPINE-CVE-2022-24735
7.8
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.
- Record
ALPINE-CVE-2022-24735- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-03
OSVAZL-45285
7.8
CVE-2022-24735 affecting package compat-lua 5.1.5-17
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.
- Record
AZL-45285- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-05
OSVAZL-71173
7.8
CVE-2022-24735 affecting package compat-lua 5.1.5-17
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.
- Record
AZL-71173- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 20 moreShow less
OSVAZL-9598
7.8
CVE-2022-24735 affecting package redis for versions less than 6.2.7-1
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.
- Record
AZL-9598- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVBELL-CVE-2022-24735
7.8
CVE-2022-24735 does not affect BellSoft software
- Record
BELL-CVE-2022-24735- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSV
3.9
Lua 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.
- Record
CVE-2022-24735- CVSS 3.1
- 3.9 Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N - Weakness
- CWE-94
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2022-24735
7.8
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.
- Record
DEBIAN-CVE-2022-24735- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-03
OSVOESA-2022-1823
7.8
redis6 security update
Redis is an advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets. You can run atomic operations on these types, like appending to a string; incrementing the value in a hash; pushing to a list; computing set intersection, union and difference; or getting the member with highest ranking in a sorted set. In order to achieve its outstanding performance, Redis works with an in-memory dataset. Depending on your use case, you can persist it either by dumping the dataset to disk every once in a while, or by appending each command to a log. Redis also supports trivial-to-setup master-slave replication, with very fast non-blocking first synchronization, auto-reconnection on net split and so forth. Other features include Transactions, Pub/Sub, Lua scripting, Keys with a limited time-to-live, and configuration settings to make Redis behave like a cache. You can use Redis from most programming languages also.
Security Fix(es):
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.(CVE-2022-24735)
Redis is an in-memory database that persists on disk. Prior to versions 6.2.7 and 7.0.0, an attacker attempting to load a specially crafted Lua script can cause NULL pointer dereference which will result with a crash of the redis-server process. 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.(CVE-2022-24736)
- Record
OESA-2022-1823- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVOESA-2025-1157
8.8
redis security update
Redis is an advanced key-value store. It is often referred to as a dattructure server since keys can contain strings, hashes ,lists, sets anorted sets.
Security Fix(es):
Redis is an open source, in-memory database that persists on disk. In affected versions specially crafted Lua scripts executing in Redis can cause the heap-based Lua stack to be overflowed, due to incomplete checks for this condition. This can result with heap corruption and potentially remote code execution. This problem exists in all versions of Redis with Lua scripting support, starting from 2.6. The problem is fixed in versions 6.2.6, 6.0.16 and 5.0.14. For users unable to update an additional workaround to mitigate the problem without patching the redis-server executable is to prevent users from executing Lua scripts. This can be done using ACL to restrict EVAL and EVALSHA commands.(CVE-2021-32626)
Redis is an open source, in-memory database that persists on disk. In affected versions an integer overflow bug in Redis can be exploited to corrupt the heap and potentially result with remote code execution. The vulnerability involves changing the default proto-max-bulk-len and client-query-buffer-limit configuration parameters to very large values and constructing specially crafted very large stream elements. The problem is fixed in Redis 6.2.6, 6.0.16 and 5.0.14. For users unable to upgrade an additional workaround to mitigate the problem without patching the redis-server executable is to prevent users from modifying the proto-max-bulk-len configuration parameter. This can be done using ACL to restrict unprivileged users from using the CONFIG SET command.(CVE-2021-32627)
Redis is an open source, in-memory database that persists on disk. An integer overflow bug in the ziplist data structure used by all versions of Redis can be exploited to corrupt the heap and potentially result with remote code execution. The vulnerability involves modifying the default ziplist configuration parameters (hash-max-ziplist-entries, hash-max-ziplist-value, zset-max-ziplist-entries or zset-max-ziplist-value) to a very large value, and then constructing specially crafted commands to create very large ziplists. The problem is fixed in Redis versions 6.2.6, 6.0.16, 5.0.14. An additional workaround to mitigate the problem without patching the redis-server executable is to prevent users from modifying the above configuration parameters. This can be done using ACL to restrict unprivileged users from using the CONFIG SET command.(CVE-2021-32628)
Redis is an open source, in-memory database that persists on disk. When parsing an incoming Redis Standard Protocol (RESP) request, Redis allocates memory according to user-specified values which determine the number of elements (in the multi-bulk header) and size of each element (in the bulk header). An attacker delivering specially crafted requests over multiple connections can cause the server to allocate significant amount of memory. Because the same parsing mechanism is used to handle authentication requests, this vulnerability can also be exploited by unauthenticated users. The problem is fixed in Redis versions 6.2.6, 6.0.16 and 5.0.14. An additional workaround to mitigate this problem without patching the redis-server executable is to block access to prevent unauthenticated users from connecting to Redis. This can be done in different ways: Using network access control tools like firewalls, iptables, security groups, etc. or Enabling TLS and requiring users to authenticate using client side certificates.(CVE-2021-32675)
Redis is an open source, in-memory database that persists on disk. An integer overflow bug affecting all versions of Redis can be exploited to corrupt the heap and potentially be used to leak arbitrary contents of the heap or trigger remote code execution. The vulnerability involves changing the default set-max-intset-entries configuration parameter to a very large value and constructing specially crafted…
- Record
OESA-2025-1157- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVRHSA-2022:7541
3.9
Red Hat Security Advisory: redis:6 security, bug fix, and enhancement update
- Record
RHSA-2022:7541- CVSS 3.1
- 3.9 Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N - Updated
- 2026-11-02
OSVRHSA-2022:8096
3.9
Red Hat Security Advisory: redis security and bug fix update
- Record
RHSA-2022:8096- CVSS 3.1
- 3.9 Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N - Updated
- 2026-11-02
OSVRLSA-2022:7541
3.9
Low: redis:6 security, bug fix, and enhancement update
Redis is an advanced key-value store. It is often referred to as a data-structure server since keys can contain strings, hashes, lists, sets, and sorted sets. For performance, Redis works with an in-memory data set. You can persist it either by dumping the data set to disk every once in a while, or by appending each command to a log.
The following packages have been upgraded to a later upstream version: redis (6.2.7). (BZ#1999873)
Security Fix(es):
-
redis: Code injection via Lua script execution environment (CVE-2022-24735)
-
redis: Malformed Lua script can crash Redis (CVE-2022-24736)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
Additional Changes:
For detailed information on changes in this release, see the Rocky Linux 8.7 Release Notes linked from the References section.
- Record
RLSA-2022:7541- CVSS 3.1
- 3.9 Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N - Updated
- 2026-11-02
OSVRLSA-2022:8096
3.9
Low: redis security and bug fix update
Redis is an advanced key-value store. It is often referred to as a data-structure server since keys can contain strings, hashes, lists, sets, and sorted sets. For performance, Redis works with an in-memory data set. You can persist it either by dumping the data set to disk every once in a while, or by appending each command to a log.
Security Fix(es):
-
redis: Code injection via Lua script execution environment (CVE-2022-24735)
-
redis: Malformed Lua script can crash Redis (CVE-2022-24736)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
Additional Changes:
For detailed information on changes in this release, see the Rocky Linux 9.1 Release Notes linked from the References section.
- Record
RLSA-2022:8096- CVSS 3.1
- 3.9 Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N - Updated
- 2026-11-02
OSVUBUNTU-CVE-2022-24735
3.9
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.
- Record
UBUNTU-CVE-2022-24735- CVSS 3.1
- 3.9 Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N - CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVALSA-2022:7541 No score
Low: redis:6 security, bug fix, and enhancement update
Redis is an advanced key-value store. It is often referred to as a data-structure server since keys can contain strings, hashes, lists, sets, and sorted sets. For performance, Redis works with an in-memory data set. You can persist it either by dumping the data set to disk every once in a while, or by appending each command to a log.
The following packages have been upgraded to a later upstream version: redis (6.2.7). (BZ#1999873)
Security Fix(es):
- redis: Code injection via Lua script execution environment (CVE-2022-24735)
- redis: Malformed Lua script can crash Redis (CVE-2022-24736)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
Additional Changes:
For detailed information on changes in this release, see the AlmaLinux Release Notes linked from the References section.
- Record
ALSA-2022:7541- Updated
- 2026-11-03
OSVALSA-2022:8096 No score
Low: redis security and bug fix update
Redis is an advanced key-value store. It is often referred to as a data-structure server since keys can contain strings, hashes, lists, sets, and sorted sets. For performance, Redis works with an in-memory data set. You can persist it either by dumping the data set to disk every once in a while, or by appending each command to a log.
Security Fix(es):
- redis: Code injection via Lua script execution environment (CVE-2022-24735)
- redis: Malformed Lua script can crash Redis (CVE-2022-24736)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
Additional Changes:
For detailed information on changes in this release, see the AlmaLinux Release Notes linked from the References section.
- Record
ALSA-2022:8096- Updated
- 2026-11-02
OSVBIT-keydb-2022-24735 No score
Lua 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.
- Record
BIT-keydb-2022-24735- Updated
- 2026-11-02
OSVBIT-redis-2022-24735 No score
Lua 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.
- Record
BIT-redis-2022-24735- Updated
- 2026-11-02
OSVBIT-valkey-2022-24735 No score
Lua 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.
- Record
BIT-valkey-2022-24735- Updated
- 2026-11-02
OSVMGASA-2022-0339 No score
Updated redis packages fix security vulnerability
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. (CVE-2022-24735)
Redis is an in-memory database that persists on disk. Prior to versions
6.2.7 and 7.0.0, an attacker attempting to load a specially crafted Lua
script can cause NULL pointer dereference which will result with a crash
of the redis-server process. 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.
(CVE-2022-24736)
- Record
MGASA-2022-0339- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:12030-1 No score
redis-6.2.7-1.1 on GA media
These are all security issues fixed in the redis-6.2.7-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:12030-1- Updated
- 2026-11-02
OSVSUSE-SU-2022:1842-1 No score
Security update for redis
This update for redis fixes the following issues:
- CVE-2022-24735: Fixed Lua code injection (bsc#1198952).
- CVE-2022-24736: Fixed Lua NULL pointer dereference (bsc#1198953).
- Record
SUSE-SU-2022:1842-1- Updated
- 2026-11-02
OSVSUSE-SU-2022:1929-1 No score
Security update for redis
This update for redis fixes the following issues:
- CVE-2022-24735: Fixed Lua code injection (bsc#1198952).
- CVE-2022-24736: Fixed Lua NULL pointer dereference (bsc#1198953).
- Record
SUSE-SU-2022:1929-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
redisAlpine:v3.14 |
before 6.2.7-r0 | 6.2.7-r0 |
redisAlpine:v3.15 |
before 6.2.7-r0 | 6.2.7-r0 |
redisAlpine:v3.16 |
before 6.2.7-r0 | 6.2.7-r0 |
redisAlpine:v3.17 |
before 6.2.7-r0 | 6.2.7-r0 |
redisAlpine:v3.18 |
before 6.2.7-r0 | 6.2.7-r0 |
redisAlpine:v3.19 |
before 6.2.7-r0 | 6.2.7-r0 |
redisAlpine:v3.20 |
before 6.2.7-r0 | 6.2.7-r0 |
redisAlpine:v3.21 |
before 6.2.7-r0 | 6.2.7-r0 |
redisAlpine:v3.22 |
before 6.2.7-r0 | 6.2.7-r0 |
redisAlpine:v3.23 |
before 6.2.7-r0 | 6.2.7-r0 |
Show 42 moreShow less
| Package | Affected | Fixed |
|---|---|---|
redisAlpine:v3.24 |
before 6.2.7-r0 | 6.2.7-r0 |
redisAlmaLinux:8 From an advisory covering 2 CVEs |
before 6.2.7-1.module_el8.7.0+3288+a82c1b48 | 6.2.7-1.module_el8.7.0+3288+a82c1b48 |
redis-develAlmaLinux:8 From an advisory covering 2 CVEs |
before 6.2.7-1.module_el8.7.0+3288+a82c1b48 | 6.2.7-1.module_el8.7.0+3288+a82c1b48 |
redis-docAlmaLinux:8 From an advisory covering 2 CVEs |
before 6.2.7-1.module_el8.7.0+3288+a82c1b48 | 6.2.7-1.module_el8.7.0+3288+a82c1b48 |
redisAlmaLinux:9 From an advisory covering 2 CVEs |
before 6.2.7-1.el9 | 6.2.7-1.el9 |
redis-develAlmaLinux:9 From an advisory covering 2 CVEs |
before 6.2.7-1.el9 | 6.2.7-1.el9 |
redis-docAlmaLinux:9 From an advisory covering 2 CVEs |
before 6.2.7-1.el9 | 6.2.7-1.el9 |
compat-luaAzure Linux:3 |
through 5.1.5-17 | None known |
compat-luaAzure Linux:2 |
through 5.1.5-17 | None known |
redisAzure Linux:2 |
before 6.2.7-1 | 6.2.7-1 |
keydbBitnami |
before 6.2.7 | 6.2.7 |
redisBitnami |
before 6.2.7 | 6.2.7 |
valkeyBitnami |
before 6.2.7 | 6.2.7 |
redisDebian:12 |
before 5:7.0.1-4 | 5:7.0.1-4 |
redisDebian:13 |
before 5:7.0.1-4 | 5:7.0.1-4 |
redisDebian:14 |
before 5:7.0.1-4 | 5:7.0.1-4 |
redisMageia:8 From an advisory covering 2 CVEs |
before 6.0.16-1.1.mga8 | 6.0.16-1.1.mga8 |
redis6openEuler:20.03-LTS-SP1 From an advisory covering 2 CVEs |
before 6.2.7-1.oe1 | 6.2.7-1.oe1 |
redis6openEuler:20.03-LTS-SP3 From an advisory covering 2 CVEs |
before 6.2.7-1.oe1 | 6.2.7-1.oe1 |
redis6openEuler:22.03-LTS From an advisory covering 2 CVEs |
before 6.2.7-1.oe2203 | 6.2.7-1.oe2203 |
redisopenEuler:24.03-LTS-SP1 From an advisory covering 13 CVEs |
before 7.2.7-1.oe2403sp1 | 7.2.7-1.oe2403sp1 |
redisopenEuler:20.03-LTS-SP4 From an advisory covering 13 CVEs |
before 7.2.7-1.oe2003sp4 | 7.2.7-1.oe2003sp4 |
redisopenEuler:22.03-LTS-SP3 From an advisory covering 13 CVEs |
before 7.2.7-1.oe2203sp3 | 7.2.7-1.oe2203sp3 |
redisopenEuler:22.03-LTS-SP4 From an advisory covering 13 CVEs |
before 7.2.7-1.oe2203sp4 | 7.2.7-1.oe2203sp4 |
redisopenEuler:24.03-LTS From an advisory covering 13 CVEs |
before 7.2.7-1.oe2403 | 7.2.7-1.oe2403 |
redisRed Hat:enterprise_linux:8::appstream From an advisory covering 2 CVEs |
before 0:6.2.7-1.module+el8.7.0+15197+cc495aeb | 0:6.2.7-1.module+el8.7.0+15197+cc495aeb |
redis-debuginfoRed Hat:enterprise_linux:8::appstream From an advisory covering 2 CVEs |
before 0:6.2.7-1.module+el8.7.0+15197+cc495aeb | 0:6.2.7-1.module+el8.7.0+15197+cc495aeb |
redis-debugsourceRed Hat:enterprise_linux:8::appstream From an advisory covering 2 CVEs |
before 0:6.2.7-1.module+el8.7.0+15197+cc495aeb | 0:6.2.7-1.module+el8.7.0+15197+cc495aeb |
redis-develRed Hat:enterprise_linux:8::appstream From an advisory covering 2 CVEs |
before 0:6.2.7-1.module+el8.7.0+15197+cc495aeb | 0:6.2.7-1.module+el8.7.0+15197+cc495aeb |
redis-docRed Hat:enterprise_linux:8::appstream From an advisory covering 2 CVEs |
before 0:6.2.7-1.module+el8.7.0+15197+cc495aeb | 0:6.2.7-1.module+el8.7.0+15197+cc495aeb |
redisRed Hat:enterprise_linux:9::appstream From an advisory covering 2 CVEs |
before 0:6.2.7-1.el9 | 0:6.2.7-1.el9 |
redis-debuginfoRed Hat:enterprise_linux:9::appstream From an advisory covering 2 CVEs |
before 0:6.2.7-1.el9 | 0:6.2.7-1.el9 |
redis-debugsourceRed Hat:enterprise_linux:9::appstream From an advisory covering 2 CVEs |
before 0:6.2.7-1.el9 | 0:6.2.7-1.el9 |
redis-develRed Hat:enterprise_linux:9::appstream From an advisory covering 2 CVEs |
before 0:6.2.7-1.el9 | 0:6.2.7-1.el9 |
redis-docRed Hat:enterprise_linux:9::appstream From an advisory covering 2 CVEs |
before 0:6.2.7-1.el9 | 0:6.2.7-1.el9 |
redisRocky Linux:8 From an advisory covering 2 CVEs |
before 0:6.2.7-1.module+el8.7.0+1105+8815ce78 | 0:6.2.7-1.module+el8.7.0+1105+8815ce78 |
redisRocky Linux:9 From an advisory covering 2 CVEs |
before 0:6.2.7-1.el9 | 0:6.2.7-1.el9 |
redisSUSE:Linux Enterprise Module for Server Applications 15 SP3 From an advisory covering 2 CVEs |
before 6.0.14-150200.6.11.1 | 6.0.14-150200.6.11.1 |
redisopenSUSE:Leap 15.3 From an advisory covering 2 CVEs |
before 6.0.14-150200.6.11.1 | 6.0.14-150200.6.11.1 |
redisSUSE:Linux Enterprise Module for Server Applications 15 SP4 From an advisory covering 2 CVEs |
before 6.2.6-150400.3.3.7 | 6.2.6-150400.3.3.7 |
redisopenSUSE:Leap 15.4 From an advisory covering 2 CVEs |
before 6.2.6-150400.3.3.7 | 6.2.6-150400.3.3.7 |
redisopenSUSE:Tumbleweed From an advisory covering 2 CVEs |
before 6.2.7-1.1 | 6.2.7-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | ||
| facts | OSV | |
| references | OSV | |
| affected | OSV | |
| affected | ||
| first indexed | CVE List, EUVD, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-24735 is a low vulnerability (CVSS 3.9) in Redis, published April 27, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.25%, the 82nd percentile. Fixed in redis 6.2.7-r0.
References
github.com/redis/redis/security/advisories/GHSA-647m-2wmq-qmvq
github.com/redis/redis/pull/10651
github.com/redis/redis/releases/tag/6.2.7
github.com/redis/redis/releases/tag/7.0.0
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VPYKSG7LKUJGVM2P72EHXKVRVRWHLORX
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WSTPUCAPBRHIFPSCOURR4OYX4E2OISAF
Show 57 moreShow less
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/J4ZK3675DGHVVDOFLJN7WX6YYH27GPMK
oracle.com/security-alerts/cpujul2022.html
security.netapp.com/advisory/ntap-20220715-0003
security.gentoo.org/glsa/202209-17
security.alpinelinux.org/vuln/CVE-2022-24735
access.redhat.com/errata/RHSA-2022:7541
access.redhat.com/security/cve/CVE-2022-24735
access.redhat.com/security/cve/CVE-2022-24736
bugzilla.redhat.com/1999873
bugzilla.redhat.com/2080286
bugzilla.redhat.com/2080289
errata.almalinux.org/8/ALSA-2022-7541.html
access.redhat.com/errata/RHSA-2022:8096
errata.almalinux.org/9/ALSA-2022-8096.html
nvd.nist.gov/vuln/detail/CVE-2022-24735
docs.bell-sw.com/security/cves/CVE-2022-24735
github.com/CVEProject/cvelistV5/tree/main/cves/2022/24xxx/CVE-2022-24735.json
security-tracker.debian.org/tracker/CVE-2022-24735
advisories.mageia.org/MGASA-2022-0339.html
bugs.mageia.org/show_bug.cgi?id=30393
lists.fedoraproject.org/archives/list/[email protected]/thread/VPYKSG7LKUJGVM2P72EHXKVRVRWHLORX
github.com/redis/redis/security/advisories/GHSA-3qpw-7686-5984
lists.opensuse.org/archives/list/[email protected]/thread/NERGELOQ43TXPK5SCGTMYFI4KDXITL74
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2022-1823
nvd.nist.gov/vuln/detail/CVE-2022-24736
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2025-1157
nvd.nist.gov/vuln/detail/CVE-2021-32626
nvd.nist.gov/vuln/detail/CVE-2021-32627
nvd.nist.gov/vuln/detail/CVE-2021-32628
nvd.nist.gov/vuln/detail/CVE-2021-32675
nvd.nist.gov/vuln/detail/CVE-2021-32687
nvd.nist.gov/vuln/detail/CVE-2021-32762
nvd.nist.gov/vuln/detail/CVE-2021-41099
nvd.nist.gov/vuln/detail/CVE-2022-35977
nvd.nist.gov/vuln/detail/CVE-2022-3647
nvd.nist.gov/vuln/detail/CVE-2023-25155
nvd.nist.gov/vuln/detail/CVE-2024-46981
access.redhat.com/security/updates/classification
access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/8.7_release_notes/index
bugzilla.redhat.com/show_bug.cgi?id=1999873
bugzilla.redhat.com/show_bug.cgi?id=2080286
bugzilla.redhat.com/show_bug.cgi?id=2080289
security.access.redhat.com/data/csaf/v2/advisories/2022/rhsa-2022_7541.json
cve.org/CVERecord?id=CVE-2022-24735
cve.org/CVERecord?id=CVE-2022-24736
access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/9.1_release_notes/index
bugzilla.redhat.com/show_bug.cgi?id=2083151
security.access.redhat.com/data/csaf/v2/advisories/2022/rhsa-2022_8096.json
errata.rockylinux.org/RLSA-2022:7541
errata.rockylinux.org/RLSA-2022:8096
suse.com/support/update/announcement/2022/suse-su-20221842-1
bugzilla.suse.com/1198952
bugzilla.suse.com/1198953
suse.com/security/cve/CVE-2022-24735
suse.com/security/cve/CVE-2022-24736
suse.com/support/update/announcement/2022/suse-su-20221929-1
ubuntu.com/security/CVE-2022-24735
Left out here: the rest of 1 source description. The JSON record has them.