7.8

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

Modified
AliasesALPINE-CVE-2022-24735UBUNTU-CVE-2022-24735DEBIAN-CVE-2022-24735
Published 27-04-2022Last modified 22-04-2025

Vulnerability summary

CVE-2022-24735 is a high (CVSS 7.8) Improper Control of Generation of Code vulnerability in fedoraproject fedora. EPSS estimates a 2.25% chance of exploitation in the next 30 days, higher than 83.4% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Routine

Not severe (CVSS 3.9, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.8/10
010
High · v3.1 (NVD)
EPSS score
2.25%
0%100%
Low · -0.02 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 6 · Related 3

Timeline

  1. 27-04-2022
    PublishedVulnerability first disclosed.
  2. 22-04-2025
    Last modifiedVulnerability information updated.

Description

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 metrics

6 scores · 5 sources · 2 versions

EPSS trend

Probability

2.25%

Chance of exploitation in the next 30 days

Percentile

83%

Versus all other CVEs

30-day change

Decrease -0.02 pp

From 2.26% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Redis

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.

Netapp2 products
Alpine1 product
  • redis< 6.2.7-r0
Debian1 product
  • redis< 5:7.0.1-4
Fedoraproject1 product
Oracle1 product
Redis1 product
  • redis< 7.0.0 | ≥ 6.0.0, < 6.2.7 | < 6.2.7 | 7.0:rc1 | 7.0:rc2 | 7.0:rc3
Ubuntu1 product
  • redisAll versions (No fix recorded)

7 vendors · 8 products

References

15 links
Show all 15 references