Amazon Linux AMI : openssh (ALAS-2022-1565)

high Nessus Plugin ID 158177

Synopsis

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

Description

The version of openssh installed on the remote host is prior to 7.4p1-22.77. It is, therefore, affected by a vulnerability as referenced in the ALAS-2022-1565 advisory.

A flaw was found in OpenSSH. Helper programs for AuthorizedKeysCommand and AuthorizedPrincipalsCommand may run with privileges associated with group memberships of the sshd process, if the configuration specifies running the command as a different user. Depending on system configuration, inherited groups may allow AuthorizedKeysCommand/AuthorizedPrincipalsCommand helper programs to gain unintended privileges, potentially leading to local privilege escalation. (CVE-2021-41617)

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 openssh' to update your system.

See Also

https://alas.aws.amazon.com/ALAS-2022-1565.html

https://alas.aws.amazon.com/cve/html/CVE-2021-41617.html

Plugin Details

Severity: High

ID: 158177

File Name: ala_ALAS-2022-1565.nasl

Version: 1.4

Type: local

Agent: unix

Published: 2/19/2022

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: 4.4

Temporal Score: 3.3

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

CVSS Score Source: CVE-2021-41617

CVSS v3

Risk Factor: High

Base Score: 7

Temporal Score: 6.1

Vector: CVSS:3.0/AV:L/AC:H/PR:L/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:openssh-clients, p-cpe:/a:amazon:linux:openssh-cavs, p-cpe:/a:amazon:linux:openssh-keycat, p-cpe:/a:amazon:linux:pam_ssh_agent_auth, p-cpe:/a:amazon:linux:openssh-server, p-cpe:/a:amazon:linux:openssh-ldap, cpe:/o:amazon:linux, p-cpe:/a:amazon:linux:openssh, p-cpe:/a:amazon:linux:openssh-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/10/2022

Vulnerability Publication Date: 9/26/2021

Reference Information

CVE: CVE-2021-41617

ALAS: 2022-1565

IAVA: 2021-A-0474-S