CVEfocus › CVE database › CVE-2022-24736

CVE-2022-24736A Malformed Lua script can crash Redis

CVSS 3.3 LowEPSS 0.9% (higher than 58% of CVEs)Published 2022-04-27Updated 2025-04-22Assigner: GitHub_M

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.

CWE-476

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

28Fixed
5Fix pending
3Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04redisNot affected
vulnerable_code_not_present
Ubuntu 25.10redisNot affected
vulnerable_code_not_present
Ubuntu 24.04redisNot affected
vulnerable_code_not_present
Ubuntu 22.04redisFix pendingUBUNTU-CVE-2022-24736
Ubuntu 20.04redisFix pendingUBUNTU-CVE-2022-24736
Ubuntu 18.04redisFix pendingUBUNTU-CVE-2022-24736
Ubuntu 16.04redisFix pendingUBUNTU-CVE-2022-24736
Ubuntu 14.04redisFix pendingUBUNTU-CVE-2022-24736
Debian 14redisFixed5:7.0.1-4DEBIAN-CVE-2022-24736
Debian 13redisFixed5:7.0.1-4DEBIAN-CVE-2022-24736
Debian 12redisFixed5:7.0.1-4DEBIAN-CVE-2022-24736
Red Hat Enterprise Linux 9redisFixed0:6.2.7-1.el9RHSA-2022:8096
Red Hat Enterprise Linux 9redis-develFixed0:6.2.7-1.el9RHSA-2022:8096
Red Hat Enterprise Linux 9redis-docFixed0:6.2.7-1.el9RHSA-2022:8096
Red Hat Enterprise Linux 8redisFixed
Fix deferred
0:6.2.7-1.module+el8.7.0+15197+cc495aebRHSA-2022:7541
Red Hat Enterprise Linux 8redis-develFixed
Fix deferred
0:6.2.7-1.module+el8.7.0+15197+cc495aebRHSA-2022:7541
Red Hat Enterprise Linux 8redis-docFixed
Fix deferred
0:6.2.7-1.module+el8.7.0+15197+cc495aebRHSA-2022:7541
AlmaLinux 9redisFixed6.2.7-1.el9ALSA-2022:8096
AlmaLinux 9redis-develFixed6.2.7-1.el9ALSA-2022:8096
AlmaLinux 9redis-docFixed6.2.7-1.el9ALSA-2022:8096
AlmaLinux 8redisFixed6.2.7-1.module_el8.7.0+3288+a82c1b48ALSA-2022:7541
AlmaLinux 8redis-develFixed6.2.7-1.module_el8.7.0+3288+a82c1b48ALSA-2022:7541
AlmaLinux 8redis-docFixed6.2.7-1.module_el8.7.0+3288+a82c1b48ALSA-2022:7541
Rocky Linux 9redisFixed0:6.2.7-1.el9RLSA-2022:8096
Rocky Linux 8redisFixed0:6.2.7-1.module+el8.7.0+1105+8815ce78RLSA-2022:7541
Alpine Linux 3.24redisFixed6.2.7-r0ALPINE-CVE-2022-24736
Alpine Linux 3.23redisFixed6.2.7-r0ALPINE-CVE-2022-24736
Alpine Linux 3.22redisFixed6.2.7-r0ALPINE-CVE-2022-24736
Alpine Linux 3.21redisFixed6.2.7-r0ALPINE-CVE-2022-24736
Alpine Linux 3.20redisFixed6.2.7-r0ALPINE-CVE-2022-24736
Alpine Linux 3.19redisFixed6.2.7-r0ALPINE-CVE-2022-24736
Alpine Linux 3.18redisFixed6.2.7-r0ALPINE-CVE-2022-24736
Alpine Linux 3.17redisFixed6.2.7-r0ALPINE-CVE-2022-24736
Alpine Linux 3.16redisFixed6.2.7-r0ALPINE-CVE-2022-24736
Alpine Linux 3.15redisFixed6.2.7-r0ALPINE-CVE-2022-24736
Alpine Linux 3.14redisFixed6.2.7-r0ALPINE-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.

Vendor advisories:

References

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.