Skip to main content
Public proof of conceptFix available

CVE-2022-24735

A public proof of concept exists; no exploitation attested.

  • Published2022-04-27
  • Fixed in6.2.7
  • WeaknessCWE-94

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2022-04-2720:15CVE publishedNVD

Versions per branch

NVD · OSV
Redis
BranchAffectedFixed in
6.2< 6.2.76.2.7
7.0= 7.0no fix published
Fedoraproject fedora
BranchAffectedFixed in
34.x= 34no fix published
35.x= 35no fix published
36.x= 36no fix published
Oracle communications operations monitor
BranchAffectedFixed in
4.3= 4.3no fix published
4.4= 4.4no fix published
5.0= 5.0no fix published

2 more products in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • redis
    Affected
    • = < 7.0.0no fix stated
    • = >= 6.0.0, < 6.2.7no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2022-09-29

Distribution builds and vendor advisories

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

  • compat-luaAzure Linux:3all versions · no fixed version listed
  • compat-luaAzure Linux:2all versions · no fixed version listed
  • redisSUSE:Linux Enterprise Module for Server Applications 15 SP4all versions · fixed in 6.2.6-150400.3.3.7
  • redisSUSE:Linux Enterprise Module for Server Applications 15 SP3all versions · fixed in 6.0.14-150200.6.11.1
  • redisRocky Linux:9all versions · fixed in 0:6.2.7-1.el9
  • redisRocky Linux:8all versions · fixed in 0:6.2.7-1.module+el8.7.0+1105+8815ce78
  • redisRed Hat:enterprise_linux:9::appstreamall versions · fixed in 0:6.2.7-1.el9and 4 other packages
  • redisRed Hat:enterprise_linux:8::appstreamall versions · fixed in 0:6.2.7-1.module+el8.7.0+15197+cc495aeband 4 other packages

31 more package ranges on OSV.dev

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 · +12 more

  • 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

Fix

  1. Update Redis to 6.2.7
  2. Vendor fix Red Hat Product Security RHSA-2022:8096 · 21 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  3. Workaround from the vendor Red Hat Product Security RHSA-2022:8096 · 21 productsIf Lua scripting is not being used, this vulnerability can be mitigated by blocking access to SCRIPT LOAD and EVAL commands using ACL rules.
  4. No fix available, says the vendor Red Hat Product Security CVE-2022-24735 · 10 productsFix deferred
  5. No fix available, says the vendor Red Hat Product Security CVE-2022-24735 · 3 productsAffected
  6. No fix planned, says the vendor Red Hat Product Security CVE-2022-24735 · 2 productsOut of support scope

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionpoc2025-04-22
  • CNACVSS 3.13.9known since 2026-10-23
  • NVDCVSS 3.17.8read 2026-10-23
  • NVDCVSS 2.06.8read 2026-10-23
  • CNAweakness (CWE)CWE-94known since 2026-10-23
  • NVDweakness (CWE)CWE-94read 2026-10-23
  • FIRST EPSSEPSS score2.2 %2026-12-04
  • OSVaffected packages—
  • GitHub Advisoriesadvisory—

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Published
2022-04-27
Last modified
2026-06-17
NVD status
Modified
GitHub advisory
GHSA-647m-2wmq-qmvq

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?

A proof-of-concept exploit exists for CVE-2022-24735, but active exploitation has not been confirmed at this time.

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

CVE-2022-24735 has a CVSS v3 base score of 7.8 (High severity), with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.

Running Redis? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record