Amazon Linux 2 : nano (ALAS-2024-2590)

medium Nessus Plugin ID 202984

Synopsis

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

Description

The version of nano installed on the remote host is prior to 2.9.8-2. It is, therefore, affected by a vulnerability as referenced in the ALAS2-2024-2590 advisory.

nano: running `chmod` and `chown` on the filename allows malicious user to replace the emergency file with a malicious symlink to a root-owned file (CVE-2024-5742)

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

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

Solution

Run 'yum update nano' to update your system.

See Also

https://alas.aws.amazon.com/AL2/ALAS-2024-2590.html

https://alas.aws.amazon.com/cve/html/CVE-2024-5742.html

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

Plugin Details

Severity: Medium

ID: 202984

File Name: al2_ALAS-2024-2590.nasl

Version: 1.3

Type: local

Agent: unix

Published: 7/23/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: 6.7

CVSS v2

Risk Factor: Medium

Base Score: 6

Temporal Score: 4.4

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

CVSS Score Source: CVE-2024-5742

CVSS v3

Risk Factor: Medium

Base Score: 6.7

Temporal Score: 5.8

Vector: CVSS:3.0/AV:L/AC:H/PR:L/UI:R/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:nano-debuginfo, p-cpe:/a:amazon:linux:nano, cpe:/o:amazon:linux:2

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

Exploit Ease: No known exploits are available

Patch Publication Date: 7/18/2024

Vulnerability Publication Date: 6/12/2024

Reference Information

CVE: CVE-2024-5742

IAVA: 2024-A-0355