VDB

CVE-2022-24735

CVE-2022-24735 PUBLISHED CVSS 3.9 LOW

Lua scripts can be manipulated to overcome ACL rules in Redis

Reported by github_m · Published April 27, 2022

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
redis6-docAmazon Linux6.2.7-1.amzn2023.0.3
valkeyBitnami6.2.7
redisredis6.2.7

Risk scores

CVSS 3.1
3.9
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N

Affected products

VendorProductVersions
redisredis< 7.0.0, >= 6.0.0, < 6.2.7
amazon:2023redis6-doc0
redisredis0, 6.0.0
amazon:2023redis6-devel0
amazon:2023redis60
alpineredis0

Timeline

  • Apr 27, 2022 CVE Published
  • Apr 28, 2022 EPSS Score (30 in total, the first dated here)
  • Apr 28, 2022 PoC Published (2 in total, the first dated here)
  • Mar 10, 2026 Security Advisory (3 in total, the first dated here)
  • Mar 17, 2026 Distribution Patch (2 in total, the first dated here)
  • Jul 2, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2022-24735
vulnetix vdb fixes CVE-2022-24735

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-24735/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›