Skip to main content
HIGH

CVE-2022-24735

CVSS v3

7.8

HIGH

EPSS Score

2.3 %

exploit probability, as of 2026-10-19

CISA KEV

No

known exploited

Exploitation

—

SSVC status

Get an alert for each new CVE published for redis.

Set up CVE WatchFree account · no credit card

Affected and fixed versions

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • keydbBitnamiall versions · fixed in 6.2.7and 2 other packages
  • redisAlmaLinux:9all versions · fixed in 6.2.7-1.el9and 2 other packages
  • redisAlmaLinux:8all versions · fixed in 6.2.7-1.module_el8.7.0+3288+a82c1b48and 2 other packages

Vendor advisories

  • CVE-2022-24735 Red Hat Product Security39 products fixed · 15 known affected

    redis: Code injection via Lua script execution environment

    redis as a component of Red Hat 3scale API Management Platform 2 · rhacm2/redisgraph-tls-rhel8 as a component of Red Hat Advanced Cluster Management for Kubernetes 2 · rhacm2/search-api-rhel8 as a component of Red Hat Advanced Cluster Management for Kubernetes 2

  • RHSA-2022:8096 Red Hat Product Security21 products fixed

    Red Hat Security Advisory: redis security and bug fix update

  • RHSA-2022:7541 Red Hat Product Security18 products fixed

    Red Hat Security Advisory: redis:6 security, bug fix, and enhancement update

Full record on NVD

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.

Technical details

Published
2022-04-27

Frequently asked questions

What is CVE-2022-24735?

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.

Is CVE-2022-24735 actively exploited?

Active exploitation of CVE-2022-24735 has not been confirmed. Its EPSS score was 2.3% on 2026-10-19, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2022-24735?

CVE-2022-24735 has a CVSS v3 base score of 7.8 (HIGH severity).

Running redis? Hear about its next vulnerability

CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.

Already have an account? Open CVE WatchNo credit card required · No monthly cap on website lookups · 250 API requests/month