Vulnerability · Published Apr 27, 2022 · Assigned by GitHub_M
CVE-2022-24736A Malformed Lua script can crash Redis
Low 3.3
In plain English
A low-severity null pointer dereference in redis from redis. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.5% (higher than 74% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | redis | 6.2.7-1.module_el8.7.0+3288+a82c1b48 | ALSA-2022:7541 |
| AlmaLinux:9 | redis | 6.2.7-1.el9 | ALSA-2022:8096 |
| AlmaLinux:8 | redis-devel | 6.2.7-1.module_el8.7.0+3288+a82c1b48 | ALSA-2022:7541 |
| AlmaLinux:9 | redis-devel | 6.2.7-1.el9 | ALSA-2022:8096 |
| AlmaLinux:8 | redis-doc | 6.2.7-1.module_el8.7.0+3288+a82c1b48 | ALSA-2022:7541 |
| AlmaLinux:9 | redis-doc | 6.2.7-1.el9 | ALSA-2022:8096 |
| Alpine:v3.20 | redis | 6.2.7-r0 | ALPINE-CVE-2022-24736 |
| Alpine:v3.21 | redis | 6.2.7-r0 | ALPINE-CVE-2022-24736 |
| Alpine:v3.22 | redis | 6.2.7-r0 | ALPINE-CVE-2022-24736 |
| Alpine:v3.23 | redis | 6.2.7-r0 | ALPINE-CVE-2022-24736 |
| Alpine:v3.24 | redis | 6.2.7-r0 | ALPINE-CVE-2022-24736 |
| Debian:12 | redis | 5:7.0.1-4 | DEBIAN-CVE-2022-24736 |
| Debian:13 | redis | 5:7.0.1-4 | DEBIAN-CVE-2022-24736 |
| Debian:14 | redis | 5:7.0.1-4 | DEBIAN-CVE-2022-24736 |
| Rocky Linux:8 | redis | 0:6.2.7-1.module+el8.7.0+1105+8815ce78 | RLSA-2022:7541 |
| Rocky Linux:9 | redis | 0:6.2.7-1.el9 | RLSA-2022:8096 |
Affected products (as reported)
Weakness: CWE-476 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
References
- https://github.com/redis/redis/pull/10651 x_refsource_MISC
- https://github.com/redis/redis/releases/tag/6.2.7 x_refsource_MISC
- https://github.com/redis/redis/releases/tag/7.0.0 x_refsource_MISC
- https://github.com/redis/redis/security/advisories/GHSA-3qpw-7686-5984 x_refsource_CONFIRM
- FEDORA-2022-6ed1ce2838 vendor-advisory, x_refsource_FEDORA
- FEDORA-2022-a0a4c7eb31 vendor-advisory, x_refsource_FEDORA
- FEDORA-2022-44373f6778 vendor-advisory, x_refsource_FEDORA
- https://www.oracle.com/security-alerts/cpujul2022.html x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20220715-0003/ x_refsource_CONFIRM
- GLSA-202209-17 vendor-advisory, x_refsource_GENTOO