CVE-2022-24736 json
A Malformed Lua script can crash Redis
published 2022-04-27 4 y ago modified 2026-09-08 2 mo ago also BIT-keydb-2022-24736 , BIT-redis-2022-24736 , BIT-valkey-2022-24736 , EUVD-2022-29583 , GHSA-3qpw-7686-5984
- cvss
- 3.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.5%
- EPSS 1.5% chance of exploitation in 30 days, percentile 74%
- public exploits
- 0
- none known
Summary
Redis is an in-memory database that persists on disk. Prior to versions 6.2.7 and 7.0.0, an attacker attempting to load a specially crafted Lua script can cause NULL pointer dereference which will result with a crash of the redis-server process. 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.
Patch / fix
- bitnami keydb 6.2.7
- bitnami redis 6.2.7
- bitnami valkey 6.2.7
- redis redis 6.2.7
- redis Debian 14, Debian 13, Debian 12 5:7.0.1-4
debian advisories DEBIAN-CVE-2022-24736
- redis RHEL 8 6.2.7-1.module+el8.7.0+15197+cc495aeb
- redis RHEL 9 6.2.7-1.el9
red hat advisories RHSA-2022:7541RHSA-2022:8096
- redis SLE Module for Server Applications 15 SP4, openSUSE Leap 15.4 6.2.6-150400.3.3.7
- redis SLE Module for Server Applications 15 SP3, openSUSE Leap 15.3 6.0.14-150200.6.11.1
suse advisories SUSE-SU-2022:1929-1SUSE-SU-2022:1842-1
- redis openSUSE Tumbleweed 6.2.7-1.1
opensuse advisories openSUSE-SU-2024:12030-1
- redis AlmaLinux 9 6.2.7-1.el9
- redis AlmaLinux 8 6.2.7-1.module_el8.7.0+3288+a82c1b48
almalinux advisories ALSA-2022:8096ALSA-2022:7541
- redis Rocky Linux 9 6.2.7-1.el9
- redis Rocky Linux 8 6.2.7-1.module+el8.7.0+1105+8815ce78
rocky linux advisories RLSA-2022:8096RLSA-2022:7541
- redis Alpine 3.24, Alpine 3.23, Alpine 3.22 +8 more 6.2.7-r0
alpine advisories ALPINE-CVE-2022-24736
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-24736 updated cvss 3.3
redis: Malformed Lua script can crash Redis
-
Red Hat 3scale API Management Platform 2 redis Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/search-api-rhel8, rhacm2/redisgraph-tls-rhel8 Red Hat Ansible Automation Platform 1.2 redis Red Hat Ansible Tower 3 redis Red Hat Enterprise Linux 8 redis Red Hat Fuse 7 io.hawt-hawtio-integration io.hawt-hawtio-integrationaffected: workaround, no fix available “If Lua scripting is not being used, this vulnerability can be mitigated by preventing access to SCRIPT LOAD and EVAL commands using ACL rules.”
-
Red Hat OpenStack Platform 13 (Queens) redisaffected: workaround, no fix planned “If Lua scripting is not being used, this vulnerability can be mitigated by preventing access to SCRIPT LOAD and EVAL commands using ACL rules.”
-
Red Hat Software Collections rh-redis5-redis, rh-redis6-redisaffected: workaround, no fix available “If Lua scripting is not being used, this vulnerability can be mitigated by preventing access to SCRIPT LOAD and EVAL commands using ACL rules.”
-
Red Hat Enterprise Linux AppStream (v. 8) redis 6.2.7-1.module+el8.7.0+15197+cc495aebfixed: vendor fix “If Lua scripting is not being used, this vulnerability can be mitigated by preventing access to SCRIPT LOAD and EVAL commands using ACL rules.” RHSA-2022:7541
-
Red Hat Enterprise Linux AppStream (v. 9) redis 6.2.7-1.el9fixed: vendor fix “If Lua scripting is not being used, this vulnerability can be mitigated by preventing access to SCRIPT LOAD and EVAL commands using ACL rules.” RHSA-2022:8096
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
1.50% chance of exploitation in the next 30 days, higher than 74% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/redis/redis/pull/10651 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 3.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L |
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 2.1 | AV:L/AC:L/Au:N/C:N/I:N/A:P |
| OSV | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | keydb | <6.2.7 |
6.2.7 |
| bitnami | redis | <6.2.7 |
6.2.7 |
| bitnami | valkey | <6.2.7 |
6.2.7 |
Affected products
- redis redis
Classification
- Weakness
-
- CWE-476 NULL Pointer Dereference
- Technology feeds
References
-
github.com
/redis/redis/pull/10651
exploit, third-party-advisory, advisory, web
-
github.com
/redis/redis/security/advisories/GHSA-3qpw-7686-5984
patch, third-party-advisory, advisory, web
-
oracle.com
/security-alerts/cpujul2022.html
patch, third-party-advisory, advisory, web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/VPYKSG7LKUJGVM2P72EHXKVRVRWHLORX/
vendor-advisory, web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/WSTPUCAPBRHIFPSCOURR4OYX4E2OISAF/
vendor-advisory, web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/J4ZK3675DGHVVDOFLJN7WX6YYH27GPMK/
vendor-advisory, web
-
security.gentoo.org
/glsa/202209-17
vendor-advisory, third-party-advisory, advisory, web
-
github.com
/redis/redis/releases/tag/6.2.7
release-notes, third-party-advisory, advisory, web
-
github.com
/redis/redis/releases/tag/7.0.0
release-notes, third-party-advisory, advisory, web
-
security.netapp.com
/advisory/ntap-20220715-0003/
third-party-advisory, advisory, web
-
nvd.nist.gov
/vuln/detail/CVE-2022-24736
web
Sources
- CVE List CVE-2022-24736
- NVD CVE-2022-24736
- OSV BIT-keydb-2022-24736
- OSV BIT-redis-2022-24736
- OSV BIT-valkey-2022-24736
- Maintainer advisory GHSA-3qpw-7686-5984
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
The maintainers of redis/redis published their own advisory on GitHub. Reviewed sources take precedence over it.