Amazon Linux 2023 : sudo, sudo-devel, sudo-logsrvd (ALAS2023-2023-135)

high Nessus Plugin ID 173336

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-2023-135 advisory.

- Sudo before 1.9.13p2 has a double free in the per-command chroot feature. (CVE-2023-27320)

- Sudo before 1.9.13 does not escape control characters in log messages. (CVE-2023-28486)

- Sudo before 1.9.13 does not escape control characters in sudoreplay output. (CVE-2023-28487)

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 --releasever=2023.0.20230322 sudo' to update your system.

See Also

https://alas.aws.amazon.com/AL2023/ALAS-2023-135.html

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

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

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

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

Plugin Details

Severity: High

ID: 173336

File Name: al2023_ALAS2023-2023-135.nasl

Version: 1.4

Type: local

Agent: unix

Published: 3/23/2023

Updated: 2/8/2024

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

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: High

Base Score: 8.3

Temporal Score: 6.5

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

CVSS Score Source: CVE-2023-27320

CVSS v3

Risk Factor: High

Base Score: 7.2

Temporal Score: 6.5

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

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

Vulnerability Information

CPE: p-cpe:/a:amazon:linux:sudo-logsrvd, p-cpe:/a:amazon:linux:sudo, p-cpe:/a:amazon:linux:sudo-debugsource, p-cpe:/a:amazon:linux:sudo-logsrvd-debuginfo, p-cpe:/a:amazon:linux:sudo-debuginfo, p-cpe:/a:amazon:linux:sudo-python-plugin-debuginfo, p-cpe:/a:amazon:linux:sudo-python-plugin, p-cpe:/a:amazon:linux:sudo-devel, cpe:/o:amazon:linux:2023

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

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 3/20/2023

Vulnerability Publication Date: 2/28/2023

Reference Information

CVE: CVE-2023-27320, CVE-2023-28486, CVE-2023-28487

IAVA: 2023-A-0121-S