CVE Vulnerabilities

CVE-2022-24736

NULL Pointer Dereference

Published: Apr 27, 2022 | Modified: Nov 21, 2024
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
root.io logo minimus.io logo echo.ai logo

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

The product dereferences a pointer that it expects to be valid but is NULL.

Affected Software

NameVendorStart VersionEnd Version
RedisRedis*6.2.7 (excluding)
RedisRedis7.0-rc1 (including)7.0-rc1 (including)
RedisRedis7.0-rc2 (including)7.0-rc2 (including)
RedisRedis7.0-rc3 (including)7.0-rc3 (including)
Red Hat Enterprise Linux 8RedHatredis:6-8070020220509142426.3b9f49c4*
Red Hat Enterprise Linux 9RedHatredis-0:6.2.7-1.el9*
RedisUbuntubionic*
RedisUbuntuesm-apps/bionic*
RedisUbuntuesm-apps/focal*
RedisUbuntuesm-apps/jammy*
RedisUbuntuesm-apps/xenial*
RedisUbuntuesm-infra-legacy/trusty*
RedisUbuntufocal*
RedisUbuntuimpish*
RedisUbuntujammy*
RedisUbuntukinetic*
RedisUbuntulunar*
RedisUbuntutrusty/esm*
RedisUbuntuupstream*

Potential Mitigations

References