CVE Vulnerabilities

CVE-2022-24736

NULL Pointer Dereference

Published: Apr 27, 2022 | Modified: Nov 07, 2023
CVSS 3.x
5.5
MEDIUM
Source:
NVD
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS 2.x
2.1 LOW
AV:L/AC:L/Au:N/C:N/I:N/A:P
RedHat/V2
RedHat/V3
3.3 LOW
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
Ubuntu
MEDIUM

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.

Weakness

A NULL pointer dereference occurs when the application dereferences a pointer that it expects to be valid, but is NULL, typically causing a crash or exit.

Affected Software

Name Vendor Start Version End Version
Redis Redis * 6.2.7 (excluding)
Redis Redis 7.0-rc1 (including) 7.0-rc1 (including)
Redis Redis 7.0-rc2 (including) 7.0-rc2 (including)
Redis Redis 7.0-rc3 (including) 7.0-rc3 (including)
Red Hat Enterprise Linux 8 RedHat redis:6-8070020220509142426.3b9f49c4 *
Red Hat Enterprise Linux 9 RedHat redis-0:6.2.7-1.el9 *
Redis Ubuntu bionic *
Redis Ubuntu esm-apps/bionic *
Redis Ubuntu esm-apps/focal *
Redis Ubuntu esm-apps/jammy *
Redis Ubuntu esm-apps/xenial *
Redis Ubuntu esm-infra-legacy/trusty *
Redis Ubuntu focal *
Redis Ubuntu impish *
Redis Ubuntu jammy *
Redis Ubuntu kinetic *
Redis Ubuntu lunar *
Redis Ubuntu trusty/esm *

Potential Mitigations

References