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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** LOW 3.9
- **CVSS:** 3.9 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: Required; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 1.89% (percentile 80, 2026-11-26)
- **CWE:** CWE-94
- **Published:** 2022-04-27T19:43:27.000Z
- **Modified:** 2026-06-17T04:32:24.043Z

## Who should check

- Anyone running redis \< 7.0.0; \>= 6.0.0, \< 6.2.7

## 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.

## Affected and fixed versions

- redis: \< 7.0.0; \>= 6.0.0, \< 6.2.7 (cvelist)

## Mitigation

- Upgrade redis to 6.2.7 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-24735. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-24735.md
Affected: redis < 7.0.0; >= 6.0.0, < 6.2.7
Fixed in: redis 7.0.0, redis 6.2.7

Steps:
1. Search this machine and project for redis: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-24735 being exploited?

There is no confirmed exploitation: CVE-2022-24735 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.89% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-24735?

Low: CVSS 3.9 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2022-24735?

redis \< 7.0.0; \>= 6.0.0, \< 6.2.7.

### Is there a fix for CVE-2022-24735?

Yes. Fixed in redis 7.0.0, redis 6.2.7. Upgrade redis to 6.2.7 or later.

### How do I check if I'm affected by CVE-2022-24735?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/redis/redis/security/advisories/GHSA-647m-2wmq-qmvq>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VPYKSG7LKUJGVM2P72EHXKVRVRWHLORX/>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WSTPUCAPBRHIFPSCOURR4OYX4E2OISAF/>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/J4ZK3675DGHVVDOFLJN7WX6YYH27GPMK/>
- vendor: <https://security.gentoo.org/glsa/202209-17>
- patch: <https://github.com/redis/redis/pull/10651>
- patch: <https://www.oracle.com/security-alerts/cpujul2022.html>
- other: <https://github.com/redis/redis/releases/tag/6.2.7>
- other: <https://github.com/redis/redis/releases/tag/7.0.0>
- other: <https://security.netapp.com/advisory/ntap-20220715-0003/>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-24735>

HTML: <https://flawdb.com/CVE-2022-24735> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-24735>
