CVE-2022-24735
A public proof of concept exists; no exploitation attested.
- Published2022-04-27
- Fixed in6.2.7
- WeaknessCWE-94
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « 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- 2022-04-2720:15CVE publishedNVD
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 6.2 | < 6.2.7 | 6.2.7 | NVD · OSV |
| 7.0 | = 7.0 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 34.x | = 34 | no fix published | NVD |
| 35.x | = 35 | no fix published | NVD |
| 36.x | = 36 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 4.3 | = 4.3 | no fix published | NVD |
| 4.4 | = 4.4 | no fix published | NVD |
| 5.0 | = 5.0 | no fix published | NVD |
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.
- redisAffected
- = < 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
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
Red Hat Security Advisory: redis security and bug fix update
Red Hat Security Advisory: redis:6 security, bug fix, and enhancement update
Fix
- Update Redis to 6.2.7
- 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
- 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.
- No fix available, says the vendor Red Hat Product Security CVE-2022-24735 · 10 productsFix deferred
- No fix available, says the vendor Red Hat Product Security CVE-2022-24735 · 3 productsAffected
- No fix planned, says the vendor Red Hat Product Security CVE-2022-24735 · 2 productsOut of support scope
Advisories and patches
- github.comRelease Notes
- github.comRelease Notes
- www.oracle.comPatch
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- CISA-ADP (SSVC)PoC stated2025-04-22
- PoC-in-GitHubno public repository identifiedread 2026-12-04
- 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
- AZL-45285same flawAzure Linux · MIT
- AZL-71173same flawAzure Linux · MIT
- AZL-9598same flawAzure Linux · MIT
- BIT-keydb-2022-24735same flawBitnami · Apache-2.0
- BIT-redis-2022-24735same flawBitnami · Apache-2.0
- BIT-valkey-2022-24735same flawBitnami · Apache-2.0
- EUVD-2022-29582same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-647m-2wmq-qmvqsame flawGitHub Advisory Database · CC-BY-4.0
- ALSA-2022:7541advisory covering several CVEsAlmaLinux · MIT
- ALSA-2022:8096advisory covering several CVEsAlmaLinux · MIT
- MGASA-2022-0339advisory covering several CVEsMageia · LicenseRef-unstated
- OESA-2022-1823advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2025-1157advisory covering several CVEsopenEuler · LicenseRef-unstated
- openSUSE-SU-2024:12030-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2022:7541advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:8096advisory covering several CVEsRed Hat · CC-BY-4.0
- RLSA-2022:7541advisory covering several CVEsRocky Linux · BSD-3-Clause
- RLSA-2022:8096advisory covering several CVEsRocky Linux · BSD-3-Clause
- SUSE-SU-2022:1842-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2022:1929-1advisory covering several CVEsSUSE · LicenseRef-unstated
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?
Is CVE-2022-24735 actively exploited?
What is the CVSS score for CVE-2022-24735?
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
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-647m-2wmq-qmvq
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0