Amazon Linux 2023 : default-editor, nano, nano-default-editor (ALAS2023-2024-652)

medium Nessus Plugin ID 202930

Synopsis

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

Description

It is, therefore, affected by a vulnerability as referenced in the ALAS2023-2024-652 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 'dnf update nano --releasever 2023.5.20240722' to update your system.

See Also

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

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

https://alas.aws.amazon.com/AL2023/ALAS-2024-652.html

Plugin Details

Severity: Medium

ID: 202930

File Name: al2023_ALAS2023-2024-652.nasl

Version: 1.1

Type: local

Agent: unix

Published: 7/22/2024

Updated: 7/22/2024

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

Risk Information

VPR

Risk Factor: Medium

Score: 4.4

CVSS v2

Risk Factor: Medium

Base Score: 5.9

Temporal Score: 4.4

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

CVSS Score Source: CVE-2024-5742

CVSS v3

Risk Factor: Medium

Base Score: 4.7

Temporal Score: 4.1

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

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

Vulnerability Information

CPE: cpe:/o:amazon:linux:2023, p-cpe:/a:amazon:linux:default-editor, p-cpe:/a:amazon:linux:nano, p-cpe:/a:amazon:linux:nano-debuginfo, p-cpe:/a:amazon:linux:nano-debugsource, p-cpe:/a:amazon:linux:nano-default-editor

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