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.

Severity (CVSS 3.1)3.3Low
Exploit odds (30 days)1.5%top 25.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
AlmaLinux:8redis6.2.7-1.module_el8.7.0+3288+a82c1b48ALSA-2022:7541
AlmaLinux:9redis6.2.7-1.el9ALSA-2022:8096
AlmaLinux:8redis-devel6.2.7-1.module_el8.7.0+3288+a82c1b48ALSA-2022:7541
AlmaLinux:9redis-devel6.2.7-1.el9ALSA-2022:8096
AlmaLinux:8redis-doc6.2.7-1.module_el8.7.0+3288+a82c1b48ALSA-2022:7541
AlmaLinux:9redis-doc6.2.7-1.el9ALSA-2022:8096
Alpine:v3.20redis6.2.7-r0ALPINE-CVE-2022-24736
Alpine:v3.21redis6.2.7-r0ALPINE-CVE-2022-24736
Alpine:v3.22redis6.2.7-r0ALPINE-CVE-2022-24736
Alpine:v3.23redis6.2.7-r0ALPINE-CVE-2022-24736
Alpine:v3.24redis6.2.7-r0ALPINE-CVE-2022-24736
Debian:12redis5:7.0.1-4DEBIAN-CVE-2022-24736
Debian:13redis5:7.0.1-4DEBIAN-CVE-2022-24736
Debian:14redis5:7.0.1-4DEBIAN-CVE-2022-24736
Rocky Linux:8redis0:6.2.7-1.module+el8.7.0+1105+8815ce78RLSA-2022:7541
Rocky Linux:9redis0:6.2.7-1.el9RLSA-2022:8096

Affected products (as reported)

VendorProductVersions
redis redis < 6.2.7< 7.0.0

Weakness: CWE-476 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L

References