Amazon Linux 2 : redis (ALASREDIS6-2024-009)

high Nessus Plugin ID 190050

Synopsis

The remote Amazon Linux 2 host is missing a security update.

Description

The version of redis installed on the remote host is prior to 6.2.14-1. It is, therefore, affected by multiple vulnerabilities as referenced in the ALAS2REDIS6-2024-009 advisory.

Redis is an in-memory database that persists on disk. Redis incorrectly handles resizing of memory buffers which can result in integer overflow that leads to heap overflow and potential remote code execution. This issue has been patched in version 7.0.15 and 7.2.4. (CVE-2023-41056)

Redis is an in-memory database that persists on disk. On startup, Redis begins listening on a Unix socket before adjusting its permissions to the user-provided configuration. If a permissive umask(2) is used, this creates a race condition that enables, during a short period of time, another process to establish an otherwise unauthorized connection. This problem has existed since Redis 2.6.0-RC1. This issue has been addressed in Redis versions 7.2.2, 7.0.14 and 6.2.14. Users are advised to upgrade. For users unable to upgrade, it is possible to work around the problem by disabling Unix sockets, starting Redis with a restrictive umask, or storing the Unix socket file in a protected directory. (CVE-2023-45145)

Tenable has extracted the preceding description block directly from the tested product security advisory.

Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Run 'yum update redis' to update your system.

See Also

https://alas.aws.amazon.com/AL2/ALASREDIS6-2024-009.html

https://alas.aws.amazon.com/cve/html/CVE-2023-41056.html

https://alas.aws.amazon.com/cve/html/CVE-2023-45145.html

https://alas.aws.amazon.com/faqs.html

Plugin Details

Severity: High

ID: 190050

File Name: al2_ALASREDIS6-2024-009.nasl

Version: 1.1

Type: local

Agent: unix

Published: 2/6/2024

Updated: 12/11/2024

Supported Sensors: Agentless Assessment, Continuous Assessment, Frictionless Assessment Agent, Frictionless Assessment AWS, Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: High

Base Score: 7.6

Temporal Score: 5.6

Vector: CVSS2#AV:N/AC:H/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2023-41056

CVSS v3

Risk Factor: High

Base Score: 8.1

Temporal Score: 7.1

Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:amazon:linux:redis-doc, p-cpe:/a:amazon:linux:redis, cpe:/o:amazon:linux:2, p-cpe:/a:amazon:linux:redis-devel, p-cpe:/a:amazon:linux:redis-debuginfo

Required KB Items: Host/local_checks_enabled, Host/AmazonLinux/release, Host/AmazonLinux/rpm-list

Exploit Ease: No known exploits are available

Patch Publication Date: 2/1/2024

Vulnerability Publication Date: 10/18/2023

Reference Information

CVE: CVE-2023-41056, CVE-2023-45145