CVE-2022-24736A Malformed Lua script can crash Redis
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.
What to do
Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | redis | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | redis | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | redis | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | redis | Fix pending | UBUNTU-CVE-2022-24736 | |
| Ubuntu 20.04 | redis | Fix pending | UBUNTU-CVE-2022-24736 | |
| Ubuntu 18.04 | redis | Fix pending | UBUNTU-CVE-2022-24736 | |
| Ubuntu 16.04 | redis | Fix pending | UBUNTU-CVE-2022-24736 | |
| Ubuntu 14.04 | redis | Fix pending | UBUNTU-CVE-2022-24736 | |
| Debian 14 | redis | Fixed | 5:7.0.1-4 | DEBIAN-CVE-2022-24736 |
| Debian 13 | redis | Fixed | 5:7.0.1-4 | DEBIAN-CVE-2022-24736 |
| Debian 12 | redis | Fixed | 5:7.0.1-4 | DEBIAN-CVE-2022-24736 |
| Red Hat Enterprise Linux 9 | redis | Fixed | 0:6.2.7-1.el9 | RHSA-2022:8096 |
| Red Hat Enterprise Linux 9 | redis-devel | Fixed | 0:6.2.7-1.el9 | RHSA-2022:8096 |
| Red Hat Enterprise Linux 9 | redis-doc | Fixed | 0:6.2.7-1.el9 | RHSA-2022:8096 |
| Red Hat Enterprise Linux 8 | redis | Fixed Fix deferred | 0:6.2.7-1.module+el8.7.0+15197+cc495aeb | RHSA-2022:7541 |
| Red Hat Enterprise Linux 8 | redis-devel | Fixed Fix deferred | 0:6.2.7-1.module+el8.7.0+15197+cc495aeb | RHSA-2022:7541 |
| Red Hat Enterprise Linux 8 | redis-doc | Fixed Fix deferred | 0:6.2.7-1.module+el8.7.0+15197+cc495aeb | RHSA-2022:7541 |
| AlmaLinux 9 | redis | Fixed | 6.2.7-1.el9 | ALSA-2022:8096 |
| AlmaLinux 9 | redis-devel | Fixed | 6.2.7-1.el9 | ALSA-2022:8096 |
| AlmaLinux 9 | redis-doc | Fixed | 6.2.7-1.el9 | ALSA-2022:8096 |
| AlmaLinux 8 | redis | Fixed | 6.2.7-1.module_el8.7.0+3288+a82c1b48 | ALSA-2022:7541 |
| AlmaLinux 8 | redis-devel | Fixed | 6.2.7-1.module_el8.7.0+3288+a82c1b48 | ALSA-2022:7541 |
| AlmaLinux 8 | redis-doc | Fixed | 6.2.7-1.module_el8.7.0+3288+a82c1b48 | ALSA-2022:7541 |
| Rocky Linux 9 | redis | Fixed | 0:6.2.7-1.el9 | RLSA-2022:8096 |
| Rocky Linux 8 | redis | Fixed | 0:6.2.7-1.module+el8.7.0+1105+8815ce78 | RLSA-2022:7541 |
| Alpine Linux 3.24 | redis | Fixed | 6.2.7-r0 | ALPINE-CVE-2022-24736 |
| Alpine Linux 3.23 | redis | Fixed | 6.2.7-r0 | ALPINE-CVE-2022-24736 |
| Alpine Linux 3.22 | redis | Fixed | 6.2.7-r0 | ALPINE-CVE-2022-24736 |
| Alpine Linux 3.21 | redis | Fixed | 6.2.7-r0 | ALPINE-CVE-2022-24736 |
| Alpine Linux 3.20 | redis | Fixed | 6.2.7-r0 | ALPINE-CVE-2022-24736 |
| Alpine Linux 3.19 | redis | Fixed | 6.2.7-r0 | ALPINE-CVE-2022-24736 |
| Alpine Linux 3.18 | redis | Fixed | 6.2.7-r0 | ALPINE-CVE-2022-24736 |
| Alpine Linux 3.17 | redis | Fixed | 6.2.7-r0 | ALPINE-CVE-2022-24736 |
| Alpine Linux 3.16 | redis | Fixed | 6.2.7-r0 | ALPINE-CVE-2022-24736 |
| Alpine Linux 3.15 | redis | Fixed | 6.2.7-r0 | ALPINE-CVE-2022-24736 |
| Alpine Linux 3.14 | redis | Fixed | 6.2.7-r0 | ALPINE-CVE-2022-24736 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- redis: affected: < 6.2.7, < 7.0.0
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://security.gentoo.org/glsa/202209-17 (vendor-advisory)
References
- https://github.com/redis/redis/pull/10651
- https://github.com/redis/redis/releases/tag/6.2.7
- https://github.com/redis/redis/releases/tag/7.0.0
- https://github.com/redis/redis/security/advisories/GHSA-3qpw-7686-5984
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VPYKSG7LKUJGVM2P72EHXKVRVRWHLORX/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WSTPUCAPBRHIFPSCOURR4OYX4E2OISAF/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/J4ZK3675DGHVVDOFLJN7WX6YYH27GPMK/
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://security.netapp.com/advisory/ntap-20220715-0003/
- https://security.gentoo.org/glsa/202209-17
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.