cve.bz

CVE-2022-24735 Code Injection

7.8 highExploit referenceEPSS 2.2%Fix available

High (7.8). EPSS 2.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
2.2% (unchanged from 2.2% a week ago; 2.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 83rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2025-04-22. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-94 Improper Control of Generation of Code (Code Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-24735 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-24735?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-24735?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-24735 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
redis:redisbefore 6.2.7
redis:redis7.0:rc1
redis:redis7.0:rc2
redis:redis7.0:rc3
fedoraproject:fedora34
fedoraproject:fedora35
fedoraproject:fedora36
oracle:communications_operations_monitor4.3
oracle:communications_operations_monitor4.4
oracle:communications_operations_monitor5.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14redis5:7.0.1-4DEBIAN-CVE-2022-24735
Red Hatenterprise_linux:8::appstreamredis, redis-doc, redis-devel and 2 more0:6.2.7-1.module+el8.7.0+15197+cc495aebRHSA-2022:7541
Red Hatenterprise_linux:9::appstreamredis, redis-doc, redis-devel and 2 more0:6.2.7-1.el9RHSA-2022:8096
SUSELinux Enterprise Module for Server Applications 15 SP3redis6.0.14-150200.6.11.1SUSE-SU-2022:1842-1
SUSELinux Enterprise Module for Server Applications 15 SP4redis6.2.6-150400.3.3.7SUSE-SU-2022:1929-1
openSUSELeap 15.3redis6.0.14-150200.6.11.1SUSE-SU-2022:1842-1
openSUSELeap 15.4redis6.2.6-150400.3.3.7SUSE-SU-2022:1929-1
openSUSETumbleweedredis6.2.7-1.1openSUSE-SU-2024:12030-1
AlmaLinux8redis, redis-doc, redis-devel6.2.7-1.module_el8.7.0+3288+a82c1b48ALSA-2022:7541
AlmaLinux9redis, redis-doc, redis-devel6.2.7-1.el9ALSA-2022:8096
Rocky Linux8redis0:6.2.7-1.module+el8.7.0+1105+8815ce78RLSA-2022:7541
Rocky Linux9redis0:6.2.7-1.el9RLSA-2022:8096
Alpinev3.14, v3.15, v3.16 and 8 moreredis6.2.7-r0ALPINE-CVE-2022-24735
Azure Linux2compat-luano fix listedAZL-71173
Azure Linux2redis6.2.7-1AZL-9598
Azure Linux3compat-luano fix listedAZL-45285

From the distributions' data via OSV.dev: the Debian Security Tracker; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Low.

Red Hat's mitigation

If Lua scripting is not being used, this vulnerability can be mitigated by blocking access to SCRIPT LOAD and EVAL commands using ACL rules.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8redis:6-8070020220509142426.3b9f49c4Fixed 2022-11-08RHSA-2022:7541
Red Hat Enterprise Linux 9redis-0:6.2.7-1.el9Fixed 2022-11-15RHSA-2022:8096
Red Hat 3scale API Management Platform 2redisAffected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/redisgraph-tls-rhel8Fix deferred
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/search-api-rhel8Fix deferred
Red Hat Ansible Automation Platform 1.2redisAffected
Red Hat Ansible Tower 3redisAffected
Red Hat Enterprise Linux 8redis:5/redisFix deferred
Red Hat Fuse 7io.hawt-hawtio-integrationFix deferred
Red Hat OpenStack Platform 13 (Queens)redisOut of support scope
Red Hat Software Collectionsrh-redis5-redisFix deferred
Red Hat Software Collectionsrh-redis6-redisFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-24735.

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON